Hard-coded interface names (ethX) is using in fuel-main code

Bug #1494223 reported by Albert Syriy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Albert Syriy

Bug Description

The hard-coded interface names are using in fuel-main code (like eth0, eth1, ... etc).
Actually interface name could be a different from ethX and different naming schema could be used.
CentOS 7.0 using the new naming network interface schema.

==== Start quotation ====
Traditionally, network interfaces in Linux are enumerated as eth[0123…], but these names do not necessarily correspond to actual labels on the chassis. Modern server platforms with multiple network adapters can encounter non-deterministic and counter-intuitive naming of these interfaces. This affects both network adapters embedded on the motherboard (Lan-on-Motherboard, or LOM) and add-in (single and multiport) adapters.

By default, systemd will name interfaces using the following policy to apply the supported naming schemes:
Scheme 1: Names incorporating Firmware or BIOS provided index numbers for on-board devices (example: eno1), are applied if that information from the firmware or BIOS is applicable and available, else falling back to scheme 2.
Scheme 2: Names incorporating Firmware or BIOS provided PCI Express hotplug slot index numbers (example: ens1) are applied if that information from the firmware or BIOS is applicable and available, else falling back to scheme 3.
Scheme 3: Names incorporating physical location of the connector of the hardware (example: enp2s0), are applied if applicable, else falling directly back to scheme 5 in all other cases.
Scheme 4: Names incorporating interface's MAC address (example: enx78e7d1ea46da), is not used by default, but is available if the user chooses.
Scheme 5: The traditional unpredictable kernel naming scheme, is used if all other methods fail (example: eth0).
======= End quotation =============

The hard-coding name schema should be changed in fuel-main taking into account the information above.
The file with hard-coded network interfaces names in fuel-main is attached.

Revision history for this message
Albert Syriy (asyriy) wrote :
Changed in fuel:
assignee: nobody → asyriy (asyriy)
Revision history for this message
Albert Syriy (asyriy) wrote :
tags: added: module-fuelmenu module-master-node-installation
Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/223939

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/223939
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=cef6b199418c44f1e1f8899fcc9667f50fda8b15
Submitter: Jenkins
Branch: master

commit cef6b199418c44f1e1f8899fcc9667f50fda8b15
Author: Albert <email address hidden>
Date: Tue Sep 15 18:57:54 2015 +0300

    Ethernet interfaces may not be named as ethX

    Change-Id: If25043c622a5753d2cb46c1081f7cb78554be6a4
    Closes-bug: #1494223

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Albert Syriy (asyriy) wrote :

The commit was a small piece of code in fuel-main, but other components are still required to be fixed.

Changed in fuel:
status: Fix Committed → In Progress
Dmitry Pyzhov (dpyzhov)
tags: added: area-linux
Albert Syriy (asyriy)
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Alexandr Kostrikov (akostrikov-mirantis) wrote :

We are deploying predictable interface naming schema with fuel-qa and so far have not found any bugs with it.

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.