mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
F #6030: Use backup_cancel for VM deletes
The ongoing backup cancel action is terminated through backup_cancel_driver instead of the generic cancel operation.
This commit is contained in:
parent
248e0af1cd
commit
01313630a9
@ -1058,13 +1058,19 @@ void LifeCycleManager::clean_up_vm(VirtualMachine * vm, bool dispose,
|
||||
case VirtualMachine::SHUTDOWN_POWEROFF:
|
||||
case VirtualMachine::SHUTDOWN_UNDEPLOY:
|
||||
case VirtualMachine::HOTPLUG_SNAPSHOT:
|
||||
case VirtualMachine::BACKUP:
|
||||
vm->set_running_etime(the_time);
|
||||
|
||||
vmm->trigger_driver_cancel(vid);
|
||||
vmm->trigger_cleanup(vid, false);
|
||||
break;
|
||||
|
||||
case VirtualMachine::BACKUP:
|
||||
vm->set_running_etime(the_time);
|
||||
|
||||
vmm->trigger_backup_cancel(vid);
|
||||
vmm->trigger_cleanup(vid, false);
|
||||
break;
|
||||
|
||||
case VirtualMachine::HOTPLUG:
|
||||
vm->clear_attach_disk();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user