<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Hi,</div>
<div><br>
</div>
<div>Kea’s HA hook library still does not support URLs, unfortunately. S. also <a href="https://www.mail-archive.com/kea-users@lists.isc.org/msg03105.html">
https://www.mail-archive.com/kea-users@lists.isc.org/msg03105.html</a>.</div>
<div><br>
</div>
<div><br>
</div>
<div>Best,</div>
<div> Damyan</div>
<div><br>
<blockquote type="cite">
<div>On 25. Mar 2024, at 11:12, Lexi Winter <lexi@le-fay.org> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>[You don't often get email from lexi@le-fay.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]<br>
<br>
hello,<br>
<br>
i'm trying to configure Kea (DHCPv4, for now) in a two-server HA setup.<br>
i've configured kea-dhcp4.conf based on the example at [0], but trying<br>
to start it on the first server produces the error:<br>
<br>
2024-03-25 10:03:26.811 INFO [kea-dhcp4.hooks/52504.0x23d31c212000] HOOKS_LIBRARY_LOADED hooks library /usr/local/lib/kea/hooks/libdhcp_lease_cmds.so successfully loaded<br>
2024-03-25 10:03:26.820 ERROR [kea-dhcp4.ha-hooks/52504.0x23d31c212000] HA_CONFIGURATION_FAILED failed to configure High Availability hooks library: bad url 'http://dhcp-1.svc.eden.le-fay.org:8000/': Failed to convert string to address 'dhcp-1.svc.eden.le-fay.org':
Invalid argument for server dhcp-1<br>
<br>
i'm not sure what 'Invalid argument' means here. the hostname does have<br>
an IPv4 address:<br>
<br>
# getent hosts dhcp-1.svc.eden.le-fay.org<br>
2001:8b0:aab5:d100::f dhcp-1.svc.eden.le-fay.org<br>
10.254.1.7 dhcp-1.svc.eden.le-fay.org<br>
<br>
this is the complete HA configuration from kea-dhcp4.conf:<br>
<br>
"hooks-libraries": [<br>
{<br>
"library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",<br>
"parameters": { }<br>
},<br>
{<br>
"library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",<br>
"parameters": {<br>
"high-availability": [<br>
{<br>
"this-server-name": "dhcp-1",<br>
"mode": "load-balancing",<br>
"heartbeat-delay": 1000,<br>
"max-response-delay": 10000,<br>
"max-ack-delay": 5000,<br>
"max-unacked-clients": 5,<br>
"sync-timeout": 60000,<br>
"multi-threading": {<br>
"enable-multi-threading": true,<br>
"http-dedicated-listener": true,<br>
"http-listener-threads": 0,<br>
"http-client-threads": 0<br>
},<br>
"peers": [<br>
{<br>
"name": "dhcp-1",<br>
"url": "http://dhcp-1.svc.eden.le-fay.org:8000/",<br>
"trust-anchor": "/usr/local/etc/kea/tls/root.pem",<br>
"cert-file": "/usr/local/etc/kea/tls/fullchain.pem",<br>
"key-file": "/usr/local/etc/kea/tls/privkey.pem",<br>
"require-client-certs": true,<br>
"role": "primary"<br>
},<br>
{<br>
"name": "dhcp-2",<br>
"url": "http://dhcp-2.svc.eden.le-fay.org:8000/",<br>
"trust-anchor": "/usr/local/etc/kea/tls/root.pem",<br>
"cert-file": "/usr/local/etc/kea/tls/fullchain.pem",<br>
"key-file": "/usr/local/etc/kea/tls/privkey.pem",<br>
"require-client-certs": true,<br>
"role": "secondary"<br>
}<br>
]<br>
}<br>
]<br>
}<br>
}<br>
],<br>
<br>
i'm using Kea 2.4.1 on FreeBSD/arm64 15.0. can anyone point out what<br>
i'm doing wrong here?<br>
<br>
thanks, lexi.<br>
<br>
[0] https://github.com/isc-projects/kea/blob/master/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json<br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br>
<br>
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
https://lists.isc.org/mailman/listinfo/kea-users<br>
</div>
</div>
</blockquote>
</div>
<br>
</body>
</html>