systemd-networkd: ActivationPolicy ignored in VLANs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Low
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The ActivationPolicy property in .network files is ignored for VLANs.
[Test Plan]
* On a Jammy machine with an interface named ens3, create the following configs:
$ cat > /etc/systemd/
[NetDev]
Name=vlan18
Kind=vlan
[VLAN]
Id=18
EOF
$ cat > /etc/systemd/
[Match]
Name=vlan18
[Network]
Address=
[Link]
ActivationPolic
EOF
$ cat > /etc/systemd/
[Match]
Name=ens3
[Network]
DHCP=ipv4
VLAN=vlan18
EOF
* Reboot the machine
* On an affected machine, the vlan18@ens3 interface will have a configured IP at boot, despite the ActivationPolic
[Where problems could occur]
The patch adds a condition where a netdev is not yet ready to be created. Specifically, it makes sure stacked netdevs are not created before their underlying link is activated. If we saw any problems, it would be related to netdev creation.
[Original Description]
This has been fixed upstream, see
Upstream bug: https:/
Any chance of a backport of the fix to 22.04?
Related branches
- Lukas Märdian: Approve
-
Diff: 506 lines (+442/-0)10 files modifieddebian/changelog (+22/-0)
debian/patches/lp2000880-network-create-stacked-netdevs-after-the-underlying-link-.patch (+33/-0)
debian/patches/lp2002445/sd-netlink-add-a-test-for-rtnl_set_link_name.patch (+81/-0)
debian/patches/lp2002445/sd-netlink-do-not-swap-old-name-and-alternative-name.patch (+54/-0)
debian/patches/lp2002445/sd-netlink-restore-altname-on-error-in-rtnl_set_link_name.patch (+64/-0)
debian/patches/lp2002445/udev-attempt-device-rename-even-if-interface-is-up.patch (+63/-0)
debian/patches/lp2002445/udev-net-allow-new-link-name-as-an-altname-before-renamin.patch (+36/-0)
debian/patches/lp2004478-network-dhcp4-accept-local-subnet-routes-from-DHCP.patch (+54/-0)
debian/patches/lp2009502-Enable-dev-sgx_vepc-access-for-the-group-sgx.patch (+27/-0)
debian/patches/series (+8/-0)
I have confirmed this is present in Jammy. The fix is present in Kinetic and Lunar.