some lease updates in HA pair failed on Kea DHCPv4 1.4.0-P1
Hello, warnings like this observed in logfile:
2018-10-24 10:53:24.541 WARN [kea-dhcp4.ha-hooks/20371] HA_LEASE_UPDATE_FAILED [hwtype=1 34:08:04:ac:53:22], cid=[01:34:08:04:ac:53:22], tid=0xa915: lease update to server101 (http://10.58.0.101:8080/) failed: body of the response must be a list
and found that caused by this:
POST / HTTP/1.1 Content-Length: 328 Content-Type: application/json { "arguments": { "client-id": "01:34:08:04:ac:53:22", "expire": 1540371418, "force-create": true, "fqdn-fwd": true, "fqdn-rev": true, "hostname": "D-Link\u0000", "hw-address": "34:08:04:ac:53:22", "ip-address": "10.187.15.132", "state": 0, "subnet-id": 2, "valid-lft": 120 }, "command": "lease4-update", "service": [ "dhcp4" ] }
HTTP/1.1 400 Bad Request Content-Length: 40 Content-Type: application/json Date: Wed, 24 Oct 2018 08:54:58 GMT { "result": 400, "text": "Bad Request" }
update work with "normal" hostname: curl -X POST -H "Content-Type: application/json" -d '{ "arguments": { "client-id": "01:34:08:04:ac:53:22", "expire": 1540371418, "force-create": true, "fqdn-fwd": true, "fqdn-rev": true, "hostname": "justatest", "hw-address": "34:08:04:ac:53:22", "ip-address": "10.187.15.132", "state": 0, "subnet-id": 2, "valid-lft": 120 }, "command": "lease4-update", "service": [ "dhcp4" ] }' http://10.58.0.101:8080/ [ { "result": 0, "text": "IPv4 lease added." } ]
regards i