From a4740b314fbae8360b32aac4dc4887e3539d0907 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Wed, 4 Jul 2012 22:04:20 +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..removing trailing whitespaces in the code --- server/src/com/cloud/vm/VirtualMachineManagerImpl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java index 8a1b719ec2d..23c723b44cd 100755 --- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -1818,16 +1818,13 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene else if(info == null && vm.getState() == State.Stopping) { //Handling CS-13376 Host host = _hostDao.findByGuid(info.getHosUuid()); if(host != null ){ - s_logger.warn("Marking the VM as Stopped as it was still stopping on the CS" +info.name); vm.setState(State.Stopped); // Setting the VM as stopped on the DB and clearing it from the host vm.setHostId(null); vm.setLastHostId(host.getId()); - _vmDao.persist(vm); + _vmDao.persist(vm); } - } - } for (final AgentVmInfo left : infos.values()) {