After some analysis, it seems there are two mutually exclusive minimal
patches for solving this regression.

1. Jamie's vendor patch, linked above. This patch works by adding some
conditional guards to prevent the calling of
`link_drop_managed_config()` in the first place, which don't exist
upstream but logically revert to the pre-LP #2098183 behavior almost
exactly. I'm leaning toward this patch for this reason.

2. An adapted backport of the first hunk of upstream e09b7588
(https://github.com/systemd/systemd/commit/e09b7588). This fixes the
problem by modifying control flow within `link_drop_managed_config()` to
ignore connections that are ultimately defined as
`KeepConfiguration=true`. Because the conditional logic is inside of the
scope of `link_drop_managed_config()` in this approach, certain behavior
(e.g. cleanup when the network cable gets unplugged with `keep=yes`) now
follows v256 behavior whereas Jamie's patch retains v255 behavior.

In the interest of limiting behavioral changes, I will propose Jamie's
patch as the official solution to this bug and work toward an SRU
justification and uploading a debdiff in the coming days. I will attach
[2] for recordkeeping.

** Patch added: "lp2170677-networkd-drop-only-static-configs.patch"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2170677/+attachment/6020750/+files/lp2170677-networkd-drop-only-static-configs.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2170677

Title:
  systemd-networkd restart drops DHCP config with KeepConfiguration=yes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2170677/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to