mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-13 12:58:17 +03:00
feature #2009: Allow VMs stuck in ACTIVE, LCM_INIT to be deleted
This commit is contained in:
parent
078fbdb7d3
commit
d6572832e2
@ -710,10 +710,6 @@ void LifeCycleManager::delete_action(int vid)
|
||||
|
||||
switch(vm->get_lcm_state())
|
||||
{
|
||||
case VirtualMachine::LCM_INIT:
|
||||
vm->log("LCM", Log::ERROR, "clean_action, VM in a wrong state.");
|
||||
break;
|
||||
|
||||
case VirtualMachine::CLEANUP_RESUBMIT:
|
||||
case VirtualMachine::CLEANUP_DELETE:
|
||||
vm->set_state(VirtualMachine::CLEANUP_DELETE);
|
||||
@ -784,7 +780,6 @@ void LifeCycleManager::clean_action(int vid)
|
||||
|
||||
switch(vm->get_lcm_state())
|
||||
{
|
||||
case VirtualMachine::LCM_INIT:
|
||||
case VirtualMachine::CLEANUP_DELETE:
|
||||
vm->log("LCM", Log::ERROR, "clean_action, VM in a wrong state.");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user