1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #3654: Add reason to ERROR after a failed resume from POWEROFF or SUSPEND

This commit is contained in:
Ruben S. Montero 2015-04-22 23:48:26 +02:00
parent 23aa6b0419
commit 4e884f8683

View File

@ -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);