Bionic networking failures after NIC reordering
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned |
Bug Description
Documented across https:/
Creating this bug to focus on Bionic, because it's different than 20.04+ and last week's failure https:/
When NICs are renamed on boot, networkd tends to fail to configure them.
#######
# WITHOUT THE PROPOSED SYSTEMD PATCH
#######
cpatterson@
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether routable configured
3 eth1 ether n/a unmanaged
4 eth2 ether routable configured
5 eth3 ether routable configured
6 eth4 ether routable configured
7 eth5 ether off unmanaged
8 eth6 ether off unmanaged
9 eth7 ether off unmanaged
### As expected, we can see the properties are missing.
cpatterson@
P: /devices/
E: DEVPATH=
E: ID_NET_
E: ID_OUI_
E: ID_PATH=
E: ID_PATH_
E: IFINDEX=9
E: INTERFACE=eth1
E: SUBSYSTEM=net
E: SYSTEMD_
E: TAGS=:systemd:
E: USEC_INITIALIZE
### As expected, restarting networkd does not fix the issue.
cpatterson@
cpatterson@
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether routable configured
3 eth1 ether off unmanaged
4 eth2 ether routable configured
5 eth3 ether routable configured
6 eth4 ether routable configured
7 eth5 ether off unmanaged
8 eth6 ether off unmanaged
9 eth7 ether off unmanaged
9 links listed.
#######
# WITH THE PROPOSED SYSTEMD PATCH
#######
I built systemd with the proposed patches in https:/
cpatterson@
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether routable configured
3 eth1 ether n/a unmanaged
4 eth2 ether n/a unmanaged
5 eth3 ether n/a unmanaged
6 eth4 ether routable configured
7 eth5 ether n/a unmanaged
8 eth6 ether n/a unmanaged
9 eth7 ether n/a unmanaged
9 links listed.
cpatterson@
P: /devices/
E: DEVPATH=
E: ID_NET_
E: ID_NET_
E: ID_NET_NAME=eth1
E: ID_NET_
E: ID_OUI_
E: ID_PATH=
E: ID_PATH_
E: IFINDEX=3
E: INTERFACE=eth7
E: NM_UNMANAGED=1
E: SUBSYSTEM=net
E: SYSTEMD_
E: TAGS=:systemd:
E: USEC_INITIALIZE
cpatterson@
cpatterson@
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether routable configured
3 eth1 ether routable configured
4 eth2 ether routable configured
5 eth3 ether routable configured
6 eth4 ether routable configured
7 eth5 ether routable configured
8 eth6 ether routable configured
9 eth7 ether routable configured
9 links listed.
I've attached the journal logs for repro with the proposed systemd (237-3ubuntu10.55).
Changed in systemd (Ubuntu): | |
status: | New → Fix Released |
Reproducer script for both variants of systemd.