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:
parent
4e884f8683
commit
8e582e331c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user