# Kvm/snapshot\_delete does not work after a LIVE Migration - but snap-revert is OK on same snapshot

**URL:** <https://forum.opennebula.io/t/kvm-snapshot-delete-does-not-work-after-a-live-migration-but-snap-revert-is-ok-on-same-snapshot/10489>\
**Category:** Operations\
**Created:** [April 18, 2022, 10:19am UTC](https://forum.opennebula.io/t/kvm-snapshot-delete-does-not-work-after-a-live-migration-but-snap-revert-is-ok-on-same-snapshot/10489 "2022-04-18T10:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [April 18, 2022, 10:19am UTC](https://forum.opennebula.io/t/kvm-snapshot-delete-does-not-work-after-a-live-migration-but-snap-revert-is-ok-on-same-snapshot/10489/1 "2022-04-18T10:19:56Z")

</div>

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.
