[Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2

Ismael Suarez Ismael_Suarez at coqui.com
Wed Jun 24 17:07:28 UTC 2020


In my case, not even shuting down se 'server1' makes it work.

Here is the log of server1:
2020-06-24 12:51:39.243 WARN  [kea-dhcp4.ha-hooks/5185] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server2 (http://x.x.x.13:8000/<http://10.10.220.13:8000/>): Connection timed out
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from PARTNER-DOWN to WAITING state, partner state is PARTNER-DOWN
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in WAITING state
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_LOCAL_DHCP_DISABLE local DHCP service is disabled while the server1 is in the WAITING state
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from WAITING to SYNCING state, partner state is PARTNER-DOWN
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in SYNCING state
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_SYNC_START starting lease database synchronization with server2
2020-06-24 12:51:46.062 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASES_SYNC_LEASE_PAGE_RECEIVED received 1 leases from server2
2020-06-24 12:51:46.063 INFO  [kea-dhcp4.ha-hooks/5185] HA_SYNC_SUCCESSFUL lease database synchronization with server2 completed successfully in 5.390 ms
2020-06-24 12:51:46.064 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from SYNCING to READY state, partner state is PARTNER-DOWN
2020-06-24 12:51:46.064 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in READY state
2020-06-24 12:51:48.066 INFO  [kea-dhcp4.commands/5185] COMMAND_RECEIVED Received command 'ha-heartbeat'
2020-06-24 12:51:51.072 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from READY to HOT-STANDBY state, partner state is HOT-STANDBY
2020-06-24 12:51:51.072 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_ENABLED lease updates will be sent to the partner while in HOT-STANDBY state
2020-06-24 12:51:51.072 INFO  [kea-dhcp4.ha-hooks/5185] HA_LOCAL_DHCP_ENABLE local DHCP service is enabled while the server1 is in the HOT-STANDBY state
2020-06-24 12:51:53.074 INFO  [kea-dhcp4.commands/5185] COMMAND_RECEIVED Received command 'ha-heartbeat'
Here is the log of server2: (masked the IPs)
2020-06-24 12:50:11.145 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:50:11.145 INFO  [kea-dhcp4.ha-hooks/2796] HA_STATE_TRANSITION server transitions from HOT-STANDBY to PARTNER-DOWN state, partner state is UNDEFINED
2020-06-24 12:50:11.145 INFO  [kea-dhcp4.ha-hooks/2796] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in PARTNER-DOWN state
2020-06-24 12:50:26.162 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:50:41.180 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:50:56.197 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:51:11.213 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out



Here the configs I'm testing.
.

.

.

      {

            "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",

            "parameters": {

                "high-availability": [{

                    "this-server-name": "server1",

                    "mode": "hot-standby",

                    "heartbeat-delay": 5000,

                    "max-response-delay": 10000,

                    "max-ack-delay": 5000,

                    "max-unacked-clients": 0,

                    "sync-timeout": 90000,

                    "peers": [{

                        "name": "server1",

                        "url": "http://x.x.x.12:8000/<http://10.10.220.12:8000/>",

                        "role": "primary",

                        "auto-failover": true

                    }, {

                        "name": "server2",

                        "url": "http://x.x.x.13:8000/<http://10.10.220.13:8000/>",

                        "role": "standby",

                        "auto-failover": true

                    }]

                }]

            }

      }
.

.
.

    "subnet4": [

        {

            "subnet": "192.168.1.0/24",

            "pools": [ { "pool": "192.168.1.2 - 192.168.1.21" } ],


            "option-data": [ { "name": "routers", "data": "192.168.1.1" } ]

        },

        {

            "subnet": "192.168.2.0/24",

            "pools": [ { "pool": "192.168.2.172 - 192.168.2.173" } ],


            "option-data": [ { "name": "routers", "data": "192.168.2.161" } ]

        },

        {

            "subnet": "192.168.7.0/28",

            "pools": [ { "pool": "192.168.7.5 - 192.168.7.10" } ],


            "option-data": [ { "name": "routers", "data": "192.168.7.1" } ]

        }

    ],

.

.

.


Anyone care to chime in, I welcome any input.


--

Ismael

-----Original Message-----
From: Pizu <pizpower at gmail.com<mailto:Pizu%20%3cpizpower at gmail.com%3e>>
To: Ismael Suarez <Ismael_Suarez at coqui.com<mailto:Ismael%20Suarez%20%3cIsmael_Suarez at coqui.com%3e>>
Cc: kea-users at lists.isc.org<mailto:kea-users at lists.isc.org>
Subject: Re: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
Date: Tue, 23 Jun 2020 21:59:34 +0200

The only way to work was to switch off (init 0) the primary and it worked, keactrl stop only doesn't work it gives connect refused and not no route to host, that's the only difference.

On Tue, 23 Jun 2020, 21:51 Ismael Suarez, <Ismael_Suarez at coqui.com<mailto:Ismael_Suarez at coqui.com>> wrote:
With a similar config (basically the same), I am facing the same situation on 1.6.2. Anyone care to point out some obvios configs that we might be missing?



--

Ism


-----Original Message-----
From: Pizu <pizpower at gmail.com<mailto:pizpower at gmail.com><mailto:Pizu%20%3cpizpower at gmail.com<mailto:Pizu%2520%253cpizpower at gmail.com>%3e>>
To: kea-users at lists.isc.org<mailto:kea-users at lists.isc.org><mailto:kea-users at lists.isc.org<mailto:kea-users at lists.isc.org>>
Subject: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
Date: Mon, 22 Jun 2020 16:47:23 +0200

Hi,

Am testing the HA and if I switch off the primary node nothing works. can you please help?

Primary Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "mstkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Standby Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Regards,

David

_______________________________________________

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 at lists.isc.org<mailto:Kea-users at lists.isc.org><mailto:Kea-users at lists.isc.org<mailto:Kea-users at lists.isc.org>>

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



More information about the Kea-users mailing list