From 8d38e230a53ceb22627a310c4ee76f268a81589b Mon Sep 17 00:00:00 2001 From: abhishek Date: Thu, 9 Sep 2010 18:33:34 -0700 Subject: [PATCH] bug 5147: we ensure that if the sp under maintenance is the only one in the cluster, we just stop the vms with no migration (base case) --- server/src/com/cloud/storage/StorageManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java index baeb9e6d413..ddf4d493045 100644 --- a/server/src/com/cloud/storage/StorageManagerImpl.java +++ b/server/src/com/cloud/storage/StorageManagerImpl.java @@ -2009,7 +2009,7 @@ public class StorageManagerImpl implements StorageManager { //if they dont, then just stop all vms on this one count = _storagePoolDao.countBy(primaryStorage.getPodId(), Status.Up); - if(count == 1) + if(count == 0) restart = false; //2. Get a list of all the volumes within this storage pool