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 of problem:
virt-manager should not report error after deleting a transient domain
Version-Release number of selected component (if applicable):
virt-manager-1.4.3-2.el7.noarch
How reproducible:
100%
Steps to Reproduce:
1. Create a transient domain with an existing xml file.
# virsh create test.xml
Domain ESX4.1 created from test.xml
# virsh dominfo ESX4.1
Id: 31
Name: ESX4.1
UUID: 94c96c33-6433-4fde-aebb-2fed6b964f5e
OS Type: hvm
State: running
CPU(s): 1
CPU time: 7.4s
Max memory: 1048576 KiB
Used memory: 1048576 KiB
Persistent: no
Autostart: disable
Managed save: no
Security model: selinux
Security DOI: 0
Security label: system_u:system_r:svirt_t:s0:c928,c1001 (enforcing)
2. Launch virt-manager.
# virt-manager
3. Delete domain ESX4.1. (Select 'ESX4.1', then right click it, select 'Delete'.)
Actual results:
After step3, 'Delete Virtual Machine' window pops up, click 'Delete' button.
We can see domain ESX4.1 has been deleted, but there always leaves some error message like:
Error deleting virtual machine 'ESX4.1': Domain not found: no domain with matching uuid '94c96c33-6433-4fde-aebb-2fed6b964f5e' (ESX4.1)
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/delete.py", line 185, in _async_delete
self.vm.delete()
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1533, in delete
self._backend.undefine()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2694, in undefine
if ret == -1: raise libvirtError ('virDomainUndefine() failed', dom=self)
libvirtError: Domain not found: no domain with matching uuid '94c96c33-6433-4fde-aebb-2fed6b964f5e' (ESX4.1)
Additionally, there were errors removing certain storage devices:
Expected results:
No error reports after deleting transient domain.
Additional info:
Try to verify this bug with new build:
virt-manager-1.4.3-3.el7.noarch
Steps:
1. Create a transient domain with an existing xml file.
# virsh create test.xml
Domain test created from test.xml
# virsh dominfo test
Id: 11
Name: test
UUID: aaf2501b-53c6-4f14-9cfc-75b5b8efe6f6
OS Type: hvm
State: running
CPU(s): 1
CPU time: 17.1s
Max memory: 1048576 KiB
Used memory: 1048576 KiB
Persistent: no------------------------>It's a transient domain
Autostart: disable
Managed save: no
Security model: selinux
Security DOI: 0
Security label: system_u:system_r:svirt_t:s0:c301,c1009 (enforcing)
2. Launch virt-manager.
# virt-manager
3. Delete domain test. (Select 'test', then right click it, select 'Delete'.)
Result:
Domain 'test' can be deleted successfully with no error.
So move this bug from ON_QA to VERIFIED status, thanks.
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://access.redhat.com/errata/RHEA-2018:0726
Description of problem: virt-manager should not report error after deleting a transient domain Version-Release number of selected component (if applicable): virt-manager-1.4.3-2.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Create a transient domain with an existing xml file. # virsh create test.xml Domain ESX4.1 created from test.xml # virsh dominfo ESX4.1 Id: 31 Name: ESX4.1 UUID: 94c96c33-6433-4fde-aebb-2fed6b964f5e OS Type: hvm State: running CPU(s): 1 CPU time: 7.4s Max memory: 1048576 KiB Used memory: 1048576 KiB Persistent: no Autostart: disable Managed save: no Security model: selinux Security DOI: 0 Security label: system_u:system_r:svirt_t:s0:c928,c1001 (enforcing) 2. Launch virt-manager. # virt-manager 3. Delete domain ESX4.1. (Select 'ESX4.1', then right click it, select 'Delete'.) Actual results: After step3, 'Delete Virtual Machine' window pops up, click 'Delete' button. We can see domain ESX4.1 has been deleted, but there always leaves some error message like: Error deleting virtual machine 'ESX4.1': Domain not found: no domain with matching uuid '94c96c33-6433-4fde-aebb-2fed6b964f5e' (ESX4.1) Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/delete.py", line 185, in _async_delete self.vm.delete() File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn ret = fn(self, *args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1533, in delete self._backend.undefine() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2694, in undefine if ret == -1: raise libvirtError ('virDomainUndefine() failed', dom=self) libvirtError: Domain not found: no domain with matching uuid '94c96c33-6433-4fde-aebb-2fed6b964f5e' (ESX4.1) Additionally, there were errors removing certain storage devices: Expected results: No error reports after deleting transient domain. Additional info: