Description of problem: Doc of virsh domrename needs to be updated Version-Release number of selected component (if applicable): libvirt-daemon-6.10.0-1.module+el8.4.0+8898+a84e86e1.x86_64 How reproducible: 100% Steps to Reproduce: 1. try to domrename a guest with snapshot # virsh list --all Id Name State --------------------------------- 5 avocado-vt-vm1 running # virsh snapshot-create-as avocado-vt-vm1 s1 --memspec file=/tmp/mem,snapshot=external --diskspec vda,snapshot=external,file=/tmp/disk Domain snapshot s1 created # virsh destroy avocado-vt-vm1 Domain avocado-vt-vm1 destroyed # virsh domrename avocado-vt-vm1 new Domain successfully renamed # virsh start new Domain new started # virsh list --all Id Name State -------------------------- 6 new running 2. check the doc of domrename domrename Syntax: domrename domain new-name Rename a domain. This command changes current domain name to the new name specified in the second argument. Note: Domain must be inactive and without snapshots or checkpoints. Actual results: Doc of virsh domrename needs to be updated
commit ec554e160b44aed0adac0256c2ad58153b638bae Author: Peter Krempa <pkrempa> Date: Wed Jan 6 10:56:12 2021 +0100 manpage: virsh: Drop note that 'domrename' doesn't work with snapshots/checkpoints As of commits 3b1244bffdb and 4770a96c662 renaming of the domain works also with checkpoints and snapshots. Update the docs. v6.10.0-311-gec554e160b
➜ ~ man virsh ... domrename Syntax: domrename domain new-name Rename a domain. This command changes current domain name to the new name specified in the second argument. Note: Domain must be inactive. ... Doc of virsh domrename has been updated
Testing in Comment 3 used libvirt-6.10.0-1.fc34.x86_64
Tested with: libvirt-daemon-7.0.0-1.module+el8.4.0+9464+3e71831a.x86_64 Testing result are the same with that in Comment #3, mark the bug as verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (virt:av bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2098