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

F #4894: Terminate action when a VM is in a failure state invokes delete

action
This commit is contained in:
Ruben S. Montero 2017-07-04 16:19:51 +02:00
parent fcf08d429d
commit b401abe7be

View File

@ -322,6 +322,23 @@ int DispatchManager::terminate(int vid, bool hard, const RequestAttributes& ra,
}
break;
case VirtualMachine::BOOT_FAILURE:
case VirtualMachine::BOOT_MIGRATE_FAILURE:
case VirtualMachine::PROLOG_MIGRATE_FAILURE:
case VirtualMachine::PROLOG_FAILURE:
case VirtualMachine::EPILOG_FAILURE:
case VirtualMachine::EPILOG_STOP_FAILURE:
case VirtualMachine::EPILOG_UNDEPLOY_FAILURE:
case VirtualMachine::PROLOG_MIGRATE_POWEROFF_FAILURE:
case VirtualMachine::PROLOG_MIGRATE_SUSPEND_FAILURE:
case VirtualMachine::BOOT_UNDEPLOY_FAILURE:
case VirtualMachine::BOOT_STOPPED_FAILURE:
case VirtualMachine::PROLOG_RESUME_FAILURE:
case VirtualMachine::PROLOG_UNDEPLOY_FAILURE:
case VirtualMachine::PROLOG_MIGRATE_UNKNOWN_FAILURE:
lcm->trigger(LCMAction::DELETE, vid, ra);
break;
default:
oss.str("");
oss << "Could not terminate VM " << vid