systemd-networkd core dumps in bionic-proposed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
Critical
|
Dan Streetman | ||
Cosmic |
Fix Released
|
Critical
|
Dan Streetman | ||
Disco |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
during restart, systemd-networkd fails an assertion and aborts, leaving the system networking partially (if at all) configured. Further restarts continue to fail.
[Test Case]
Install a bionic system (cosmic affected also) with only systemd-networkd networking (i.e. uninstall or do not configure netplan). Ensure no networkd conf files are in /run/systemd/
Create a file similar to below, adjusting for interface name:
$ cat /etc/systemd/
[Match]
Name=ens3
[Network]
Address=
Start networkd:
ubuntu@
ubuntu@
2: ens3: <BROADCAST,
link/ether 52:54:00:6e:8c:9f brd ff:ff:ff:ff:ff:ff
inet 192.168.122.68/24 brd 192.168.122.255 scope global ens3
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
Stop networkd; ens3 should retain its address:
ubuntu@
ubuntu@
2: ens3: <BROADCAST,
link/ether 52:54:00:6e:8c:9f brd ff:ff:ff:ff:ff:ff
inet 192.168.122.68/24 brd 192.168.122.255 scope global ens3
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
Start networkd again; the bug is triggered:
ubuntu@
Job for systemd-
See "systemctl status systemd-
Alternately, instead of separately stopping and then starting networkd, the failure can be reproduced with just a restart.
Note the failure only happens with statically-assigned addresses; interfaces configured with dhcp do not trigger this bug.
[Regression Potential]
TBD
[Other Info]
This was introduced by the SRU for bug 1812760; both the new behavior of networkd not removing managed addresses/routes from managed interfaces, as well as the assertion failure bug. This does not fail in disco; I believe additional commit(s) from upstream need to be backported.
Original description:
---
I run a number of servers with -proposed enabled and have seen a bunch of this today:
Mar 02 16:20:58 4-ridge-fw1 systemd[1]: systemd-
Mar 02 16:20:58 4-ridge-fw1 systemd[1]: Failed to start Network Service.
These machines have numerous bonds, so I suspect that's a factor.
So far I have only observed the issue on machines with -proposed enabled so I suspect it is a problem with systemd 237-3ubuntu10.14
Example netplan.yaml attached.
tags: | added: sts |
Changed in systemd (Ubuntu Disco): | |
status: | New → Fix Released |
Changed in systemd (Ubuntu Cosmic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Cosmic): | |
importance: | Undecided → Critical |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Critical |
Changed in systemd (Ubuntu Cosmic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Cosmic): | |
importance: | Critical → High |
Changed in systemd (Ubuntu Bionic): | |
importance: | Critical → High |
Changed in systemd (Ubuntu Bionic): | |
importance: | High → Critical |
Changed in systemd (Ubuntu Cosmic): | |
importance: | High → Critical |
description: | updated |
description: | updated |
Needless to say I suggest not promoting systemd from -proposed until this is figured out :)