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

bug #3212: STATE='d' moves the VM to POWEROFF instead of SUSPENDED

This commit is contained in:
Ruben S. Montero 2014-10-09 11:43:23 +02:00
parent af599e55cc
commit 5db8a54091

View File

@ -679,17 +679,15 @@ void VirtualMachineManagerDriver::process_poll(
break;
case 'e': //Failed
vm->log("VMM", Log::INFO, "VM running but monitor state is ERROR.");
vm->log("VMM",Log::INFO,"VM running but monitor state is ERROR.");
lcm->trigger(LifeCycleManager::MONITOR_FAILURE, vm->get_oid());
break;
case 'd': //The VM was not found
vm->log("VMM", Log::INFO, "VM running but it was not found."
" Boot and delete actions available or try to"
" recover it manually");
case 'd': //The VM was powered-off
vm->log("VMM",Log::INFO,"VM running but monitor state is POWEROFF");
lcm->trigger(LifeCycleManager::MONITOR_DONE, vm->get_oid());
lcm->trigger(LifeCycleManager::MONITOR_POWEROFF, vm->get_oid());
break;
}
}