Bug 1301899 - virt-manager fails to rename VM with snapshots: 'cannot delete inactive domain with 1 snapshots'
virt-manager fails to rename VM with snapshots: 'cannot delete inactive domai...
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: virt-manager (Show other bugs)
unspecified
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Cole Robinson
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-26 05:13 EST by Jiri Prajzner
Modified: 2016-01-27 09:50 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jiri Prajzner 2016-01-26 05:13:06 EST
Description of problem:
virt-mgr cannot rename VM with existing snapshots

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

How reproducible:
Always

Steps to Reproduce:
1. have a VM
2. create snapshot(s)
3. try to rename the VM

Actual results:
Error apply changes: Requested operation is not valid: cannot delete inactive domain with 1 snapshots

Error apply changes: Requested operation is not valid: cannot delete inactive domain with 1 snapshots

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details.py", line 1833, in config_apply
    ret = self.config_overview_apply()
  File "/usr/share/virt-manager/virtManager/details.py", line 1925, in config_overview_apply
    self.vm.define_name(self.widget("overview-name").get_text())
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 130, in define_name
    self.conn.rename_object(self, origxml, newxml, oldconnkey)
  File "/usr/share/virt-manager/virtManager/connection.py", line 697, in rename_object
    obj.delete(force=False)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1423, in delete
    self._backend.undefine()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2690, in undefine
    if ret == -1: raise libvirtError ('virDomainUndefine() failed', dom=self)
libvirtError: Requested operation is not valid: cannot delete inactive domain with 1 snapshots

Expected results:
The VM is renamed.

Additional info:
related: https://bugzilla.redhat.com/show_bug.cgi?id=1264687

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