Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description
Error launching delete dialog when try to delete guest with disk type volume
Version:
libvirt-1.2.15-1.el7.x86_64
virt-manager-1.2.0-2.el7.noarch
How reproducible:
100%
Steps to Reproduce:
1.Prepare a guest with disk type volume.
# virsh dumpxml rhel6.7-x64
<disk type='volume' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source pool='default' volume='rhel6.7-x64.img'/>
<target dev='vda' bus='virtio'/>
<boot order='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
2.Launch virt-manager,right click->Delete,error shows as below:
Error launching delete dialog: 'NoneType' object has no attribute 'get_target_path'
Actual results:
As description.
Expected results:
The guest can be deleted successfully.
Additional info:
Detailed error info:
Error launching delete dialog: 'NoneType' object has no attribute 'get_target_path'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 1129, in _do_delete_domain
self.delete_dialog.show(vm, src.topwin)
File "/usr/share/virt-manager/virtManager/delete.py", line 73, in show
self.reset_state()
File "/usr/share/virt-manager/virtManager/delete.py", line 106, in reset_state
self.vm, self.conn)
File "/usr/share/virt-manager/virtManager/delete.py", line 246, in populate_storage_list
d in vm.get_disk_devices()]
File "/usr/share/virt-manager/virtManager/delete.py", line 240, in get_path
return vol.get_target_path()
AttributeError: 'NoneType' object has no attribute 'get_target_path'
Comment 4Giuseppe Scrivano
2015-05-07 11:53:53 UTC
I can reproduce this bug with package:
virt-manager-1.2.0-2.el7.noarch
Steps are the same as description above.
Then try to verify with new build:
virt-manager-1.2.0-4.el7.noarch
Steps:
1.Prepare a guest with disk type volume.
# virsh dumpxml wf6.6-clone
<disk type='volume' device='disk'>
<driver name='qemu' type='raw'/>
<source pool='default' volume='wfguest6.6-clone.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</disk>
2. Launch virt-manager,right click->Delete
3. On the pop-up window, click 'Delete'
4. On the pop-up window, choose 'Yes'
Results:
After step 4, the VM can be deleted successfully.
According to the result above in the latest version of virt-manager, move this bug from ON_QA to VERIFIED.
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.
https://rhn.redhat.com/errata/RHBA-2015-2206.html
Description Error launching delete dialog when try to delete guest with disk type volume Version: libvirt-1.2.15-1.el7.x86_64 virt-manager-1.2.0-2.el7.noarch How reproducible: 100% Steps to Reproduce: 1.Prepare a guest with disk type volume. # virsh dumpxml rhel6.7-x64 <disk type='volume' device='disk'> <driver name='qemu' type='raw' cache='none'/> <source pool='default' volume='rhel6.7-x64.img'/> <target dev='vda' bus='virtio'/> <boot order='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </disk> 2.Launch virt-manager,right click->Delete,error shows as below: Error launching delete dialog: 'NoneType' object has no attribute 'get_target_path' Actual results: As description. Expected results: The guest can be deleted successfully. Additional info: Detailed error info: Error launching delete dialog: 'NoneType' object has no attribute 'get_target_path' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/engine.py", line 1129, in _do_delete_domain self.delete_dialog.show(vm, src.topwin) File "/usr/share/virt-manager/virtManager/delete.py", line 73, in show self.reset_state() File "/usr/share/virt-manager/virtManager/delete.py", line 106, in reset_state self.vm, self.conn) File "/usr/share/virt-manager/virtManager/delete.py", line 246, in populate_storage_list d in vm.get_disk_devices()] File "/usr/share/virt-manager/virtManager/delete.py", line 240, in get_path return vol.get_target_path() AttributeError: 'NoneType' object has no attribute 'get_target_path'