Bug 797281 - libvirt deletes VM configuration file after edit
Summary: libvirt deletes VM configuration file after edit
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 18:45 UTC by Shevek
Modified: 2016-04-26 19:15 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-23 20:47:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Shevek 2012-02-24 18:45:01 UTC
Description of problem:

libvirt deleted the XML configuration file for a VM after an edit.

Version-Release number of selected component (if applicable):

ii  libvirt-bin                     0.9.2-4ubuntu15                            ii  libvirt0                        0.9.2-4ubuntu15                            

How reproducible: 100%

Steps to Reproduce:
1. Create and define a VM, but do not start it.
2. virsh edit the VM.
3. Change the UUID
4. Save and exit the editor.
5. Error message appears:
error: operation failed: domain 'orchestra' already exists with uuid 4dd4e4bc-ec46-d7b8-5935-cbd727dd89c0
6. Observe XML file in /etc/libvirt/qemu now gone, and never called me mother.
  
Actual results:
XML file vanished, and VM config lost to posterity.

Expected results:
VM config should still exist, with an updated UUID.
libvirt should honour the updated UUID.

Comment 1 Dave Allan 2012-02-24 19:48:07 UTC
Hmm, I tried your steps to reproduce, but I am unable to reproduce this behavior on libvirt 0.9.6.  I see the message about domain already exists with uuid..., but the VM is unaffected following the attempt to edit it.  What version of libvirt are you using?


Note You need to log in before you can comment on or make changes to this bug.