From 3aa1726009e736bb3ed708f825bcf035dc8ea92b Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 4 Jan 2011 17:36:48 -0800 Subject: [PATCH] bug 7822: fixing the storage maintenance failures centered around domr stop/start status 7822: resolved fixed --- server/src/com/cloud/storage/StorageManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java index 095afe66fde..0ba0d3f998b 100755 --- a/server/src/com/cloud/storage/StorageManagerImpl.java +++ b/server/src/com/cloud/storage/StorageManagerImpl.java @@ -2266,7 +2266,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag //if the instance is of type domain router vm, call the network manager if(vmInstance.getType().equals(VirtualMachine.Type.DomainRouter)) { - if(_routerMgr.stopRouterInternal(vmInstance.getId())) + if(!_routerMgr.stopRouterInternal(vmInstance.getId())) { String errorMsg = "There was an error stopping the domain router id: "+vmInstance.getId()+" ,cannot enable primary storage maintenance"; s_logger.warn(errorMsg); @@ -2276,7 +2276,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag } else if(restart) { - if(_routerMgr.stopRouterInternal(vmInstance.getId())) + if(!_routerMgr.stopRouterInternal(vmInstance.getId())) { String errorMsg = "There was an error starting the domain router id: "+vmInstance.getId()+" on another storage pool, cannot enable primary storage maintenance"; s_logger.warn(errorMsg);