<div dir="ltr">I corrected both server's datetime and restarted both service of two servers. But it still got the same error.<div><br></div><div><a href="https://gitlab.isc.org/isc-projects/kea/-/merge_requests/414" target="_blank">https://gitlab.isc.org/isc-projects/kea/-/merge_requests/414</a> </div><div><br></div><div>Seem a bug of v1.5.0. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 2, 2020 at 6:34 PM Marcin Siodelski <<a href="mailto:marcin@isc.org">marcin@isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Thank you for your email. It would be useful to see the log from the<br>
primary server to see why it went to the "terminated" state. The standby<br>
server apparently transitioned to the "terminated" state seeing that the<br>
partner is in that state. Note that the server which transitioned to the<br>
"terminated" state (e.g. as a result of too high clock skew) will not<br>
transition out of this state automatically, even if the clocks get<br>
synchronized. It must be stopped and started again. Perhaps, the primary<br>
server wasn't restarted after syncing the clocks?<br>
<br>
Marcin Siodelski<br>
Sr. Software Engineer<br>
ISC<br>
<br>
On 02/04/2020 10:36, luckydog xf wrote:<br>
> Hi, list,<br>
> <br>
> I'm using Kea V1.5.0 and running two dhcp servers in Hot-standby mode.<br>
> My lease database is Memfile. I setup NTP for both servers. <br>
> <br>
> Here is part of my configuration, <br>
> ===============<br>
> "high-availability": [ {<br>
> "this-server-name": "server2",<br>
> "mode": "hot-standby",<br>
> "heartbeat-delay": 10000,<br>
> "max-response-delay": 10000,<br>
> "max-ack-delay": 5000,<br>
> "max-unacked-clients": 5,<br>
> <br>
> "send-lease-updates": true,<br>
> "sync-leases": true,<br>
> "sync-page-limit": 10000,<br>
> "sync-timeout": 30000,<br>
> <br>
> "peers": [<br>
> {<br>
> "name": "server1",<br>
> "url": "<a href="http://172.16.232.18:8080/" rel="noreferrer" target="_blank">http://172.16.232.18:8080/</a>",<br>
> "role": "primary",<br>
> "auto-failover": true<br>
> },<br>
> {<br>
> "name": "server2",<br>
> "url": "<a href="http://172.16.232.20:8080/" rel="noreferrer" target="_blank">http://172.16.232.20:8080/</a>",<br>
> "role": "standby",<br>
> "auto-failover": true<br>
> }<br>
> =============<br>
> <br>
> Yet on standby server ,it says that,<br>
> ===============<br>
> 2020-04-02 11:08:19.269 INFO [kea-dhcp4.ha-hooks/11468]<br>
> HA_LOCAL_DHCP_DISABLE local DHCP service is disabled while the server2<br>
> is in the WAITING state<br>
> 2020-04-02 11:08:19.269 INFO [kea-dhcp4.ha-hooks/11468]<br>
> HA_SERVICE_STARTED started high availability service in hot-standby mode<br>
> as standby server<br>
> 2020-04-02 11:08:19.269 INFO [kea-dhcp4.dhcp4/11468] DHCP4_STARTED Kea<br>
> DHCPv4 server version 1.5.0 started<br>
> 2020-04-02 11:08:31.283 INFO [kea-dhcp4.ha-hooks/11468]<br>
> HA_STATE_TRANSITION server transitions from WAITING to TERMINATED state,<br>
> partner state is TERMINATED<br>
> 2020-04-02 11:08:31.283 INFO [kea-dhcp4.ha-hooks/11468]<br>
> HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner<br>
> while in TERMINATED state<br>
> 2020-04-02 11:08:31.283 INFO [kea-dhcp4.ha-hooks/11468]<br>
> HA_LOCAL_DHCP_ENABLE local DHCP service is enabled while the server2 is<br>
> in the TERMINATED state<br>
> 2020-04-02 11:08:31.283 ERROR [kea-dhcp4.ha-hooks/11468] HA_TERMINATED<br>
> HA service terminated because of the unacceptable clock skew; fix the<br>
> problem and restart!<br>
> <br>
> ============<br>
> <br>
> I'm sure two severs get correct date time. So what's the reason ?<br>
> <br>
> Is it related<br>
> to <a href="https://gitlab.isc.org/isc-projects/kea/-/merge_requests/414" rel="noreferrer" target="_blank">https://gitlab.isc.org/isc-projects/kea/-/merge_requests/414</a> ?<br>
> <br>
> Thanks and take care.<br>
> <br>
> -hongquan<br>
> <br>
> <br>
> _______________________________________________<br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
> <br>
<br>
</blockquote></div>