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.
Cause:
MAC address not generated when it was not already specified by the user
Consequence:
It was possible only to specify a value, not let virt-manager generate it
Fix:
Properly generate a random MAC address
Result:
It is possible to use a random address
Description of problem:
virt-manager cannot process installing a new guest from HTTP or iso, if uncheck "Set a fixed mac address" under "Advanced options" and click "Customize configuration before install" as well
Version-Release number of selected component (if applicable):
virt-manager-1.1.0-6.el7.noarch
How reproducible:
100%
Steps to Reproduce:
1. Open virt-manager and try to install a new guest
# virt-manager
- Rightclick the connection and click "NEW"
- Choose installation method with http or iso
- Following steps with default option and click "Foward" button
2. On Step 5 of the installation, check on option "Customize configuration before install",
and uncheck "Set a fixed mac address" under "Advanced options"
3. Click "Finish" button
Actual results:
Step 11,
Error starting installation: 'NoneType' object has no attribute '__getitem__'
Details:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 1781, in finish
self.customize(guest)
File "/usr/share/virt-manager/virtManager/create.py", line 1813, in customize
self.config_window = vmmDetails(virtinst_guest, self.topwin)
File "/usr/share/virt-manager/virtManager/details.py", line 705, in __init__
self.populate_hw_list()
File "/usr/share/virt-manager/virtManager/details.py", line 3285, in populate_hw_list
self.repopulate_hw_list()
File "/usr/share/virt-manager/virtManager/details.py", line 3340, in repopulate_hw_list
update_hwlist(HW_LIST_TYPE_NIC, dev)
File "/usr/share/virt-manager/virtManager/details.py", line 3315, in update_hwlist
label = _label_for_device(dev)
File "/usr/share/virt-manager/virtManager/details.py", line 345, in _label_for_device
print dev.macaddr[-9:]
TypeError: 'NoneType' object has no attribute '__getitem__'
Expected results:
Divert to guest virtual details page
Additional info:
Comment 2Giuseppe Scrivano
2014-11-14 08:53:18 UTC
I can reproduce with:
virt-manager-1.1.0-6.el7.noarch
VERIFY with:
virt-manager-1.1.0-7.el7.noarch
Steps:
1. Open virt-manager and try to install a new guest # virt-manager
- Rightclick the connection and click "NEW"
- Choose installation method with http or iso
- Following steps with default option and click "Foward" button
2. On Step 5 of the installation, check on option "Customize configuration before install", and uncheck "Set a fixed mac address" under "Advanced options".
3. Click "Finish" button.
Result:
Divert to guest virtual details page successfully.
Then add some devices in the following page, and begin installation.
The guests can be installed successfully and function well.
As the result, set 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-0427.html
Description of problem: virt-manager cannot process installing a new guest from HTTP or iso, if uncheck "Set a fixed mac address" under "Advanced options" and click "Customize configuration before install" as well Version-Release number of selected component (if applicable): virt-manager-1.1.0-6.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Open virt-manager and try to install a new guest # virt-manager - Rightclick the connection and click "NEW" - Choose installation method with http or iso - Following steps with default option and click "Foward" button 2. On Step 5 of the installation, check on option "Customize configuration before install", and uncheck "Set a fixed mac address" under "Advanced options" 3. Click "Finish" button Actual results: Step 11, Error starting installation: 'NoneType' object has no attribute '__getitem__' Details: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 1781, in finish self.customize(guest) File "/usr/share/virt-manager/virtManager/create.py", line 1813, in customize self.config_window = vmmDetails(virtinst_guest, self.topwin) File "/usr/share/virt-manager/virtManager/details.py", line 705, in __init__ self.populate_hw_list() File "/usr/share/virt-manager/virtManager/details.py", line 3285, in populate_hw_list self.repopulate_hw_list() File "/usr/share/virt-manager/virtManager/details.py", line 3340, in repopulate_hw_list update_hwlist(HW_LIST_TYPE_NIC, dev) File "/usr/share/virt-manager/virtManager/details.py", line 3315, in update_hwlist label = _label_for_device(dev) File "/usr/share/virt-manager/virtManager/details.py", line 345, in _label_for_device print dev.macaddr[-9:] TypeError: 'NoneType' object has no attribute '__getitem__' Expected results: Divert to guest virtual details page Additional info: