Domain snapshot names can have ending spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Platform: Ubuntu 12.04 LTS
i create two snapshot on guest snap_rhel_vnx
------------ snap1-rhel_vnx --------------
virsh # snapshot-create snap_rhel_vnx /etc/libvirt/
Domain snapshot snap1-rhel_vnx created from '/etc/libvirt/
-------------- 1344991717 ---------------
virsh # snapshot-create snap_rhel_vnx
Domain snapshot 1344991717 created
virsh # snapshot-list snap_rhel_vnx
Name Creation Time State
-------
1344991717 2012-08-14 20:48:37 -0400 running
snap1-rhel_vnx 2012-08-14 20:44:27 -0400 running
here is xml for snap1-rhel_vnx
<domainsnapshot>
<name>
<descriptio
</domainsnapshot>
So far everything is ok. However there is problem when reverting back to "snap1-rhel_vnx"
virsh # snapshot-revert snap_rhel_vnx snap1-rhel_vnx
error: Domain snapshot not found: no snapshot with matching name 'snap1-rhel_vnx'
revert to " 1344991717 " is ok.
no longer affects: | qemu-kvm (Ubuntu) |
Thanks for submitting this bug.
I can't reproduce this. There is an oddity in the bug description, in that you
use the same name for the domain and the snapshot. When I use 'p1-clone' for
both the domain and snapshot name (as you did), then I need to revert using
virsh snapshot-revert p1-clone --snapshotname p1-clone
If I simply try
virsh snapshot-revert p1-clone
I get
error: --snapshotname or --current is required
which is not the same error you show. (The .xml I used was
<domainsnapshot> p1-clone< /name>
<name>
<description> p1 clone base snapshot </description>
</domainsnapshot>
and I defined it, for domain p1-clone, using
virsh snapshot-create p1-clone snapshot- p1-clone2. xml
)
I've marked this bug as affecting libvirt. Please do
apport-collect 1036973
to have apport submit some information about your libvirt installation.
I'd highly recommend working around this by using a snapshot name which
is not the same as the domain name. If that doesn't work either, please
reply and let us know.