Bug 1270309 - iPXE: ${mac} macro not necessarily points to the MAC of the NIC we are booting from
iPXE: ${mac} macro not necessarily points to the MAC of the NIC we are bootin...
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 8.0 (Liberty)
Assigned To: Lucas Alvares Gomes
Toure Dunnon
: ZStream
Depends On:
  Show dependency treegraph
Reported: 2015-10-09 10:46 EDT by Lucas Alvares Gomes
Modified: 2016-05-19 06:42 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-05-19 06:42:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1504482 None None None Never
OpenStack gerrit 232998 None None None Never

  None (edit)
Description Lucas Alvares Gomes 2015-10-09 10:46:48 EDT
Description of problem:
The iPXE macro ${mac} not not necessarily points to the MAC of the NIC we are booting from (see attachment). The machine is booting from a NIC ending with "95:1a" but the ${mac} variable is returning a MAC address from another NIC.

While rare, this situation can happen and we need to make sure our iPXE script is prepared to deal with it, my propose would be to loop over all NICs in order and try to boot from the first one that works

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:
If the big happens the machine will fail to boot

Expected results:
Machine booting correctly

Additional info:
Comment 2 Steve Baker 2016-04-10 19:35:05 EDT
It could be that the iPXE images in ipxe-bootimgs-20160127-1.git6366fa7a don't have this problem with ${mac}. Some testing with this image may show the problem is gone.

Also the solution which loops over all nics won't work on the old gitc4bce43 images because they don't have the inc function.
Comment 3 Lucas Alvares Gomes 2016-05-19 06:42:15 EDT
Thanks Steve,

Yes it was a problem with iPXE and has been fixed already.

Note You need to log in before you can comment on or make changes to this bug.