mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 05:27:20 +09:00
feature #3654: Add reason to ERROR after a failed resume from POWEROFF or SUSPEND
This commit is contained in:
1 parent
23aa6b0419
commit
4e884f8683
1 file changed
+4
@@ -432,6 +432,8 @@ void LifeCycleManager::deploy_failure_action(int vid)
|
||||
vm->set_etime(the_time);
|
||||
vm->set_running_etime(the_time);
|
||||
|
||||
vm->set_reason(History::ERROR);
|
||||
|
||||
vm->set_state(VirtualMachine::POWEROFF);
|
||||
vm->set_state(VirtualMachine::LCM_INIT);
|
||||
|
||||
@@ -445,6 +447,8 @@ void LifeCycleManager::deploy_failure_action(int vid)
|
||||
vm->set_etime(the_time);
|
||||
vm->set_running_etime(the_time);
|
||||
|
||||
vm->set_reason(History::ERROR);
|
||||
|
||||
vm->set_state(VirtualMachine::SUSPENDED);
|
||||
vm->set_state(VirtualMachine::LCM_INIT);
|
||||
|
||||
|
||||
Reference in new issue
Block a user