mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Bug #1800: Ignore LCM::MONITOR_DONE when the VM is in poweroff or suspended states
This commit is contained in:
1 parent
b30c623bf9
commit
2cba2f1e21
1 file changed
+3
-1
@@ -1060,7 +1060,9 @@ void LifeCycleManager::monitor_done_action(int vid)
|
||||
|
||||
vm->log("LCM", Log::INFO, "New VM state is UNKNOWN");
|
||||
}
|
||||
else if ( vm->get_lcm_state() != VirtualMachine::UNKNOWN )
|
||||
else if ( vm->get_lcm_state() != VirtualMachine::UNKNOWN &&
|
||||
vm->get_state() != VirtualMachine::POWEROFF &&
|
||||
vm->get_state() != VirtualMachine::SUSPENDED )
|
||||
{
|
||||
vm->log("LCM",Log::ERROR,"monitor_done_action, VM in a wrong state");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user