Univention Bugzilla – Bug 25140
snapshots are not cloned
Last modified: 2023-06-28 10:45:56 CEST
Snapshots werden derzeit nicht geklont, wenn eine Instanz geklont wird.
This is still true with UCS-4.2 with Qemu-2.8 and libvirt-3.0. Similar to our migration we would need to clone the snapshot XML files, too.
This again happened while testing Bug #21386: It also happens when a VM is migrated while not running: then we only define the current XML, but do not copy the snapshot XML, too. (We once documented to put /var/lib/libvirt/qemu/snapshot/ on a shared storage to workaround that and we still have patches/libvirt/4.3-0-0-ucs/3.0.0-4+deb9u3-errata4.3-0/0023-Allow-to-migrate-and-undefine-domains-with-snapshots.quilt) virDomainSnapshotCreateXML(VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE) can be used to add the missing meta-data only. For offline-migration virDomainSnapshotDelet(VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY) should be used to undefine the snapshots only but leave the actual snapshot data stored in the qcow2 files.
Snapshots are migrated for a long time. What is missing is *cloning* the snapshots when a VM is cloned.
UVMM and virtualization with UCS is deprecated and will no longer be developed in UCS 4.4; they have already been removed from UCS 5.0.