hello, i'm trying to configure Kea (DHCPv4, for now) in a two-server HA setup. i've configured kea-dhcp4.conf based on the example at [0], but trying to start it on the first server produces the error:
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 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 i'm not sure what 'Invalid argument' means here. the hostname does have an IPv4 address: # getent hosts dhcp-1.svc.eden.le-fay.org 2001:8b0:aab5:d100::f dhcp-1.svc.eden.le-fay.org 10.254.1.7 dhcp-1.svc.eden.le-fay.org this is the complete HA configuration from kea-dhcp4.conf: "hooks-libraries": [ { "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": "dhcp-1", "mode": "load-balancing", "heartbeat-delay": 1000, "max-response-delay": 10000, "max-ack-delay": 5000, "max-unacked-clients": 5, "sync-timeout": 60000, "multi-threading": { "enable-multi-threading": true, "http-dedicated-listener": true, "http-listener-threads": 0, "http-client-threads": 0 }, "peers": [ { "name": "dhcp-1", "url": "http://dhcp-1.svc.eden.le-fay.org:8000/", "trust-anchor": "/usr/local/etc/kea/tls/root.pem", "cert-file": "/usr/local/etc/kea/tls/fullchain.pem", "key-file": "/usr/local/etc/kea/tls/privkey.pem", "require-client-certs": true, "role": "primary" }, { "name": "dhcp-2", "url": "http://dhcp-2.svc.eden.le-fay.org:8000/", "trust-anchor": "/usr/local/etc/kea/tls/root.pem", "cert-file": "/usr/local/etc/kea/tls/fullchain.pem", "key-file": "/usr/local/etc/kea/tls/privkey.pem", "require-client-certs": true, "role": "secondary" } ] } ] } } ], i'm using Kea 2.4.1 on FreeBSD/arm64 15.0. can anyone point out what i'm doing wrong here? thanks, lexi. [0] https://github.com/isc-projects/kea/blob/master/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
signature.asc
Description: PGP signature
-- 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@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users