bug 13000: send Maintanance command to kvm host when unmanage cluster

status 13000: resolved fixed
This commit is contained in:
Edison Su 2012-01-11 17:44:39 -08:00
parent fe667e949e
commit 0b6b8f7e46
1 changed files with 4 additions and 0 deletions

View File

@ -1875,6 +1875,10 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
s_logger.debug("Cannot find host " + hostId + ", assuming it has been deleted, skip umanage");
return true;
}
if (host.getHypervisorType() == HypervisorType.KVM) {
MaintainAnswer answer = (MaintainAnswer) _agentMgr.easySend(hostId, new MaintainCommand());
}
_agentMgr.disconnectWithoutInvestigation(hostId, Event.ShutdownRequested);
return true;