dhclient triggers systemd-resolved start limit when processing more than 5 interfaces at once
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Dan Streetman | ||
Focal |
Fix Released
|
Medium
|
Dan Streetman |
Bug Description
[impact]
on a system where systemd-resolved is running, if dhclient is used on more than 5 interfaces, it calls the '/etc/dhcp/
[test case]
on a system with more than 5 available interfaces to run dhclient on (where all the interfaces will get a dhcp response), run dhclient with the interfaces:
$ dhclient ens8 ens9 ens10 ens11 ens12 ens13 ens14 ens15
check if systemd-resolved failed:
$ journalctl -b -1 -u systemd-resolved
...
Aug 09 00:38:08 sf316232-b systemd[1]: systemd-
Aug 09 00:38:08 sf316232-b systemd[1]: systemd-
Aug 09 00:38:08 sf316232-b systemd[1]: Failed to start Network Name Resolution.
[regression potential]
failure to start/stop/restart systemd-resolved, or problems adding dhclient-provided DNS nameservers to systemd-resolved
[scope]
this is needed only for b/f
the dhclient 'hook' script is provided by the systemd package in focal and earlier, and needs fixing in those releases
in h and later, the 'hook' script is included in the isc-dhcp-client package and notifies systemd-resolved in a more direct way without requiring restarting, and so doesn't trigger the restart limiting.
Changed in systemd (Ubuntu): | |
status: | New → Invalid |
Changed in systemd (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Focal): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
I have tested this on both Focal and Bionic VMs. I ensured that the systemd-resolved unit was in a failed state, restarted it, added the PPA, updated the systemd packages, and rebooted. After every reboot the systemd-resolved was in an "active" state.
I tested this with at least 10 reboots on each affected Ubuntu release (b and f).