Hello I've moved "hooks-libraries" key from the very beginning to before "shared-networks" key and HA started to be worked
śr., 3 cze 2020 o 09:10 Marcin Romanowski <[email protected]> napisał(a): > Hello, > I try to run high-availability > https://downloads.isc.org/isc/kea/1.6.2/doc/html/arm/hooks.html#ha-high-availability > I my config I added: > > { > "Dhcp4": { > "hooks-libraries": [{ > "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so", > "parameters": { } > }, { > "library": "/opt/kea/lib/kea/hooks/libdhcp_ha.so", > "parameters": { > "high-availability": [{ > "this-server-name": "server1", > "mode": "hot-standby", > "heartbeat-delay": 10000, > "max-response-delay": 10000, > "max-ack-delay": 5000, > "max-unacked-clients": 5, > "peers": [{ > "name": "server1", > "url": "http://10.249.1.205:8080/", > "role": "primary", > "auto-failover": true > }, { > "name": "server2", > "url": "http://10.249.1.206:8080/", > "role": "standby", > "auto-failover": true > }] > }] > } > }], > [...] > > but in log there is no info abut any tries to connect to second server. > Even when I get config an list-commands from api no ha arguments. > curl -X POST -H "Content-Type: application/json" -d '{ > "command": "list-commands", > "service": [ > "dhcp4" > ] > }' http: //10.249.1.205:8080 [ > { > "arguments": [ > "build-report", > "config-get", > "config-reload", > "config-set", > "config-test", > "config-write", > "dhcp-disable", > "dhcp-enable", > "leases-reclaim", > "libreload", > "list-commands", > "server-tag-get", > "shutdown", > "statistic-get", > "statistic-get-all", > "statistic-remove", > "statistic-remove-all", > "statistic-reset", > "statistic-reset-all", > "statistic-sample-age-set", > "statistic-sample-age-set-all", > "statistic-sample-count-set", > "statistic-sample-count-set-all", > "version-get" > ], > "result": 0 > } > ] > > Now, when I get config and write the same config via REST api then hooks > librares are deleted :( > > Kea version stable 1.6.2 > > Best regards > Marcin >
_______________________________________________ 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 [email protected] https://lists.isc.org/mailman/listinfo/kea-users
