mirror of https://github.com/apache/cloudstack.git
bug 13000: send Maintanance command to kvm host when unmanage cluster
status 13000: resolved fixed
This commit is contained in:
parent
fe667e949e
commit
0b6b8f7e46
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue