<div dir="ltr">Hello,<div><br></div><div>We are using <span class="gmail-il">kea</span> 1.8.2 in hot-standby mode. The problem I see is that if I onboard a new standby server, I don't see the <span class="gmail-il">kea</span> leases being synced to the standby. Any new lease that active server dishes out post onboarding the standby server is being synced, but not the existing ones that the active  server had. If I execute status-get on the dhcp4, I see that both the servers are in-touch. Not sure I am missing something basic. If I restart <span class="gmail-il">kea</span>-dhcp4 service, then I see those leases getting synced to the standby server. Or if I explicitly execute the ha-sync command, then also I see the leases getting synced. There aren't any significant error messages in the <span class="gmail-il">kea</span> logs files as well, apart from the below ones:<br><br>2022-07-18 07:01:50.452 DEBUG [<span class="gmail-il">kea</span>-dhcp4.http/2623.140619754313216] HTTP_BAD_SERVER_RESPONSE_RECEIVED bad response received when communicating with <a href="http://127.0.0.1:8001/" target="_blank">http://127.0.0.1:8001/</a>: unable to parse the body of the HTTP response: error: unexpected character u in <string>:1:2 : current state: [ 1 END_ST ] next event: [ 3 FAIL_EVT ]<br>upstream connect error or disconnect/reset before headers. reset reason: connection failure<br>2022-07-18 07:01:50.452 WARN  [<span class="gmail-il">kea</span>-dhcp4.ha-hooks/2623.140619754313216] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to primary_server (<a href="http://127.0.0.1:8001/" target="_blank">http://127.0.0.1:8001/</a>): unable to parse the body of the HTTP response: error: unexpected character u in <string>:1:2 : current state: [ 1 END_ST ] next event: [ 3 FAIL_EVT ]<br></div><div><br></div><div><br></div><div>Difference in state changes between bringing up a new server vs restart of dhcp service:<br>New server:<br>2022-07-18 07:01:50.452 INFO  [<span class="gmail-il">kea</span>-dhcp4.ha-hooks/2623.140619754313216] HA_STATE_TRANSITION server transitions from WAITING to PARTNER-DOWN state, partner state is UNDEFINED<br>2022-07-18 07:02:00.502 INFO  [<span class="gmail-il">kea</span>-dhcp4.ha-hooks/2623.140619754313216] HA_STATE_TRANSITION server transitions from PARTNER-DOWN to HOT-STANDBY state, partner state is READY<br><br></div><div>Restart of dhcp service:<br>2022-07-18 06:57:06.105 INFO  [<span class="gmail-il">kea</span>-dhcp4.ha-hooks/1483.139947883714048] HA_STATE_TRANSITION server transitions from WAITING to SYNCING state, partner state is HOT-STANDBY<br>2022-07-18 06:57:06.130 INFO  [<span class="gmail-il">kea</span>-dhcp4.ha-hooks/1483.139947883714048] HA_STATE_TRANSITION server transitions from SYNCING to READY state, partner state is HOT-STANDBY<br>2022-07-18 06:57:06.130 INFO  [<span class="gmail-il">kea</span>-dhcp4.ha-hooks/1483.139947883714048] HA_STATE_TRANSITION server transitions from READY to HOT-STANDBY state, partner state is HOT-STANDBY<br></div><div><br></div><div><span class="gmail-il">kea</span> hooks configuration:<br>"hooks-libraries": [<br>        {<br>            "library": "/usr/lib/<span class="gmail-il">kea</span>/hooks/libdhcp_lease_cmds.so",<br>            "parameters": { }<br>        },<br>        {<br>            "library": "/usr/lib/<span class="gmail-il">kea</span>/hooks/libdhcp_ha.so",<br>            "parameters": {<br>                "high-availability": [{<br>                    "this-server-name":"standby_server",<br>                    "mode": "hot-standby",<br>                    "heartbeat-delay": 10000,<br>                    "max-response-delay": 10000,<br>                    "max-unacked-clients": 0,<br>                    "peers": [<br>                    {<br>                       "name": "primary_server",<br>                        "url": "<a href="http://127.0.0.1:8001/" target="_blank">http://127.0.0.1:8001/</a>",<br>                        "role": "primary"<br>                    },<br>                    {<br>                    "name": "standby_server",<br>                    "url": "<a href="http://127.0.0.1:8001/" target="_blank">http://127.0.0.1:8001/</a>",<br>                    "role": "standby"<br>                    }]<br>                }]<br>            }<br>        },<br>        {<br>        "library": "/usr/lib/<span class="gmail-il">kea</span>/hooks/libnsb_dhcp_hook.so",<br>        "parameters": { }<br>        },<br>        {<br>        "library": "/usr/lib/<span class="gmail-il">kea</span>/hooks/libdhcp_stat_cmds.so",<br>        "parameters": { }<br>        }<br>        ],<br><br>Please let me know if you need any additional logs / information. Thank you in advance for helping take a look into this.</div><div><br></div><div>Best,<br>Siddhesh</div></div>