I suspect that since you provided no network configuration to the
bridge, then it is considered unconfigured. networkctl seems to confirm.
Now, it looks like we could use:
BindCarrier=
A link name or a list of link names. When set, controls the behavior of the
current link. When all links in the list are in an operational down state, the
current link is brought down. When at least one link has carrier, the current
interface is brought up.
I tested this, and it appears to work:
# cat /run/systemd/network/10-netplan-br0.network
[Match]
Name=br0
[Network]
BindCarrier=eth1
root@b1:~# networkctl status br0
● 2: br0
Link File: n/a
Network File: /run/systemd/network/10-netplan-br0.network
Type: ether
State: degraded (configured)
HW Address: ee:17:6d:12:fe:c5
Address: fe80::ec17:6dff:fe12:fec5
Carrier Bound To: eth1
root@b1:~# ip link show br0
2: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode
DEFAULT group default qlen 1000
link/ether ee:17:6d:12:fe:c5 brd ff:ff:ff:ff:ff:ff
root@b1:~# ip link show eth1
94: eth1@if95: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master
br0 state UP mode DEFAULT group default qlen 1000
link/ether 00:16:3e:02:88:ea brd ff:ff:ff:ff:ff:ff link-netnsid 0
However, it's not clear to me that we want to bring down br0 if one or
more of the interfaces were to go down, so this may be something that
needs a better upstream fix.
This issue seemed to match:
https://github.com/systemd/systemd/issues/425
And some users seem to be working around by emitting units which are
effectively a network-online hook, but that doesn't look very clean IMO.
** Bug watch added: github.com/systemd/systemd/issues #425
https://github.com/systemd/systemd/issues/425
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748332
Title:
Bridges fail to come online when configured via LXD, netplan, and
cloud-init
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1748332/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs