mirror of https://github.com/apache/cloudstack.git
bug 12849: during fence command, remove vm state from sync so that it is not reported as stopped
reviewed by: anthony
This commit is contained in:
parent
b91d919e55
commit
a18d5c25d1
|
|
@ -224,6 +224,11 @@ public class XenServer56Resource extends CitrixResourceBase {
|
|||
for (VM vm : vms) {
|
||||
vm.powerStateReset(conn);
|
||||
vm.destroy(conn);
|
||||
//remove the VM from s_vms
|
||||
synchronized (_cluster.intern()) {
|
||||
s_logger.info("Fence command for VM " + vm.getNameLabel(conn));
|
||||
s_vms.remove(_cluster, _name, vm.getNameLabel(conn));
|
||||
}
|
||||
}
|
||||
return new FenceAnswer(cmd);
|
||||
} catch (XmlRpcException e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue