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);