Bug 1070746 - Cannot rename VM if it has some associated snapshots
Summary: Cannot rename VM if it has some associated snapshots
Keywords:
Status: CLOSED DUPLICATE of bug 558160
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-27 13:45 UTC by Tomáš Hozza
Modified: 2014-02-27 14:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-27 14:11:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hozza 2014-02-27 13:45:25 UTC
Description of problem:
In F20, the default image format is qcow2 which allows user to create snapshots
of the VM. If you install a VM using virt-manager and create some snapshots,
you are not able to rename the VM.

The error message printed does not makes sense to me as a USER!

"Error changing VM configuration: Requested operation is not valid: cannot delete inactive domain with 2 snapshots"

I just renamed the VM and clicked apply. I as a user don't care what 
virt-manager is doing under the hood and should not be confronted with the 
internal process like "cannot delete inactive domain with 2 snapshots".


Version-Release number of selected component (if applicable):
virt-manager-0.10.0-5.git1ffcc0cc.fc20.noarch

How reproducible:


Steps to Reproduce:
1. install VM using virt-manager
2. create VM snapshots using virt-manager
3. try to rename the VM

Actual results:
you are not able to do it

Expected results:
I should be able to rename the VM regardless if it has any snapshots!

Additional info:
Error changing VM configuration: Requested operation is not valid: cannot delete inactive domain with 2 snapshots

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details.py", line 2409, in _change_config_helper
    func(*args)
  File "/usr/share/virt-manager/virtManager/domain.py", line 461, in define_name
    newname)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 87, in _define_name_helper
    rename_cb(self, origxml, newxml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 782, in rename_vm
    obj, origxml, newxml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 753, in _rename_helper
    obj.delete(force=False)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1278, in delete
    self._backend.undefine()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1866, in undefine
    if ret == -1: raise libvirtError ('virDomainUndefine() failed', dom=self)
libvirtError: Requested operation is not valid: cannot delete inactive domain with 2 snapshots

Comment 1 Cole Robinson 2014-02-27 14:11:57 UTC

*** This bug has been marked as a duplicate of bug 558160 ***


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