diff --git a/src/lcm/LifeCycleStates.cc b/src/lcm/LifeCycleStates.cc index 56d0d00284..100d3582a3 100644 --- a/src/lcm/LifeCycleStates.cc +++ b/src/lcm/LifeCycleStates.cc @@ -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);