<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Do have configured the kea-ctrl-agent, which is responsible for the activation / communication of the RESTful service?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Mark<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Von:</b> Kea-users <kea-users-bounces@lists.isc.org> <b>Im Auftrag von
</b>Dan Oachs<br>
<b>Gesendet:</b> Dienstag, 22. <span lang="EN-US">März 2022 14:08<br>
<b>An:</b> Weisteen Per <per.weisteen@telenor.no><br>
<b>Cc:</b> kea-users@lists.isc.org<br>
<b>Betreff:</b> Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">That looks very similar to my setup which is working.  Are you sure the kea service is not listening on port 8000? One way to check would be with "lsof -i -P| grep kea-dhcp" and look for a line
 showing the hostname:8000 (LISTEN).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">If the service is listening, then perhaps there is a firewall blocking incoming traffic to port 8000?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt">--Dan<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per <</span><a href="mailto:per.weisteen@telenor.no"><span lang="EN-US">per.weisteen@telenor.no</span></a><span lang="EN-US">> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hi, I've set up a HA Hot-Standby config according to docs but I can't figure out why the servers doesn't listen on port 8000.<br>
I thought that was the port configured for heartbeat. I'm a little confused and would be very happy if someone could explain how this is supposed to work ?<br>
<br>
I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum install. <br>
<br>
My HA config for primary server (pls ignore any missing parentheses ad this is just an extract:
<br>
<br>
"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",<br>
                "parameters": {<br>
                        "high-availability": [{<br>
                                "this-server-name": "tst-dhcp01",<br>
                "mode": "hot-standby",<br>
                "heartbeat-delay": 10000,<br>
                "max-response-delay": 10000,<br>
                "max-ack-delay": 5000,<br>
                "max-unacked-clients": 5,<br>
                                "multi-threading": {<br>
                                        "enable-multi-threading": true,<br>
                                        "http-dedicated-listener": true,<br>
                                        "http-listener-threads": 4,<br>
                                        "http-client-threads": 4<br>
                },<br>
                                "peers": [{<br>
                        "name": "tst-dhcp01",<br>
                                "url": "</span><a href="https://urldefense.com/v3/__http:/10.123.10.10:8000/__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjo1pyseY$" target="_blank"><span lang="EN-US">http://10.123.10.10:8000/</span></a><span lang="EN-US">",<br>
                        "role": "primary",<br>
                            "auto-failover": true<br>
                },{<br>
                              "name": "tst-dhcp02",<br>
                               "url": "</span><a href="https://urldefense.com/v3/__http:/10.123.20.20:8000/__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjTMMBPog$" target="_blank"><span lang="EN-US">http://10.123.20.20:8000/</span></a><span lang="EN-US">",<br>
                               "role": "standby",<br>
                               "auto-failover": true<br>
                }] <br>
<br>
and for standby server:<br>
<br>
"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",<br>
                "parameters": {<br>
                "high-availability": [{<br>
                                "this-server-name": "tst-dhcp02",<br>
                                "mode": "hot-standby",<br>
                                "heartbeat-delay": 10000,<br>
                                "max-response-delay": 10000,<br>
                                "max-ack-delay": 5000,<br>
                                "max-unacked-clients": 5,<br>
                                "multi-threading": {<br>
                                        "enable-multi-threading": true,<br>
                                        "http-dedicated-listener": true,<br>
                                        "http-listener-threads": 4,<br>
                                        "http-client-threads": 4<br>
                                },<br>
                        "peers": [{<br>
                        "name": "tst-dhcp01",<br>
                        "url": "</span><a href="https://urldefense.com/v3/__http:/10.123.10.10:8000/__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjo1pyseY$" target="_blank"><span lang="EN-US">http://10.123.10.10:8000/</span></a><span lang="EN-US">",<br>
                        "role": "primary",<br>
                                        "auto-failover": true<br>
                        },{<br>
                        "name": "tst-dhcp02",<br>
                        "url": "</span><a href="https://urldefense.com/v3/__http:/10.123.20.20:8000/__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjTMMBPog$" target="_blank"><span lang="EN-US">http://10.123.20.20:8000/</span></a><span lang="EN-US">",<br>
                        "role": "standby",<br>
                                        "auto-failover": true<br>
                                }] /* peers */<br>
                        }] /* high-availability */<br>
                }<br>
<br>
Kea-debug.log shows :<br>
<br>
HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to tst-dhcp02 (</span><a href="https://urldefense.com/v3/__http:/10.123.20.20:8000/__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjTMMBPog$" target="_blank"><span lang="EN-US">http://10.123.20.20:8000/</span></a><span lang="EN-US">):
 Connection refused<br>
HA_COMMUNICATION_INTERRUPTED communication with tst-dhcp02 is interrupted<br>
<br>
And similar on the standby server but differet IP-address and name of course.<br>
<br>
./PerW<br>
<br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at
</span><a href="https://urldefense.com/v3/__https:/www.isc.org/contact/__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjSjV9ppY$" target="_blank"><span lang="EN-US">https://www.isc.org/contact/</span></a><span lang="EN-US"> for
 more information.<br>
<br>
To unsubscribe visit </span><a href="https://urldefense.com/v3/__https:/lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjivlq3WM$" target="_blank"><span lang="EN-US">https://lists.isc.org/mailman/listinfo/kea-users</span></a><span lang="EN-US">.<br>
<br>
Kea-users mailing list<br>
</span><a href="mailto:Kea-users@lists.isc.org" target="_blank"><span lang="EN-US">Kea-users@lists.isc.org</span></a><span lang="EN-US"><br>
</span><a href="https://urldefense.com/v3/__https:/lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!yBWK0nZy5mHL2PL9-6HyJxFlHKds79HoSewLccSsq7Jo2-Btrw22dfTb6nrGDbdjivlq3WM$" target="_blank"><span lang="EN-US">https://lists.isc.org/mailman/listinfo/kea-users</span></a><span lang="EN-US"><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</body>
</html>