Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Guillem Jover
Sun, 11 Oct 2026 21:50
Bug#1120467: kea-dhcp4-server: fails to work on boot when serving DHCP on bridge interface
Author: Guillem Jover
Date: Sun, 11 Oct 2026 21:50
Date: Sun, 11 Oct 2026 21:50
18 lines
2384 bytes
2384 bytes
Hi! On Mon, 2025-11-10 at 23:42:14 +1100, Russell Coker wrote: > The end result is that it is not serving DHCP. > > I run systemctl restart kea-dhcp4-server.service and then it's fine. On Mon, 2026-04-20 at 20:48:28 +0000, Thorsten Glaser wrote: > This happens if serving on *any* interface, even not bridges. I've been affected by this as well for a while. Rechecking this now, I noticed bug #988533 in ifupdown, where it points out that the wait-online support in ifupdown is not enabled by default. I've enabled it now and will see if the problems persist for me. You all might want to give that a try? Thanks, Guillem
Bug#1120467: kea-dhcp4-server: fails to work on boot when serving DHCP on bridge interface
Author: Thorsten Glaser
Date: Mon, 12 Oct 2026 17:30
Date: Mon, 12 Oct 2026 17:30
54 lines
4347 bytes
4347 bytes
Hi Guillem et al.
I forgot to update this bugreport with my recent findings, sorry.
We’re now using this, from Ansible as Jinja2 template:
{
"Dhcp4": {
"interfaces-config": {
// set by Ansible
"service-sockets-max-retries": 100,
"service-sockets-retry-wait-time": 7500,
// true aborts the daemon unless ALL interfaces can be used at startup
// false is safer and so we use it for monitored VMs
"service-sockets-require-all": {{ nagios_kea_dhcpd4 | default(false) | ternary('false', 'true') }},
"interfaces": {{ item.networks | dict2items | map(attribute='value') | selectattr('dhcpd', 'defined') | se>
},
[…]
That is, if the system is monitored anyway, try for a long time
(a few systems have network-manager, which during boot d̲i̲s̲a̲b̲l̲e̲s̲
the already-upped interfaces for half a minute or so again!) to
start all the sockets (here 100 times 7.5 seconds) and then (as
in the current state) keeps running, which is useful if some of
the NICs are plug-in and possibly not available.
If the system is not monitored, "service-sockets-require-all"
makes KEA exit if it cannot fire up all the sockets.
So, it turns out that KEA has both options but not enabled by
default.
I think any wait-until-online support will only move the window
of success or failure, and that the best option is to suggest
to users to modify the config accordingly. (Upstream is informed,
and they may or may not change the default config in future
releases.)
bye,
//mirabilos
--
Thorsten Glaser
Linux / Unix Developer
Tel.: +49 160 91168501
E-Mail: tglaser@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / https://www.b1-systems.de/
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt, HRB 3537
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads