Page MenuHomeVyOS Platform

Kea DHCPv4 HA: standby no longer takes over when the primary fails
Open, HighPublicBUG

Description

With a Kea DHCPv4 high-availability pair, when the primary is powered off or rebooted the standby stays in hot-standby and never moves to partner-down; existing clients lose their lease and new clients get no address. 1.5.1 takes over within ~10 s.

Rolling (primary powered off, clients behind a relay):

k2_ha=hot-standby,hot-standby,hot-standby  (at +10 s, +60 s, +180 s)
k2_unacked=0,1,4   c1/c2/c3 bound at +180 s: no   new-client probe: FAIL

1.5.1: k2_ha=partner-down at +10 s, all clients bound, new client served.

Cause
Introduced by T9167 ("align Kea HA timer defaults with Kea ARM", vyos-1x#5382, commit 4e6725261). The rendered HA parameters changed with no CLI option: 1.5.1 uses max-response-delay 10000, max-unacked-clients 0; rolling uses max-response-delay 60000, max-ack-delay 5000, max-unacked-clients 10 (python/vyos/template.py). Per the Kea ARM, max-unacked-clients 0 goes straight to partner-down; 10 requires that many distinct unacked clients first — a standby on a small LAN may never take over.

Suggested fix
Restore the 1.5.1 defaults, or add CLI options for max-response-delay, max-ack-delay and max-unacked-clients with the old values as defaults.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)