<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="color:#000000;background-color:#ffffff;font-family:Menlo, Monaco, 'Courier New', monospace;font-weight:normal;font-size:12px;line-height:18px">
<span><span>Hi Christian,</span></span>
<div><span>   Do you load the </span><span style="color:#a31515">"lease_cmds"</span><span> hooks library in both the kea-dhcp4 and kea-dhcp4 configurations?</span></div>
<div><span>/Peter</span></div>
</div>
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of BÖSCH Christian <boesch@fhv.at><br>
<b>Sent:</b> 08 November 2021 09:34<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> [Kea-users] HA with dhcp6</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {}
@font-face
        {font-family:Menlo}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
p.x_p1, li.x_p1, div.x_p1
        {margin:0cm;
        font-size:8.5pt;
        font-family:Menlo;
        color:black}
span.x_s1
        {}
p.x_p2, li.x_p2, div.x_p2
        {margin:0cm;
        font-size:8.5pt;
        font-family:Menlo;
        color:black}
span.x_apple-converted-space
        {}
.x_MsoChpDefault
        {font-size:12.0pt;
        font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="en-AT" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span lang="EN-US">Hi,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US">I'm testing HA with kea 2.0 which is working well with IPv4, but with IPv6 there are these errors on the secondary node:</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_p1"><span class="x_s1">2021-11-08 09:29:05.265 ERROR [kea-dhcp6.ha-hooks/84963.0x801c12000] HA_LEASES_SYNC_FAILED failed to synchronize leases with kea1 (http://10.0.30.111:8000/): 'lease6-get-page' command not supported., error code 2</span></p>
<p class="x_p1"><span class="x_s1">2021-11-08 09:29:05.267 ERROR [kea-dhcp6.ha-hooks/84963.0x801c12000] HA_SYNC_FAILED lease database synchronization with kea1 failed: 'lease6-get-page' command not supported., error code 2</span></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span lang="EN-US">The config which is identical to IPv4 is as follows:</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_p1"><span class="x_apple-converted-space">    </span><span class="x_s1">"hooks-libraries": [</span></p>
<p class="x_p1"><span class="x_apple-converted-space">        </span><span class="x_s1">{</span></p>
<p class="x_p1"><span class="x_apple-converted-space">        </span><span class="x_s1">"library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">        </span><span class="x_s1">"parameters": {</span></p>
<p class="x_p1"><span class="x_apple-converted-space">            </span><span class="x_s1">"high-availability": [{</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"this-server-name": "kea2",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"mode": "load-balancing",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"heartbeat-delay": 10000,</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"max-response-delay": 10000,</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"max-ack-delay": 5000,</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"max-unacked-clients": 5,</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"delayed-updates-limit": 100,</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">"peers": [{</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"name": "kea1",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"url": "http://10.0.30.111:8000/",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"role": "primary",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"basic-auth-user": "foo",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"basic-auth-password": "bar",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"auto-failover": true</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">}, {</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"name": "kea2",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"url": "http://10.0.30.112:8000/",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"role": "secondary",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"basic-auth-user": "foo",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"basic-auth-password": "bar",</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                    </span>
<span class="x_s1">"auto-failover": true</span></p>
<p class="x_p1"><span class="x_apple-converted-space">                </span><span class="x_s1">}]</span></p>
<p class="x_p1"><span class="x_apple-converted-space">            </span><span class="x_s1">}]</span></p>
<p class="x_p1"><span class="x_apple-converted-space">        </span><span class="x_s1">}</span></p>
<p class="x_p1"><span class="x_apple-converted-space">    </span><span class="x_s1">}],</span></p>
<p class="x_p2"> </p>
<p class="x_MsoNormal"><span lang="EN-US">Thanks in advance for any tips.</span></p>
<p class="x_MsoNormal"><span lang="EN-US">Christian</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
</div>
</div>
</body>
</html>