Red Hat Bugzilla – Bug 1264687
RFE: use libvirt virDomainRename
Last modified: 2015-09-20 14:18:12 EDT
Since libvirt 1.2.19 there's a virDomainRename API, we should look into using this instead of our hacked up undefine/redefine method which loses some state like managedsave, etc. Though as of this writing it doesn't look like the API handles moving snapshots, so it's still not a 100% solution.
API docs: https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRename