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:
abhi 2012-01-25 06:28:49 +05:30
parent b91d919e55
commit a18d5c25d1
1 changed files with 5 additions and 0 deletions

View File

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