Bug 1240938
Summary: | Fail to install guest when set "CPU default" to "Copy host cpu definition" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | tingting zheng <tzheng> | ||||
Component: | virt-manager | Assignee: | Pavel Hrdina <phrdina> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.2 | CC: | juzhou, mzhan, qxiao, xiaodwan | ||||
Target Milestone: | rc | Keywords: | Regression | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | virt-manager-1.2.1-3.el7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-19 05:31:40 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Upstream patch posted: https://www.redhat.com/archives/virt-tools-list/2015-July/msg00034.html 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.