Interface renaming fails for some NICs on kernel 4.4

Bug #1656892 reported by Mikhail Chernik
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Fix Committed
High
Oleksiy Molchanov
9.x
Fix Released
High
MOS Maintenance

Bug Description

Found on MOS 9.2 snapshot 688

Description:
for some network card interface renaming process fails, so some interfaces end up with name renameX.

The numbers seem to depend on NIC initialization order and this can cause deployment failure.

This issue is *not* reproduced neither with kernel 3.13 nor on MOS 10.0 (build 1237) kernel 4.4

i40e: http://paste.openstack.org/show/595077/
mlx4: http://paste.openstack.org/show/595055/

Tags: area-linux
Dmitry Klenov (dklenov)
Changed in mos:
importance: Undecided → High
Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

Found the following in 70-persistent-net.rules on node-2 (0c:c4:7a:6c:88:fe) see attached file.

Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

Found in user_data file (configdrive volume sda6):
-----
ADMIN_MAC=0c:c4:7a:6c:88:fe
ADMIN_IF=$(echo 0c:c4:7a:6c:88:fe_enp10s0f0,0c:c4:7a:6c:88:ff_enp10s0f1,68:05:ca:30:01:c4_ens11f0,68:05:ca:30:01:c1_ens11f1,68:05:ca:30:00:b8_ens3f0,68:05:ca:30:00:b9_ens3f1,68:05:ca:30:01:c0_rename6,68:05:ca:30:01:c5_rename9 | sed 's/[,=]/\n/g' | grep "$ADMIN_MAC" | cut -d_ -f2 | head -1)
-----

Changed in mos:
assignee: nobody → MOS Linux (mos-linux)
status: New → Confirmed
Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

To fix fcoe renaming the following file should be added to '/etc/udev/rules.d' - 80-fcoe-net-names-generator.rules (see attachement). IMPORTANT - it's index must be not lower than 75.

With this file network interfaces 'renameX' are renamed correctly to 'enp' intefaces:
-----
root@bootstrap:/etc/udev/rules.d# ip l
...
7: enp129s0f0: <BROADCAST,MULTICAST> mtu 2158 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 68:05:ca:30:01:c4 brd ff:ff:ff:ff:ff:ff
...
9: enp129s0f1: <BROADCAST,MULTICAST> mtu 2158 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 68:05:ca:30:01:c5 brd ff:ff:ff:ff:ff:ff
-----

So this could be fixed by custom udev rule added to /etc/udev/rules.d

Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

initrd image for bootstrap is generated by fuel-agent so I'm passing the bug to fuel-sustaining team.

Changed in mos:
assignee: MOS Linux (mos-linux) → Fuel Sustaining (fuel-sustaining-team)
Revision history for this message
Alexey Shtokolov (ashtokolov) wrote :
Changed in mos:
status: Confirmed → In Progress
Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-agent 11.0.0.0rc1

This issue was fixed in the openstack/fuel-agent 11.0.0.0rc1 release candidate.

Revision history for this message
Sergii Rizvan (srizvan) wrote :

Here is another patch that should be merged https://review.openstack.org/#/c/424741

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :
Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :

Can't reproduce the error on a test environment. In accordance with our policy, fix should be verified on the customer side.

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.