HA Peers can't send Heartbeat (HA+TLS)
I have installed and configured KEA Server version 2.0.0 in 2 Debian 10 Buster virtual machines in Virtual Box and I was able to install these machines in Stork. Also I have successfully configured logging and ha hooks on both machines. Unfortunately when I try to set up HA (either with load -balancing and hot-standby) they have both unavailable HA status. For communication between KEA Servers I have followed the instruction in kea 2.0.0 admin reference manual(/kea-2.0.0/src/lib/asiolink/testutils/ca/doc). Regarding dhcpv4 logs both machines can't send ha-heartbeat message. Regarding control agents logs tls-handshake failed but I can't find more detailed info about that.
I have configured HA as followed (in kea-dhcp4.conf file)
"hooks-libraries": [
{
"library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
"parameters": { }
},
{
"library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
"parameters": { }
},
{ "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "server2",
"mode": "load-balancing",
"heartbeat-delay": 10000,
"max-response-delay": 60000,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"delayed-updates-limit": 100,
"peers": [{
"name": "server2",
"url": "http://192.168.0.20:8090/",
"role": "secondary",
"auto-failover": true
}, {
"name": "enea",
"url": "http://192.168.0.10:8088/",
"role": "primary",
"auto-failover": true
}]
}]
}
}
],
Example of my control agent configuration in kea-ctrl-agent.conf:
"http-host": "192.168.0.20",
"http-port": 8090,
"trust-anchor": "/KEA/StorkCA.pem",
"cert-file": "/KEA/keacrt2.pem",
"key-file": "KEA/keakey2.pem",