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.
Created attachment 1049737[details]
Debug info for virt-manager
Description:
Fail to install guest when set "CPU default" to "Copy host cpu definition"
Version:
virt-manager-1.2.1-2.el7.noarch
libvirt-1.2.17-1.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Launch virt-manager,click "Edit"->"Preferences"->"New VM"->"CPU default"->"Copy host cpu definition".
2.Create a new guest,choose pxe installation,set cpu/memory/storage as default value,then follow the GUI to finish installation.
3.After click "Finish",error shows:Unable to complete install: ''list' object has no attribute 'names''
Unable to complete install: ''list' object has no attribute 'names''
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1873, in do_install
guest.start_install(meter=meter)
File "/usr/share/virt-manager/virtinst/guest.py", line 393, in start_install
self.set_install_defaults()
File "/usr/share/virt-manager/virtinst/guest.py", line 560, in set_install_defaults
self._set_defaults()
File "/usr/share/virt-manager/virtinst/guest.py", line 689, in _set_defaults
self._set_cpu_defaults()
File "/usr/share/virt-manager/virtinst/guest.py", line 805, in _set_cpu_defaults
self.cpu.set_special_mode(self.x86_cpu_default)
File "/usr/share/virt-manager/virtinst/cpu.py", line 68, in set_special_mode
self.copy_host_cpu()
File "/usr/share/virt-manager/virtinst/cpu.py", line 107, in copy_host_cpu
for name in cpu.features.names():
AttributeError: 'list' object has no attribute 'names'
Actual results:
As description.
Expected results:
Guest can be installed successfully when set "CPU default" to "Copy host cpu definition"
Additional info:
Attached the debug info.
when check "Copy host CPU configuration" in Processor tab of host details window if choosing customize installation, it doesn't occur.
Upstream commit:
commit a9b303fb141df5b2d2051c6b4ed489dbb09952f8
Author: Pavel Hrdina <phrdina>
Date: Tue Jul 14 15:53:25 2015 +0200
virtinst.cpu: fix copy host cpu definition
Commit cac4ac14 updated cpu features to use XMLBuilder and this change
removes the 'Features' class. There is no longer any '.names()'
method to return names, so just cycle through all features and use a
name attribute instead.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1240938
Signed-off-by: Pavel Hrdina <phrdina>
Bug 1240938
I can reproduce the bug with build:
virt-manager-1.2.1-2.el7.noarch
libvirt-1.2.17-1.el7.x86_64
Try to verify this bug with package:
libvirt-1.2.17-2.el7.x86_64
virt-manager-1.2.1-4.el7.noarch
Steps:
1.Launch virt-manager,click "Edit" -> "Preferences" -> "New VM" -> "CPU default" -> "Copy host cpu definition".
2.Create a new guest,choose pxe installation,set cpu/memory/storage as default value,then follow the GUI to finish installation.
3.Clikc the "Finish" Button.
Result:
Create a new guest successfully.
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
Created attachment 1049737 [details] Debug info for virt-manager Description: Fail to install guest when set "CPU default" to "Copy host cpu definition" Version: virt-manager-1.2.1-2.el7.noarch libvirt-1.2.17-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Launch virt-manager,click "Edit"->"Preferences"->"New VM"->"CPU default"->"Copy host cpu definition". 2.Create a new guest,choose pxe installation,set cpu/memory/storage as default value,then follow the GUI to finish installation. 3.After click "Finish",error shows:Unable to complete install: ''list' object has no attribute 'names'' Unable to complete install: ''list' object has no attribute 'names'' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 1873, in do_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 393, in start_install self.set_install_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 560, in set_install_defaults self._set_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 689, in _set_defaults self._set_cpu_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 805, in _set_cpu_defaults self.cpu.set_special_mode(self.x86_cpu_default) File "/usr/share/virt-manager/virtinst/cpu.py", line 68, in set_special_mode self.copy_host_cpu() File "/usr/share/virt-manager/virtinst/cpu.py", line 107, in copy_host_cpu for name in cpu.features.names(): AttributeError: 'list' object has no attribute 'names' Actual results: As description. Expected results: Guest can be installed successfully when set "CPU default" to "Copy host cpu definition" Additional info: Attached the debug info. when check "Copy host CPU configuration" in Processor tab of host details window if choosing customize installation, it doesn't occur.