Bug 1400510 - os-net-config-mappings.yaml - Example does not work on most hardware due to "Consistent Network Device Naming
Summary: os-net-config-mappings.yaml - Example does not work on most hardware due to "...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: z3
: 10.0 (Newton)
Assignee: Jiri Stransky
QA Contact: mlammon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-01 12:11 UTC by Harald Jensås
Modified: 2017-06-28 14:44 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-5.2.0-18.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-28 14:44:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1642551 0 None None None 2016-12-01 12:11:51 UTC
OpenStack gerrit 399040 0 None MERGED No longer hard coding to a specifc network interface name. 2020-09-13 15:42:01 UTC
OpenStack gerrit 406634 0 None MERGED No longer hard coding to a specifc network interface name. 2020-09-13 15:42:01 UTC
Red Hat Product Errata RHBA-2017:1585 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 director Bug Fix Advisory 2017-06-28 18:42:51 UTC

Description Harald Jensås 2016-12-01 12:11:52 UTC
Description of problem:
The following line in OsNetConfigMappings: resource of this example is using "eth0" network device name to get a eth address as "system identifier"

  eth_addr=$(/sbin/ifconfig eth0 | grep ether | awk '{print $2}')

On a CentOS or RHEL deployment on baremetal hardware would not have an "eth0" interface. Because of Consisten Netowork Device Naming[1], the interface can be "emX", "enoX" or "pXpX" etc.

[1] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/ch-Consistent_Network_Device_Naming.html

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


How reproducible:
Try os-net-config-mappings on a hardware system. Due to Consistent Device Names being enabled by default the "/sbin/ifconfig eth0" command returns an error such as:
 'eth0: error fetching interface information: Device not found'

Actual results:
NIC mapping file is not created, because the method to identify the different host does not work when Consistent Network Device Naming is enabled.

Expected results:
The host should be identified even with Consisten Network Device Naming enabled, and the mappings.yaml file should be written.

Additional info:

Upstram Bug: https://bugs.launchpad.net/tripleo/+bug/1642551

Proposed Fix upstream: https://review.openstack.org/#/c/399040/

Comment 2 Jiri Stransky 2016-12-04 22:08:53 UTC
Backport to stable/newton: https://review.openstack.org/#/c/406634/

Comment 3 Red Hat Bugzilla Rules Engine 2017-02-08 17:24:30 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 9 errata-xmlrpc 2017-06-28 14:44:12 UTC
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-2017:1585


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