[IBP] new udev NIC mappings will applied only after reboot

Bug #1420885 reported by Alexander Gordeev
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Alexander Gordeev
6.0.x
Fix Committed
High
Alexander Gordeev

Bug Description

Current implementation doesn't do a node reboot action meanwhile manipulating with 70-net-persistent.rules file.
So, the actual changes won't be applied until next reboot.
This leads to improper NIC order.

In order to change NIC order without reboot, we could try to re-load NIC's kernel modules.

tags: added: customer-found
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :

centos isn't affected

Revision history for this message
Michael Petersen (mpetason) wrote :

Is it possible to inject the 70-net-persistent rules on provision instead of generating one? I know you can do this manual with guestfish, if you have the Mac addresses, however I don't know of an automated way to do this.

Revision history for this message
Jason Venner (jvenner-e) wrote :

Can't we order the nic interfaces in the 70-net-persistent rules file before the first boot of the native OS.

I believe when we jump up to 14.X this may handled with systemd changes http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

I haven't tried this, but I believe it also works

Sometimes you get an incorrect matching of ethernet device numbers and MAC addresses. Sometimes this is really important, like when running in a VM and each device is assigned to a different VLAN.

bring down means stop the networking so that there is no state [successfully running service networking stop]
Bring the network interfaces down, then
modify /etc/udev/rules.d/70-persistent-net.rules (or its equivalent)
re-load with udevadm control --reload-rules and finally
re-trigger with udevadm trigger --attr-match=subsystem=net
bring the network interfaces up.
I was surprised how well this worked.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/6.0)

Fix proposed to branch: stable/6.0
Review: https://review.openstack.org/155782

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/155703
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=7499c4025fecab0bf0769aaa4e9b561423128b27
Submitter: Jenkins
Branch: master

commit 7499c4025fecab0bf0769aaa4e9b561423128b27
Author: Alexander Gordeev <email address hidden>
Date: Fri Feb 13 13:47:22 2015 +0300

    [IBP] move udev rules manipulating out of cloud-init

    We need to create udev rules prior the first boot. It's significally
    easier to inject files and less magic required.

    Change-Id: Iaa4dddad0efe5ac41f6b1284a8c4aa85066e39a9
    Closes-Bug: #1420885

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/6.0)

Reviewed: https://review.openstack.org/155782
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=6797802764d40a5bf860d961193cd7b8d3d84a86
Submitter: Jenkins
Branch: stable/6.0

commit 6797802764d40a5bf860d961193cd7b8d3d84a86
Author: Alexander Gordeev <email address hidden>
Date: Fri Feb 13 13:47:22 2015 +0300

    [IBP] move udev rules manipulating out of cloud-init

    We need to create udev rules prior the first boot. It's significally
    easier to inject files and less magic required.

    Change-Id: Iaa4dddad0efe5ac41f6b1284a8c4aa85066e39a9
    Closes-Bug: #1420885

Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #210

"build_id": "2015-03-19_22-54-44", "ostf_sha": "b9a090c71682fbea5d9351051827d7d654d07be3", "build_number": "210", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-03-19_22-54-44", "ostf_sha": "b9a090c71682fbea5d9351051827d7d654d07be3", "build_number": "210", "api": "1.0", "nailgun_sha": "1d2bd383caecc5ec3f86bf93ccca940326f23e97", "production": "docker", "python-fuelclient_sha": "b223dcaf5fdad2f714cd245958fefe03995d6207", "astute_sha": "4a117a1ca6bdcc34fe4d086959ace1a6d18eeca9", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "f3d6353c08d8eb709c7ab100b56dc2bebef4157f", "fuellib_sha": "7764225db5bc653563309912afbb4058283c808b"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "1d2bd383caecc5ec3f86bf93ccca940326f23e97", "production": "docker", "python-fuelclient_sha": "b223dcaf5fdad2f714cd245958fefe03995d6207", "astute_sha": "4a117a1ca6bdcc34fe4d086959ace1a6d18eeca9", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "f3d6353c08d8eb709c7ab100b56dc2bebef4157f", "fuellib_sha": "7764225db5bc653563309912afbb4058283c808b"

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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