The interface using on PXE could not be renamed on Ubuntu bootstrap (by udev)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Critical
|
Albert Syriy | ||
7.0.x |
Invalid
|
Critical
|
Albert Syriy | ||
8.0.x |
Fix Released
|
Critical
|
Albert Syriy | ||
9.x |
Fix Released
|
High
|
Albert Syriy |
Bug Description
The interface using on PXE boot on Ubuntu bootstrap could not be renamed by udev.
Attempting rename the interface by udev get the error "device busy".
When we are not using the work-around ifdown/ifup eth0 we got following interface names
===
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:9c:63:15
inet addr:10.20.0.3 Bcast:10.20.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179224 errors:0 dropped:0 overruns:0 frame:0
TX packets:6795 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:270678633 (270.6 MB) TX bytes:1775628 (1.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@bootstrap:~# ip link
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,
link/ether 00:50:56:9c:63:15 brd ff:ff:ff:ff:ff:ff
3: eno33554960: <BROADCAST,
link/ether 00:50:56:9c:79:6e brd ff:ff:ff:ff:ff:ff
===
It happens because udev rules are applied too later, when interfaces have been up and configured.
tags: | added: same-as-1529631 |
Changed in fuel: | |
importance: | Undecided → High |
affects: | fuel → mos |
Changed in mos: | |
milestone: | 8.0 → none |
milestone: | none → 8.0 |
> It happens because udev rules are applied too later, when interfaces have been up and configured.
we can disable udev rules processing by
# udevadm control --stop-exec-queue
and then enable it back with
# udevadm control --start-exec-queue
however, this seems to be too fragile and could have additional side effects as well.