From d48e97a3688cb8b65efa064d8c2cc3ca0347ec64 Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 20 Jul 2011 12:09:13 -0700 Subject: [PATCH] bug 10768: root cause is StopCommand is not sent out in force stop, status 10768: resolved fixed --- server/src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java index 1b4223a42a2..89bcf0c88ed 100755 --- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -946,7 +946,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm); if ((vm.getState() == State.Starting || vm.getState() == State.Stopping || vm.getState() == State.Migrating) && forced) { ItWorkVO work = _workDao.findByOutstandingWork(vm.getId(), vm.getState()); - if (work != null) { + if (work == null) { if (cleanup(vmGuru, new VirtualMachineProfileImpl(vm), work, Event.StopRequested, forced, user, account)) { try { return stateTransitTo(vm, Event.AgentReportStopped, null);