[Kea-users] HA Setup

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] HA Setup

Dirk Laurenz

Hi,

 

i startet to create a ha setup und got the following error after enabling the ha setup:

 

Mai 25 13:39:29 dc02 kea-dhcp4[10087]: 2020-05-25 13:39:29.865 ERROR [kea-dhcp4.packets/10087] DHCP4_PACKET_PROCESS_STD_EXCEPTION exception occurred during packet processing: Failed to convert string to address 'dc01': Invalid argument

 

Dc01 and dc02 are my dhcp servers…

 

This error occurs on both servers after enabling ha and kea stops serving ips

 

 

Conf snippet:

 

                               "control-socket": {

         "socket-type": "unix",

         "socket-name": "/tmp/kea-dhcp4-ctrl.sock"

                               },

                               "hooks-libraries": [

            {

                "library": "/usr/lib/arm-linux-gnueabihf/hooks/libdhcp_lease_cmds.so",

                "parameters": { }

            },

            {

                "library": "/usr/lib/arm-linux-gnueabihf/hooks/libdhcp_ha.so",

                "parameters": {

                    "high-availability": [ {

                        "this-server-name": "dc02",

                        "mode": "hot-standby",

                        "heartbeat-delay": 10000,

                        "max-response-delay": 10000,

                        "max-ack-delay": 5000,

                        "max-unacked-clients": 5,

                        "peers": [

                            {

                                "name": "dc01",

                                "url": "http://dc01:8080/",

                                "role": "primary",

                                "auto-failover": true

                            },

                            {

                                "name": "dc02",

                                "url": "http://dc02:8080/",

                                "role": "standby",

                                "auto-failover": true

                            }

                        ]

                    } ]

                }

            }

        ],

 

 

 


_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Dirk Laurenz

Hi,

 

if i change to an ip adress, the error changes too:

 

Failed to convert string to address '192.1682.2.231': Invalid argument

 

So it seems to be a problem with the url statement

 

Von: Kea-users <[hidden email]> Im Auftrag von Dirk Laurenz
Gesendet: Montag, 25. Mai 2020 13:47
An: [hidden email]
Betreff: [Kea-users] HA Setup

 

Hi,

 

i startet to create a ha setup und got the following error after enabling the ha setup:

 

Mai 25 13:39:29 dc02 kea-dhcp4[10087]: 2020-05-25 13:39:29.865 ERROR [kea-dhcp4.packets/10087] DHCP4_PACKET_PROCESS_STD_EXCEPTION exception occurred during packet processing: Failed to convert string to address 'dc01': Invalid argument

 

Dc01 and dc02 are my dhcp servers…

 

This error occurs on both servers after enabling ha and kea stops serving ips

 

 

Conf snippet:

 

                               "control-socket": {

         "socket-type": "unix",

         "socket-name": "/tmp/kea-dhcp4-ctrl.sock"

                               },

                               "hooks-libraries": [

            {

                "library": "/usr/lib/arm-linux-gnueabihf/hooks/libdhcp_lease_cmds.so",

                "parameters": { }

            },

            {

                "library": "/usr/lib/arm-linux-gnueabihf/hooks/libdhcp_ha.so",

                "parameters": {

                    "high-availability": [ {

                        "this-server-name": "dc02",

                        "mode": "hot-standby",

                        "heartbeat-delay": 10000,

                        "max-response-delay": 10000,

                        "max-ack-delay": 5000,

                        "max-unacked-clients": 5,

                        "peers": [

                            {

                                "name": "dc01",

                                "url": "http://dc01:8080/",

                                "role": "primary",

                                "auto-failover": true

                            },

                            {

                                "name": "dc02",

                                "url": "http://dc02:8080/",

                                "role": "standby",

                                "auto-failover": true

                            }

                        ]

                    } ]

                }

            }

        ],

 

 

 


_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Bill Pye
Hi

I've recently set-up an HA config and it works without problems. You'll also need the kea-ctrl-agent running on the servers and I'd suggest using an IP in the url rather than the server name, see if that changes anything.

Regards

Bill


From: "Dirk Laurenz" <[hidden email]>
To: "kea-users" <[hidden email]>
Sent: Monday, 25 May, 2020 13:56:29
Subject: Re: [Kea-users] HA Setup

Hi,

 

if i change to an ip adress, the error changes too:

 

Failed to convert string to address '192.1682.2.231': Invalid argument

 

So it seems to be a problem with the url statement

 

Von: Kea-users <[hidden email]> Im Auftrag von Dirk Laurenz
Gesendet: Montag, 25. Mai 2020 13:47
An: [hidden email]
Betreff: [Kea-users] HA Setup

 

Hi,

 

i startet to create a ha setup und got the following error after enabling the ha setup:

 

Mai 25 13:39:29 dc02 kea-dhcp4[10087]: 2020-05-25 13:39:29.865 ERROR [kea-dhcp4.packets/10087] DHCP4_PACKET_PROCESS_STD_EXCEPTION exception occurred during packet processing: Failed to convert string to address 'dc01': Invalid argument

 

Dc01 and dc02 are my dhcp servers…

 

This error occurs on both servers after enabling ha and kea stops serving ips

 

 

Conf snippet:

 

                               "control-socket": {

         "socket-type": "unix",

         "socket-name": "/tmp/kea-dhcp4-ctrl.sock"

                               },

                               "hooks-libraries": [

            {

                "library": "/usr/lib/arm-linux-gnueabihf/hooks/libdhcp_lease_cmds.so",

                "parameters": { }

            },

            {

                "library": "/usr/lib/arm-linux-gnueabihf/hooks/libdhcp_ha.so",

                "parameters": {

                    "high-availability": [ {

                        "this-server-name": "dc02",

                        "mode": "hot-standby",

                        "heartbeat-delay": 10000,

                        "max-response-delay": 10000,

                        "max-ack-delay": 5000,

                        "max-unacked-clients": 5,

                        "peers": [

                            {

                                "name": "dc01",

                                "url": "http://dc01:8080/",

                                "role": "primary",

                                "auto-failover": true

                            },

                            {

                                "name": "dc02",

                                "url": "http://dc02:8080/",

                                "role": "standby",

                                "auto-failover": true

                            }

                        ]

                    } ]

                }

            }

        ],

 

 

 


_______________________________________________
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
[hidden email]
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Anders Löwinger
In reply to this post by Dirk Laurenz
On 2020-05-25 13:56, Dirk Laurenz wrote:

Failed to convert string to address '192.1682.2.231': Invalid argument

Not sure if there should be an IP address at that location, but the above is not an valid IPv4 address.


-- 
MVH / Regards
Anders Löwinger


_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Dirk Laurenz

You’re right, this was a typo… but with the corrected ip the error disappears

 

Von: Kea-users <[hidden email]> Im Auftrag von Anders Löwinger
Gesendet: Montag, 25. Mai 2020 14:58
An: [hidden email]
Betreff: Re: [Kea-users] HA Setup

 

On 2020-05-25 13:56, Dirk Laurenz wrote:

Failed to convert string to address '192.1682.2.231': Invalid argument

Not sure if there should be an IP address at that location, but the above is not an valid IPv4 address.

 

-- 
MVH / Regards
Anders Löwinger
 

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Dirk Laurenz
In reply to this post by Anders Löwinger

No got it running and i got this error:

 

Mai 25 23:36:59 dc01 kea-dhcp4[9561]: 2020-05-25 23:36:59.384 INFO  [kea-dhcp4.commands/9561] COMMAND_RECEIVED Received command 'ha-heartbeat'

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.731 INFO  [kea-dhcp4.ha-hooks/9561] HA_SYNC_START starting lease database synchronization with dc02

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.753 ERROR [kea-dhcp4.ha-hooks/9561] HA_LEASES_SYNC_FAILED failed to synchronize leases with dc02 (http://192.168.2.232:8080/): internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:193, error code 1

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.763 ERROR [kea-dhcp4.ha-hooks/9561] HA_SYNC_FAILED lease database synchronization with dc02 failed: internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:193, error code 1

 

 

Von: Kea-users <[hidden email]> Im Auftrag von Anders Löwinger
Gesendet: Montag, 25. Mai 2020 14:58
An: [hidden email]
Betreff: Re: [Kea-users] HA Setup

 

On 2020-05-25 13:56, Dirk Laurenz wrote:

Failed to convert string to address '192.1682.2.231': Invalid argument

Not sure if there should be an IP address at that location, but the above is not an valid IPv4 address.

 

-- 
MVH / Regards
Anders Löwinger
 

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Dirk Laurenz
In reply to this post by Anders Löwinger

Update, restarting both servers removes this error…!

 

Von: Dirk Laurenz <[hidden email]>
Gesendet: Montag, 25. Mai 2020 23:38
An: 'Anders Löwinger' <[hidden email]>; '[hidden email]' <[hidden email]>
Betreff: AW: [Kea-users] HA Setup

 

No got it running and i got this error:

 

Mai 25 23:36:59 dc01 kea-dhcp4[9561]: 2020-05-25 23:36:59.384 INFO  [kea-dhcp4.commands/9561] COMMAND_RECEIVED Received command 'ha-heartbeat'

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.731 INFO  [kea-dhcp4.ha-hooks/9561] HA_SYNC_START starting lease database synchronization with dc02

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.753 ERROR [kea-dhcp4.ha-hooks/9561] HA_LEASES_SYNC_FAILED failed to synchronize leases with dc02 (http://192.168.2.232:8080/): internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:193, error code 1

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.763 ERROR [kea-dhcp4.ha-hooks/9561] HA_SYNC_FAILED lease database synchronization with dc02 failed: internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:193, error code 1

 

 

Von: Kea-users <[hidden email]> Im Auftrag von Anders Löwinger
Gesendet: Montag, 25. Mai 2020 14:58
An: [hidden email]
Betreff: Re: [Kea-users] HA Setup

 

On 2020-05-25 13:56, Dirk Laurenz wrote:

Failed to convert string to address '192.1682.2.231': Invalid argument

Not sure if there should be an IP address at that location, but the above is not an valid IPv4 address.

 

-- 
MVH / Regards
Anders Löwinger
 

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] HA Setup

Dirk Laurenz

Hello $list,

 

after 24 hours of operation i got this errors:

 

root@dc02:~# systemctl status kea-dhcp4-server.service | grep FAILED

Mai 26 21:49:41 dc02 kea-dhcp4[4190]: 2020-05-26 21:49:41.825 ERROR [kea-dhcp4.ha-hooks/4190] HA_SYNC_FAILED lease database synchronization with dc01 failed: internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:8566, error code 1

Mai 26 21:49:52 dc02 kea-dhcp4[4190]: 2020-05-26 21:49:52.912 ERROR [kea-dhcp4.ha-hooks/4190] HA_LEASES_SYNC_FAILED failed to synchronize leases with dc01 (http://192.168.2.231:8080/): internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:8566, error code 1

Mai 26 21:49:52 dc02 kea-dhcp4[4190]: 2020-05-26 21:49:52.922 ERROR [kea-dhcp4.ha-hooks/4190] HA_SYNC_FAILED lease database synchronization with dc01 failed: internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:8566, error code 1

Mai 26 21:50:04 dc02 kea-dhcp4[4190]: 2020-05-26 21:50:04.009 ERROR [kea-dhcp4.ha-hooks/4190] HA_LEASES_SYNC_FAILED failed to synchronize leases with dc01 (http://192.168.2.231:8080/): internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:8566, error code 1

Mai 26 21:50:04 dc02 kea-dhcp4[4190]: 2020-05-26 21:50:04.019 ERROR [kea-dhcp4.ha-hooks/4190] HA_SYNC_FAILED lease database synchronization with dc01 failed: internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:8566, error code 1

 

How can i debug further. I’m quite new to kea…

 

Von: Kea-users <[hidden email]> Im Auftrag von Dirk Laurenz
Gesendet: Montag, 25. Mai 2020 23:55
An: 'Anders Löwinger' <[hidden email]>; [hidden email]
Betreff: Re: [Kea-users] HA Setup

 

Update, restarting both servers removes this error…!

 

Von: Dirk Laurenz <[hidden email]>
Gesendet: Montag, 25. Mai 2020 23:38
An: 'Anders Löwinger' <[hidden email]>; '[hidden email]' <[hidden email]>
Betreff: AW: [Kea-users] HA Setup

 

No got it running and i got this error:

 

Mai 25 23:36:59 dc01 kea-dhcp4[9561]: 2020-05-25 23:36:59.384 INFO  [kea-dhcp4.commands/9561] COMMAND_RECEIVED Received command 'ha-heartbeat'

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.731 INFO  [kea-dhcp4.ha-hooks/9561] HA_SYNC_START starting lease database synchronization with dc02

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.753 ERROR [kea-dhcp4.ha-hooks/9561] HA_LEASES_SYNC_FAILED failed to synchronize leases with dc02 (http://192.168.2.232:8080/): internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:193, error code 1

Mai 25 23:37:00 dc01 kea-dhcp4[9561]: 2020-05-25 23:37:00.763 ERROR [kea-dhcp4.ha-hooks/9561] HA_SYNC_FAILED lease database synchronization with dc02 failed: internal server error: unable to parse server's answer to the forwarded message: Bad escape in <wire>:0:193, error code 1

 

 

Von: Kea-users <[hidden email]> Im Auftrag von Anders Löwinger
Gesendet: Montag, 25. Mai 2020 14:58
An: [hidden email]
Betreff: Re: [Kea-users] HA Setup

 

On 2020-05-25 13:56, Dirk Laurenz wrote:

Failed to convert string to address '192.1682.2.231': Invalid argument

Not sure if there should be an IP address at that location, but the above is not an valid IPv4 address.

 

-- 
MVH / Regards
Anders Löwinger
 

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users