From 922d254b724eb1cfbb417c55834c426e7f869dd9 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Thu, 5 Jul 2012 11:29:01 +0530 Subject: [PATCH] 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 --- server/src/com/cloud/vm/VirtualMachineManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java index 0b9cfc80046..a81b5dd9590 100755 --- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -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()) {