bug 7822: fixing the storage maintenance failures centered around domr stop/start

status 7822: resolved fixed
This commit is contained in:
abhishek 2011-01-04 17:36:48 -08:00
parent edfbc5a782
commit 3aa1726009
1 changed files with 2 additions and 2 deletions

View File

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