[Bug 1999178] Re: netplan generator causes deadlock during systemd daemon-reload
Lukas Märdian
1999178 at bugs.launchpad.net
Mon Aug 26 11:18:21 UTC 2024
"generate" is not calling "udevadm control --reload" anymore, as
discussed in https://github.com/canonical/netplan/pull/488
Fixed in the 1.0.1-1ubuntu2~24.04.1 SRU for Noble (LP: #2074197)
** Changed in: netplan.io (Ubuntu Noble)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1999178
Title:
netplan generator causes deadlock during systemd daemon-reload
Status in Netplan:
Fix Released
Status in netplan.io package in Ubuntu:
Fix Released
Status in netplan.io source package in Noble:
Fix Released
Status in netplan.io source package in Oracular:
Fix Released
Bug description:
From the issue in the systemd tracker [1]:
During a systemd daemon-reload, the Netplan generator in
/usr/lib/systemd/system-generators/netplan tries to reload the udev
rules and databases with udevadm control --reload [2], which causes a
deadlock, because reloading udev rules and databases requires a
functioning systemd-userdbd.service, which is not the case during a
systemd daemon-reload. The systemd developers will not consider making
changes to any systemd component in order to prevent this deadlock,
and instead suggest that the Netplan developers generate their systemd
link/network/netdev units using a generator service like systemd-
network-generator.service.
[1] https://github.com/systemd/systemd/issues/25543
[2] https://github.com/canonical/netplan/blob/bf8036d43837bc071d1d3f716f67dc24ef5a5b23/src/generate.c#L54
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1999178/+subscriptions
More information about the foundations-bugs
mailing list