Dear OpenNebula Team,
i did the Upgrade from 5.12 to 6.2 some days ago.
In 5.12 - after a vm LIVE Migration (kvm), the snapshot revert & deletion was not functional anymore for some older snapshots.
Now in 6.2 - at least the revert seems to work after a LIVE Migration for older snapshot, but not the deletion of them:
QEMU-IMG INFO:
[root@sunstone]# qemu-img info /mnt/datastores/mynfsstorage/0/90/disk.0.snap/0
(nfs ACCESS to the DATASTORE IS FUNCTIONAL from sunstone,also from the hypervisor node(s))
file format: qcow2
virtual size: 200 MiB (209715200 bytes)
disk size: 208 MiB
cluster_size: 65536
backing file: /var/lib/one/datastores/1/904ddf2ecf6d85e6d6ecbe73de574ba7
backing file format: qcow2
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK ICOUNT
3 snap-0 39.5 MiB 2022-04-07 20:03:39 00:08:56.748
4 snap-1 39.4 MiB 2022-04-07 20:04:45 00:10:02.273
5 snap-2 39.4 MiB 2022-04-07 20:05:44 00:10:59.789
6 snap-3 39.4 MiB 2022-04-07 20:06:29 00:11:43.933
7 snap-4 38.3 MiB 2022-04-18 11:38:35 00:01:29.011
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
refcount bits: 16
corrupt: false
extended l2: false
HOTPLUG REVERT OK after LIVE_MIGRATION:
Mon Apr 18 12:03:39 2022 [Z0][VM][I]: New LCM state is RUNNING
Mon Apr 18 12:04:56 2022 [Z0][VM][I]: New LCM state is HOTPLUG_SNAPSHOT
Mon Apr 18 12:04:56 2022 [Z0][VMM][I]: VM Snapshot successfully reverted.
Mon Apr 18 12:04:56 2022 [Z0][VM][I]: New LCM state is RUNNING
Mon Apr 18 12:05:15 2022 [Z0][VM][I]: New LCM state is HOTPLUG_SNAPSHOT
Revert of the SAME SNAPSHOT:
Mon Apr 18 12:05:16 2022 [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 5d2d7bdc-5ff4-41fe-85ca-e8acf45c4d2f snap-0 90 hypervisor1; else exit 42; fi’
Mon Apr 18 12:05:16 2022 [Z0][VMM][E]: snapshot_delete: Command “virsh --connect qemu:///system snapshot-delete 5d2d7bdc-5ff4-41fe-85ca-e8acf45c4d2f snap-0” failed: error: Domain snapshot not found: no domain snapshot with matching name ‘snap-0’
Mon Apr 18 12:05:16 2022 [Z0][VMM][I]: Could not delete snapshot snap-0 for domain 5d2d7bdc-5ff4-41fe-85ca-e8acf45c4d2f.
Mon Apr 18 12:05:16 2022 [Z0][VMM][E]: SNAPSHOTDELETE: ERROR: snapshot_delete: Command “virsh --connect qemu:///system snapshot-delete 5d2d7bdc-5ff4-41fe-85ca-e8acf45c4d2f snap-0” failed: error: Domain snapshot not found: no domain snapshot with matching name ‘snap-0’ Could not delete snapshot snap-0 for domain 5d2d7bdc-5ff4-41fe-85ca-e8acf45c4d2f.