OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: iamd on May 10, 2025, 03:55:25 PM

Title: [Solved] Issue with stoping and restarting kea-dhcp service from shell
Post by: iamd on May 10, 2025, 03:55:25 PM
Can't stop and restart the kea-dhcp server service from the shell after updating to Opnsense 25.1.6_4-amd64.

I have CARP setup with two opnsense in HA mode. this is working since few years.
 
I have CARP script which perform stop and restart of the kea-dhcp service but now it can't stop and restart.

script has pluginctl -s kea-dhcpv4 stop and pluginctl -s kea-dhcpv4 restart but its not working.

I have manually tried running these commands from shell (root) as well but don't do stop, start or restart kea-dhcp service.

Any help would be much appreciated.

[Solved]:
kea dhcp service name is renamed in 24.6.xx
its not kea-dhvpv4 , its called kea-dhcp now.

 pluginctl -s kea-dhcp stop
 pluginctl -s kea-dhcp start


thank you
Title: Re: [Solved] Issue with stoping and restarting kea-dhcp service from shell
Post by: Fabian Wenk on May 22, 2025, 02:45:18 PM
The ISC DHCPd does support HA setup on its own. As I am not yet using Kea, I just checked the configuration options and I do see the following things:

1) In "Kea DHCPv4" in "Settings" there is the "High Availability" part.
2) In "Kea DHCPv4" there is also "HA Peers"

Without consulting any further documentation, for me this looks like Kea itself should be able to properly do HA on its own without the need to manually start/stop on CARP change.

Or do I see this wrong?
Title: Re: [Solved] Issue with stoping and restarting kea-dhcp service from shell
Post by: Monviech (Cedrik) on May 22, 2025, 03:49:09 PM
Kea DHCP supports HA with lease sync. You do not have to stop and start it when the CARP status changes.