mirror of https://github.com/apache/cloudstack.git
fixed the problem that vms in starting state were not being cleaned up when management server restarts
This commit is contained in:
parent
4c0fce700b
commit
44666b6333
|
|
@ -940,7 +940,10 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||
throw new ConcurrentOperationException("VM is being operated on.");
|
||||
}
|
||||
} catch (NoTransitionException e1) {
|
||||
throw new CloudRuntimeException("We cannot stop " + vm + " when it is in state " + vm.getState());
|
||||
if (!forced) {
|
||||
throw new CloudRuntimeException("We cannot stop " + vm + " when it is in state " + vm.getState());
|
||||
}
|
||||
s_logger.debug("Unable to transition the state but we're moving on because it's forced stop");
|
||||
}
|
||||
|
||||
VirtualMachineProfile<T> profile = new VirtualMachineProfileImpl<T>(vm);
|
||||
|
|
|
|||
Loading…
Reference in New Issue