Hide Forgot
Description of problem: When auto-destroy domains were introduced in upstream 0.9.3, they were documented as not working on migrate (makes sense, because migrate would change which connection owns the domain and autodestroy kicks in) or save/restore (a bit weaker, but makes sense when thinking of save/restore as migration to file). However, it left out snapshots (another form of save/restore), and as implemented, the qemu driver actually ended up forbidding pause rather than save actions on autodestroy domains. Version-Release number of selected component (if applicable): libvirt-0.9.4-6.el6 How reproducible: 100% Steps to Reproduce: 1. create a domain marked autodestroy (for example, 'virsh create xml --autodestroy) 2. 'virsh pause dom' 3. 'virsh snapshot-create dom' 4. 'virsh save dom file' Actual results: 1. created and running 2. rejected 3. succeeds 4. succeeds Expected results: 1. created and running 2. succeeds 3. rejected 4. rejected Additional info:
(In reply to comment #0) > Steps to Reproduce: > 1. create a domain marked autodestroy (for example, 'virsh create xml > --autodestroy) > 2. 'virsh pause dom' > 3. 'virsh snapshot-create dom' > 4. 'virsh save dom file' Correction - for an autodestroy domain to be tested, it has to be done within a single connection - you have to use batch commands or the virsh shell: 0. virsh # start the shell 1. create xml 2. pause dom 3. snapshot-create dom 4. save dom file 5. quit
Getting this fixed is a prereq to bug 638510 support for live snapshots via the snapshot_blkdev qemu monitor command.
Upstream patch proposed: https://www.redhat.com/archives/libvir-list/2011-August/msg01381.html
In POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-August/msg00725.html
Test with libvirt-0.9.4-7.el6.x86_64. As expected results, move it to VERIFIED. [root@localhost ~]# virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # create foo.xml --autodestroy Domain foo created from foo.xml virsh # suspend foo Domain foo suspended virsh # snapshot-create foo error: Requested operation is not valid: domain is marked for auto destroy virsh # save foo /tmp/foo error: Failed to save domain foo to /tmp/foo error: Requested operation is not valid: domain is marked for auto destroy virsh # quit
Unfortunately, this caused a regression, tracked in bug 735011
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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1513.html