mirror of https://github.com/apache/cloudstack.git
bug 10768: root cause is StopCommand is not sent out in force stop,
status 10768: resolved fixed
This commit is contained in:
parent
1f4d34b9d5
commit
d48e97a368
|
|
@ -946,7 +946,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||
VirtualMachineProfile<T> profile = new VirtualMachineProfileImpl<T>(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<T>(vm), work, Event.StopRequested, forced, user, account)) {
|
||||
try {
|
||||
return stateTransitTo(vm, Event.AgentReportStopped, null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue