You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
It might be possible that after a migration a system snapshot is not carried over. This results in opennebula displaying a snapshot that doesn't exist at the hypervisor level, which fails to be deleted.
To Reproduce
Create a VM
Take a system snapshot
Power off the VM. The issue doesn't happen without this poweroff.
Resume the VM
Live migrate the VM
Try to delete the system snapshot
Expected behavior
Snapshot should be carried over
Details
Version: tested on 6.4 but likely happens in every version
Additional context
VM log
Fri Oct 20 14:33:38 2023 [Z0][VM][I]: New state is ACTIVE
Fri Oct 20 14:33:38 2023 [Z0][VM][I]: New LCM state is PROLOG
Fri Oct 20 14:33:39 2023 [Z0][VM][I]: New LCM state is BOOT
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/10/deployment.0
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/mkdir -p.
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/10/vm.xml.
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:33:39 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/10/ds.xml.
Fri Oct 20 14:33:40 2023 [Z0][LCM][I]: VM reported RUNNING by the drivers
Fri Oct 20 14:33:40 2023 [Z0][VM][I]: New LCM state is RUNNING
Fri Oct 20 14:33:41 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:33:41 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Fri Oct 20 14:33:41 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:33:41 2023 [Z0][VMM][I]: Successfully execute network driver operation: post.
Fri Oct 20 14:33:50 2023 [Z0][VM][I]: New LCM state is HOTPLUG_SNAPSHOT
Fri Oct 20 14:33:51 2023 [Z0][VMM][I]: VM Snapshot successfully created.
Fri Oct 20 14:33:51 2023 [Z0][VM][I]: New LCM state is RUNNING
Fri Oct 20 14:33:55 2023 [Z0][VM][I]: New LCM state is SHUTDOWN_POWEROFF
Fri Oct 20 14:34:06 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:06 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.
Fri Oct 20 14:34:06 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:06 2023 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Fri Oct 20 14:34:06 2023 [Z0][VM][I]: New state is POWEROFF
Fri Oct 20 14:34:06 2023 [Z0][VM][I]: New LCM state is LCM_INIT
Fri Oct 20 14:34:18 2023 [Z0][VM][I]: New state is ACTIVE
Fri Oct 20 14:34:18 2023 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Fri Oct 20 14:34:18 2023 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/10/deployment.1
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/mkdir -p.
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/10/vm.xml.
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:20 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/10/ds.xml.
Fri Oct 20 14:34:21 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:21 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Fri Oct 20 14:34:21 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:21 2023 [Z0][VMM][I]: Successfully execute network driver operation: post.
Fri Oct 20 14:34:21 2023 [Z0][VM][I]: New LCM state is RUNNING
Fri Oct 20 14:34:37 2023 [Z0][VM][I]: New LCM state is MIGRATE
Fri Oct 20 14:34:38 2023 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_premigrate.
Fri Oct 20 14:34:39 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:39 2023 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: Successfully execute virtualization driver operation: migrate.
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: ExitCode: 0
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: Successfully execute network driver operation: post.
Fri Oct 20 14:34:42 2023 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_postmigrate.
Fri Oct 20 14:34:42 2023 [Z0][VM][I]: New LCM state is RUNNING
Fri Oct 20 14:34:48 2023 [Z0][VM][I]: New LCM state is HOTPLUG_SNAPSHOT
Fri Oct 20 14:34:48 2023 [Z0][VMM][I]: Command execution failed (exit code: 1): 'if [ -x "/var/tmp/one/vmm/kvm/snapshot_delete" ]; then /var/tmp/one/vmm/kvm/snapshot_delete 0f903ff7-3d68-4b45-a09d-169f0c9e1e3c snap-0 10 ubuntu2204-kvm-qcow2-6-4-hcnii-1.test; else exit 42; fi'
Fri Oct 20 14:34:48 2023 [Z0][VMM][E]: snapshot_delete: Command "virsh --connect qemu:///system snapshot-delete 0f903ff7-3d68-4b45-a09d-169f0c9e1e3c snap-0" failed: error: Domain snapshot not found: no domain snapshot with matching name 'snap-0'
Fri Oct 20 14:34:48 2023 [Z0][VMM][I]: Could not delete snapshot snap-0 for domain 0f903ff7-3d68-4b45-a09d-169f0c9e1e3c.
Fri Oct 20 14:34:48 2023 [Z0][VMM][E]: SNAPSHOTDELETE: ERROR: snapshot_delete: Command "virsh --connect qemu:///system snapshot-delete 0f903ff7-3d68-4b45-a09d-169f0c9e1e3c snap-0" failed: error: Domain snapshot not found: no domain snapshot with matching name 'snap-0' Could not delete snapshot snap-0 for domain 0f903ff7-3d68-4b45-a09d-169f0c9e1e3c.
Fri Oct 20 14:34:48 2023 [Z0][VM][I]: New LCM state is RUNNING
Description
It might be possible that after a migration a system snapshot is not carried over. This results in opennebula displaying a snapshot that doesn't exist at the hypervisor level, which fails to be deleted.
To Reproduce
Expected behavior
Snapshot should be carried over
Details
Additional context
VM log
VM template
Progress Status
The text was updated successfully, but these errors were encountered: