[Kea-users] problems enabling HA Hot-Standby setup (OPEN)

2022-03-22 Thread Weisteen Per
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.
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 ?

I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum 
install. 

My HA config for primary server (pls ignore any missing parentheses ad this is 
just an extract: 

"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "tst-dhcp01",
"mode": "hot-standby",
"heartbeat-delay": 1,
"max-response-delay": 1,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"multi-threading": {
"enable-multi-threading": true,
"http-dedicated-listener": true,
"http-listener-threads": 4,
"http-client-threads": 4
},
"peers": [{
"name": "tst-dhcp01",
"url": "http://10.123.10.10:8000/";,
"role": "primary",
"auto-failover": true
},{
  "name": "tst-dhcp02",
   "url": "http://10.123.20.20:8000/";,
   "role": "standby",
   "auto-failover": true
}] 

and for standby server:

"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "tst-dhcp02",
"mode": "hot-standby",
"heartbeat-delay": 1,
"max-response-delay": 1,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"multi-threading": {
"enable-multi-threading": true,
"http-dedicated-listener": true,
"http-listener-threads": 4,
"http-client-threads": 4
},
"peers": [{
"name": "tst-dhcp01",
"url": "http://10.123.10.10:8000/";,
"role": "primary",
"auto-failover": true
},{
"name": "tst-dhcp02",
"url": "http://10.123.20.20:8000/";,
"role": "standby",
"auto-failover": true
}] /* peers */
}] /* high-availability */
}

Kea-debug.log shows :

HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to tst-dhcp02 
(http://10.123.20.20:8000/): Connection refused
HA_COMMUNICATION_INTERRUPTED communication with tst-dhcp02 is interrupted

And similar on the standby server but differet IP-address and name of course.

./PerW

-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

2022-03-22 Thread Dan Oachs
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).

If the service is listening, then perhaps there is a firewall blocking
incoming traffic to port 8000?

--Dan


On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per 
wrote:

> 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.
> 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 ?
>
> I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum
> install.
>
> My HA config for primary server (pls ignore any missing parentheses ad
> this is just an extract:
>
> "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
> "parameters": {
> "high-availability": [{
> "this-server-name": "tst-dhcp01",
> "mode": "hot-standby",
> "heartbeat-delay": 1,
> "max-response-delay": 1,
> "max-ack-delay": 5000,
> "max-unacked-clients": 5,
> "multi-threading": {
> "enable-multi-threading": true,
> "http-dedicated-listener": true,
> "http-listener-threads": 4,
> "http-client-threads": 4
> },
> "peers": [{
> "name": "tst-dhcp01",
> "url": "http://10.123.10.10:8000/";,
> "role": "primary",
> "auto-failover": true
> },{
>   "name": "tst-dhcp02",
>"url": "http://10.123.20.20:8000/";,
>"role": "standby",
>"auto-failover": true
> }]
>
> and for standby server:
>
> "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
> "parameters": {
> "high-availability": [{
> "this-server-name": "tst-dhcp02",
> "mode": "hot-standby",
> "heartbeat-delay": 1,
> "max-response-delay": 1,
> "max-ack-delay": 5000,
> "max-unacked-clients": 5,
> "multi-threading": {
> "enable-multi-threading": true,
> "http-dedicated-listener": true,
> "http-listener-threads": 4,
> "http-client-threads": 4
> },
> "peers": [{
> "name": "tst-dhcp01",
> "url": "http://10.123.10.10:8000/";,
> "role": "primary",
> "auto-failover": true
> },{
> "name": "tst-dhcp02",
> "url": "http://10.123.20.20:8000/";,
> "role": "standby",
> "auto-failover": true
> }] /* peers */
> }] /* high-availability */
> }
>
> Kea-debug.log shows :
>
> HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to tst-dhcp02 (
> http://10.123.20.20:8000/): Connection refused
> HA_COMMUNICATION_INTERRUPTED communication with tst-dhcp02 is interrupted
>
> And similar on the standby server but differet IP-address and name of
> course.
>
> ./PerW
>
> --
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

2022-03-22 Thread Kevin P. Fleming
Also note that the Kea 'control agent' is the one that listens on port
8000, not the DHCP4/DHCP6 server processes. Ensure that it is also
running and configured properly.

On Tue, Mar 22, 2022 at 9:07 AM Dan Oachs  wrote:
>
> 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).
>
> If the service is listening, then perhaps there is a firewall blocking 
> incoming traffic to port 8000?
>
> --Dan
>
>
> On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per  wrote:
>>
>> 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.
>> 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 ?
>>
>> I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum 
>> install.
>>
>> My HA config for primary server (pls ignore any missing parentheses ad this 
>> is just an extract:
>>
>> "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
>> "parameters": {
>> "high-availability": [{
>> "this-server-name": "tst-dhcp01",
>> "mode": "hot-standby",
>> "heartbeat-delay": 1,
>> "max-response-delay": 1,
>> "max-ack-delay": 5000,
>> "max-unacked-clients": 5,
>> "multi-threading": {
>> "enable-multi-threading": true,
>> "http-dedicated-listener": true,
>> "http-listener-threads": 4,
>> "http-client-threads": 4
>> },
>> "peers": [{
>> "name": "tst-dhcp01",
>> "url": "http://10.123.10.10:8000/";,
>> "role": "primary",
>> "auto-failover": true
>> },{
>>   "name": "tst-dhcp02",
>>"url": "http://10.123.20.20:8000/";,
>>"role": "standby",
>>"auto-failover": true
>> }]
>>
>> and for standby server:
>>
>> "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
>> "parameters": {
>> "high-availability": [{
>> "this-server-name": "tst-dhcp02",
>> "mode": "hot-standby",
>> "heartbeat-delay": 1,
>> "max-response-delay": 1,
>> "max-ack-delay": 5000,
>> "max-unacked-clients": 5,
>> "multi-threading": {
>> "enable-multi-threading": true,
>> "http-dedicated-listener": true,
>> "http-listener-threads": 4,
>> "http-client-threads": 4
>> },
>> "peers": [{
>> "name": "tst-dhcp01",
>> "url": "http://10.123.10.10:8000/";,
>> "role": "primary",
>> "auto-failover": true
>> },{
>> "name": "tst-dhcp02",
>> "url": "http://10.123.20.20:8000/";,
>> "role": "standby",
>> "auto-failover": true
>> }] /* peers */
>> }] /* high-availability */
>> }
>>
>> Kea-debug.log shows :
>>
>> HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to tst-dhcp02 
>> (http://10.123.20.20:8000/): Connection refused
>> HA_COMMUNICATION_INTERRUPTED communication with tst-dhcp02 is interrupted
>>
>> And similar on the standby server but differet IP-address and name of course.
>>
>> ./PerW
>>
>> --
>> ISC funds the development of this software with paid support subscriptions. 
>> Contact us at https://www.isc.org/contact/ for more information.
>>
>> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>>
>> Kea-users mailing list
>> Kea-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-users
>
> --
> ISC funds the development of this software with paid support subscriptions. 
> Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users@lists.is

Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

2022-03-22 Thread Bohnenberger, Mark
Do have configured the kea-ctrl-agent, which is responsible for the activation 
/ communication of the RESTful service?

Mark


Von: Kea-users  Im Auftrag von Dan Oachs
Gesendet: Dienstag, 22. März 2022 14:08
An: Weisteen Per 
Cc: kea-users@lists.isc.org
Betreff: Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

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).

If the service is listening, then perhaps there is a firewall blocking incoming 
traffic to port 8000?

--Dan


On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per 
mailto:per.weist...@telenor.no>> wrote:
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.
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 ?

I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum install.

My HA config for primary server (pls ignore any missing parentheses ad this is 
just an extract:

"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "tst-dhcp01",
"mode": "hot-standby",
"heartbeat-delay": 1,
"max-response-delay": 1,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"multi-threading": {
"enable-multi-threading": true,
"http-dedicated-listener": true,
"http-listener-threads": 4,
"http-client-threads": 4
},
"peers": [{
"name": "tst-dhcp01",
"url": 
"http://10.123.10.10:8000/",
"role": "primary",
"auto-failover": true
},{
  "name": "tst-dhcp02",
   "url": 
"http://10.123.20.20:8000/",
   "role": "standby",
   "auto-failover": true
}]

and for standby server:

"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "tst-dhcp02",
"mode": "hot-standby",
"heartbeat-delay": 1,
"max-response-delay": 1,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"multi-threading": {
"enable-multi-threading": true,
"http-dedicated-listener": true,
"http-listener-threads": 4,
"http-client-threads": 4
},
"peers": [{
"name": "tst-dhcp01",
"url": 
"http://10.123.10.10:8000/",
"role": "primary",
"auto-failover": true
},{
"name": "tst-dhcp02",
"url": 
"http://10.123.20.20:8000/",
"role": "standby",
"auto-failover": true
}] /* peers */
}] /* high-availability */
}

Kea-debug.log shows :

HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to tst-dhcp02 
(http://10.123.20.20:8000/):
 Connection refused
HA_COMMUNICATION_INTERRUPTED communication with tst-dhcp02 is interrupted

And similar on the standby server but differet IP-address and name of course.

./PerW

--
ISC funds th

Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

2022-03-22 Thread Dan Oachs
Good point.  I think the default for the kea-ctrl-agent is to use port
8000.  In that case you should change the kea control agent to use a
different port such as 8001 since you can't have both trying to use the
same port.  If you have not already, look at /etc/kea/kea-ctrl-agent.conf

--Dan


On Tue, Mar 22, 2022 at 8:28 AM Bohnenberger, Mark <
mark.bohnenber...@bechtle.com> wrote:

> Do have configured the kea-ctrl-agent, which is responsible for the
> activation / communication of the RESTful service?
>
>
>
> Mark
>
>
>
>
>
> *Von:* Kea-users  *Im Auftrag von *Dan
> Oachs
> *Gesendet:* Dienstag, 22. März 2022 14:08
> *An:* Weisteen Per 
> *Cc:* kea-users@lists.isc.org
> *Betreff:* Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)
>
>
>
> 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).
>
>
>
> If the service is listening, then perhaps there is a firewall blocking
> incoming traffic to port 8000?
>
>
>
> --Dan
>
>
>
>
>
> On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per 
> wrote:
>
> 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.
> 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 ?
>
> I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum
> install.
>
> My HA config for primary server (pls ignore any missing parentheses ad
> this is just an extract:
>
> "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
> "parameters": {
> "high-availability": [{
> "this-server-name": "tst-dhcp01",
> "mode": "hot-standby",
> "heartbeat-delay": 1,
> "max-response-delay": 1,
> "max-ack-delay": 5000,
> "max-unacked-clients": 5,
> "multi-threading": {
> "enable-multi-threading": true,
> "http-dedicated-listener": true,
> "http-listener-threads": 4,
> "http-client-threads": 4
> },
> "peers": [{
> "name": "tst-dhcp01",
> "url": "http://10.123.10.10:8000/
> 
> ",
> "role": "primary",
> "auto-failover": true
> },{
>   "name": "tst-dhcp02",
>"url": "http://10.123.20.20:8000/
> 
> ",
>"role": "standby",
>"auto-failover": true
> }]
>
> and for standby server:
>
> "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
> "parameters": {
> "high-availability": [{
> "this-server-name": "tst-dhcp02",
> "mode": "hot-standby",
> "heartbeat-delay": 1,
> "max-response-delay": 1,
> "max-ack-delay": 5000,
> "max-unacked-clients": 5,
> "multi-threading": {
> "enable-multi-threading": true,
> "http-dedicated-listener": true,
> "http-listener-threads": 4,
> "http-client-threads": 4
> },
> "peers": [{
> "name": "tst-dhcp01",
> "url": "http://10.123.10.10:8000/
> 
> ",
> "role": "primary",
> "auto-failover": true
> },{
> "name": "tst-dhcp02",
> "url": "http://10.123.20.20:8000/
> 
> ",
> "role": "standby",
> "auto-failover": true
>   

Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

2022-03-22 Thread Weisteen Per
I’ve changed ports so that kea-ctrl-agent is listening on 8000 and kea-dhcp4 on 
8001. I’ve also verified firewall openings is ok using nc.
Both kea-ctrl-agent and kea-dhcp4 is running as non-root btw.

lsof –I :8000 is showing :
COMMAND  PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
kea-ctrl- 305277   dhcpuser7u  IPv4 99087541  0t0  TCP localhost:8000 
(LISTEN)

but lsof –I :8001 shows nothing. Should kea-ctrl-agent be configured to use 
server IP instead of loopback?

./PerW

From: Dan Oachs 
Sent: tirsdag 22. mars 2022 14:32
To: Bohnenberger, Mark 
Cc: Weisteen Per ; kea-users@lists.isc.org
Subject: Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

Good point.  I think the default for the kea-ctrl-agent is to use port 8000.  
In that case you should change the kea control agent to use a different port 
such as 8001 since you can't have both trying to use the same port.  If you 
have not already, look at /etc/kea/kea-ctrl-agent.conf

--Dan


On Tue, Mar 22, 2022 at 8:28 AM Bohnenberger, Mark 
mailto:mark.bohnenber...@bechtle.com>> wrote:
Do have configured the kea-ctrl-agent, which is responsible for the activation 
/ communication of the RESTful service?

Mark


Von: Kea-users 
mailto:kea-users-boun...@lists.isc.org>> Im 
Auftrag von Dan Oachs
Gesendet: Dienstag, 22. März 2022 14:08
An: Weisteen Per mailto:per.weist...@telenor.no>>
Cc: kea-users@lists.isc.org
Betreff: Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

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).

If the service is listening, then perhaps there is a firewall blocking incoming 
traffic to port 8000?

--Dan


On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per 
mailto:per.weist...@telenor.no>> wrote:
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.
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 ?

I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum install.

My HA config for primary server (pls ignore any missing parentheses ad this is 
just an extract:

"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "tst-dhcp01",
"mode": "hot-standby",
"heartbeat-delay": 1,
"max-response-delay": 1,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"multi-threading": {
"enable-multi-threading": true,
"http-dedicated-listener": true,
"http-listener-threads": 4,
"http-client-threads": 4
},
"peers": [{
"name": "tst-dhcp01",
"url": 
"http://10.123.10.10:8000/",
"role": "primary",
"auto-failover": true
},{
  "name": "tst-dhcp02",
   "url": 
"http://10.123.20.20:8000/",
   "role": "standby",
   "auto-failover": true
}]

and for standby server:

"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [{
"this-server-name": "tst-dhcp02",
"mode": "hot-standby",
"heartbeat-delay": 1,
"max-response-delay": 1,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"multi-threading": {
"enable-multi-threading": true,
"http-dedicated-listener": true,
"http-listener-threads": 4,
"http-client-threads": 4
},
"peers": [{
"name": "tst-dhcp01",
"url": 
"http://10.123.10.10:8000/