Bug 1667308
| Summary: | Cannot modify guest's name on uefi firmware when creating new vm on rhel 7 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | zonglin jiang <zjiang> |
| Component: | virt-manager | Assignee: | Pavel Hrdina <phrdina> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.6 | CC: | juzhou, mxie, mzhan, tzheng, xiaodwan, zili |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-manager-1.5.0-2.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1667025 | Environment: | |
| Last Closed: | 2019-08-06 13:08:01 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: | |||
Upstream commit:
commit b206931eb9644e33b31c3141ba3403993898a090
Author: Pavel Hrdina <phrdina>
Date: Tue Mar 5 15:49:23 2019 +0100
virtManager: domain: override rename_domain in vmmDomainVirtinst
I can reproduce this issue with package: virt-manager-1.5.0-1.el7.noarch Then try to verify this bug with new build: virt-manager-1.5.0-3.el7.noarch virt-install-1.5.0-3.el7.noarch libvirt-4.5.0-12.el7.x86_64 qemu-kvm-rhev-2.12.0-26.el7.x86_64 libvirt-python-4.5.0-1.el7.x86_64 Steps: 1.Check the modification of guest's name on uefi firmware. 1.1 Launch virt-manager, create a new vm 1.2 In the last step, check customize configuration before install 1.3 Click overview, for "firmware" choose "uefi", click apply 1.4 Modify name to rhel7.6-uefi,then click apply Result:After modify guest's name to a legal one,the installation is success without error pops up. I move this bug from ON_QA to VERIFIED based on above testing. 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/RHBA-2019:2232 |
Version-Release number of selected component (if applicable): virt-manager-1.5.0-1.el7.noarch package qemu-kvm is not installed libvirt-4.5.0-10.el7_6.3.x86_64 libvirt-python-4.5.0-1.el7.x86_64 kernel-3.10.0-957.el7.x86_64 How reproducible 100% Steps to Reproduce 1.Launch virt-manager, create a new vm 2.In the last step, check customize configuration before install 3.Click overview, for "firmware" choose "uefi", click apply 4.Modify name to a legal one, click apply Actual results: After step 4,Error pops up Error apply changes: 'NoneType' object has no attribute 'rfind' Expected results: No errors pop up and the name can be modified successfully. Additionally info: Thishappens on both rhel7 and rhel8 virt-manager --debug shows: [Fri, 18 Jan 2019 14:24:03 virt-manager 8264] DEBUG (error:99) error dialog message: summary=Error apply changes: 'NoneType' object has no attribute 'rfind' details=Error apply changes: 'NoneType' object has no attribute 'rfind' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/details.py", line 1887, in config_apply ret = self.config_overview_apply() File "/usr/share/virt-manager/virtManager/details.py", line 1979, in config_overview_apply self.vm.rename_domain(self.widget("overview-name").get_text()) File "/usr/share/virt-manager/virtManager/domain.py", line 596, in rename_domain new_nvram, old_nvram = self._copy_nvram_file(new_name) File "/usr/share/virt-manager/virtManager/domain.py", line 571, in _copy_nvram_file nvram_dir = os.path.dirname(old_nvram.path) File "/usr/lib64/python2.7/posixpath.py", line 129, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'