[Kea-users] Problems setting up HA

Tan Mientras tanimientras at gmail.com
Wed Nov 9 11:07:17 UTC 2022


yes. the issue was I wasn't using agents at all (only installed dhcp-server
and hook libraries)

On Wed, Nov 9, 2022 at 11:51 AM Peter Davies <peterd at isc.org> wrote:

> Hi Tan,
>     Does the "control-socket" definition in your kea-dhcp4 configuration
> match
> the "control-socket" definition in the /etc/kea-ctrl-agent.conf file?
>
> /Peter
> On 09/11/2022 11.22, perl-list wrote:
> > Are you running the control agent?  Mine shown below is for dhcp6, but
> i'm sure the config is similar.
> >
> > $ /usr/sbin/kea-ctrl-agent -c /etc/kea-ctrl-agent.conf
> >
> > $ cat /etc/kea-ctrl-agent.conf
> > {
> >      "Control-agent": {
> >          "http-host": "10.0.0.1",
> >          "http-port": 8000,
> >          "control-sockets": {
> >              "dhcp6": {
> >                  "socket-type": "unix",
> >                  "socket-name": "/tmp/kea6-ctrl-socket"
> >              }
> >          }
> >      }
> > }
> >
> > ----- Original Message -----
> >> From: "Tan Mientras" <tanimientras at gmail.com>
> >> To: "kea-users" <kea-users at lists.isc.org>
> >> Sent: Wednesday, November 9, 2022 2:39:44 AM
> >> Subject: [Kea-users] Problems setting up HA
> >> Hi
> >> I'm having issues setting up the HA.
> >> Once the servers are running the complain with:
> >> Nov 9 08:29:59 vmdhcp01 kea-dhcp4[170994]: INFO DHCP4_STARTED Kea
> DHCPv4 server
> >> version 2.3.2 started
> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: WARN
> >> HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to vmdhcp02
> ( [
> >> http://192.168.120.253:8000/ | http://192.168.120.253:8000/ ] ):
> Connection
> >> refused
> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: WARN
> HA_COMMUNICATION_INTERRUPTED
> >> communication with vmdhcp02 is interrupted
> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_STATE_TRANSITION
> server
> >> transitions from WAITING to PARTNER-DOWN state, partner state is
> UNDEFINED
> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO
> HA_LEASE_UPDATES_DISABLED lease
> >> updates will not be sent to the partner while in PARTNER-DOWN state
> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_LOCAL_DHCP_ENABLE
> local DHCP
> >> service is enabled while the vmdhcp01 is in the PARTNER-DOWN state
> >> vmdhcp01 and vmdhcp02 have similar configuration (except
> this-server-name):
> >> "hooks-libraries":[
> >> {
> >> "library":"/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
> >> "parameters":{
> >> "high-availability": [{
> >> "this-server-name": "vmdhcp01",
> >> "mode": "load-balancing",
> >> "heartbeat-delay": 10000,
> >> "max-response-delay": 10000,
> >> "max-ack-delay": 5000,
> >> "max-unacked-clients": 0,
> >> "delayed-updates-limit": 100,
> >> "peers": [{
> >> "name": "vmdhcp01",
> >> "url": " [ http://192.168.120.254:8000/ | http://192.168.120.254:8000/
> ] ",
> >> "role": "primary",
> >> "auto-failover": true
> >> }, {
> >> "name": "vmdhcp02",
> >> "url": " [ http://192.168.120.253:8000/ | http://192.168.120.253:8000/
> ] ",
> >> "role": "secondary",
> >> "auto-failover": true
> >> }]
> >> }]
> >> }
> >> }
> >> ],
> >> Anyone can help me?
> >> --
> >> ISC funds the development of this software with paid support
> subscriptions.
> >> Contact us at https://www.isc.org/contact/ for more information.
> >> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
> >> Kea-users mailing list
> >> Kea-users at lists.isc.org
> >> https://lists.isc.org/mailman/listinfo/kea-users
>
> --
>
> --
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20221109/985517f5/attachment.htm>


More information about the Kea-users mailing list