1
0
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:
Ruben S. Montero 2023-03-16 12:58:11 +01:00
parent 248e0af1cd
commit 01313630a9
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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();