1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-27 14:03:40 +03:00

feature #3654: Add action to history records on resume failure

This commit is contained in:
Ruben S. Montero 2015-04-23 10:04:12 +02:00
parent 4e884f8683
commit 8e582e331c

View File

@ -433,6 +433,7 @@ void LifeCycleManager::deploy_failure_action(int vid)
vm->set_running_etime(the_time);
vm->set_reason(History::ERROR);
vm->set_action(History::RESUME_ACTION);
vm->set_state(VirtualMachine::POWEROFF);
vm->set_state(VirtualMachine::LCM_INIT);
@ -448,6 +449,7 @@ void LifeCycleManager::deploy_failure_action(int vid)
vm->set_running_etime(the_time);
vm->set_reason(History::ERROR);
vm->set_action(History::RESUME_ACTION);
vm->set_state(VirtualMachine::SUSPENDED);
vm->set_state(VirtualMachine::LCM_INIT);