networkd tears down bridge ip address when the last device is pulled out from the bridge

Bug #1793555 reported by Vladimir Pouzanov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In Ubuntu 18.04.1 LTS (systemd 237) pulling out the last device out of the bridge removes the bridge ip address.

given the following config:

# cat /etc/systemd/network/vmbr0.netdev
[NetDev]
Name=vmbr0
Kind=bridge

[Bridge]
HelloTimeSec=0
ForwardDelaySec=0
STP=no

# cat /etc/systemd/network/vmbr0.network
[Match]
Name=vmbr0

[Network]
Address=10.10.0.1/16
ConfigureWithoutCarrier=yes
DHCP=no
IPForward=yes
IPv6AcceptRA=no
LinkLocalAddressing=no

networkd would bring up vmbr0 with 10.10.0.1/16 on system boot despite it not having any devices, allowing services to bind to 10.10.0.1.

However, if you add a device and then remove it (e.g. by starting and then stopping a virtual machine connected to the bridge), networkd would tear down the interface:

3: vmbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 16:19:4c:7f:e8:c4 brd ff:ff:ff:ff:ff:ff

thus making any service listening on 10.10.0.1 inaccessible.

previously on Xenial the bridge would stay intact.

Revision history for this message
Vladimir Pouzanov (farcaller) wrote :

Seems to be related to https://github.com/systemd/systemd/pull/7403 which isn't merged still.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Scati Labs I+D (scatilabs) wrote :

This issue has been fixed upstream: https://github.com/systemd/systemd/pull/10597

Revision history for this message
Dan Streetman (ddstreet) wrote :

This appears to be fixed in the latest version of systemd for Bionic and later.

Changed in systemd (Ubuntu):
status: Confirmed → Fix Released
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.