CS-13376- Vm is stuck in Stopping state when MS is rebooted after the stop command was issued, but answer wasn't recieved from the backend yet

This commit is contained in:
Pranav Saxena 2012-07-05 11:29:01 +05:30
parent c6448d0e8e
commit 922d254b72
1 changed files with 2 additions and 2 deletions

View File

@ -1815,13 +1815,13 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
}
}
}
else if(info == null && vm.getState() == State.Stopping) { //Handling CS-13376
/* else if(info == null && vm.getState() == State.Stopping) { //Handling CS-13376
s_logger.warn("Marking the VM as Stopped as it was still stopping on the CS" +vm.getName());
vm.setState(State.Stopped); // Setting the VM as stopped on the DB and clearing it from the host
vm.setLastHostId(vm.getHostId());
vm.setHostId(null);
_vmDao.persist(vm);
}
}*/
}
for (final AgentVmInfo left : infos.values()) {