[Kea-users] Kea-users Digest, Vol 72, Issue 19

Dorsey, Chris dorsey2 at llnl.gov
Sat Jun 27 03:26:37 UTC 2020


I had the same experience this week and then after re-reading the ARM realized that in my limited DEV environment, I wasn't getting enough traffic from other clients to drive past the ' max-unacked-clients' threshold.  I set it to 0 for testing on both DHCP servers and the failover started working as expected.
Hth,
Chris

On 6/23/20, 1:15 PM, "Kea-users on behalf of kea-users-request at lists.isc.org" <kea-users-bounces at lists.isc.org on behalf of kea-users-request at lists.isc.org> wrote:

    Send Kea-users mailing list submissions to
    	kea-users at lists.isc.org

    To subscribe or unsubscribe via the World Wide Web, visit
    	https://lists.isc.org/mailman/listinfo/kea-users
    or, via email, send a message with subject or body 'help' to
    	kea-users-request at lists.isc.org

    You can reach the person managing the list at
    	kea-users-owner at lists.isc.org

    When replying, please edit your Subject line so it is more specific
    than "Re: Contents of Kea-users digest..."


    Today's Topics:

       1. Re: HA - Hot-Stanby Problem - Kea v1.6.1/2 (Ismael Suarez)
       2. Re: HA - Hot-Stanby Problem - Kea v1.6.1/2 (Pizu)
       3. Re: HA - Hot-Stanby Problem - Kea v1.6.1/2 (Thomas Markwalder)


    ----------------------------------------------------------------------

    Message: 1
    Date: Tue, 23 Jun 2020 19:50:00 +0000
    From: Ismael Suarez <Ismael_Suarez at coqui.com>
    To: "pizpower at gmail.com" <pizpower at gmail.com>,
    	"kea-users at lists.isc.org" <kea-users at lists.isc.org>
    Subject: Re: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
    Message-ID: <eeb38c98d1405d5869d6f9638f3eab16659dcb5a.camel at coqui.com>
    Content-Type: text/plain; charset="utf-8"

    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:Pizu%20%3cpizpower at gmail.com%3e>>
    To: 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>

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


    ------------------------------

    Message: 2
    Date: Tue, 23 Jun 2020 21:59:34 +0200
    From: Pizu <pizpower at gmail.com>
    To: Ismael Suarez <Ismael_Suarez at coqui.com>
    Cc: kea-users at lists.isc.org
    Subject: Re: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
    Message-ID:
    	<CADCfRF4fgkp0qv3=jfaUsYy=4Jk1Ct8Z4WPfPKsV0nd8Ye3C8Q at mail.gmail.com>
    Content-Type: text/plain; charset="utf-8"

    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> 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:Pizu%20%3cpizpower at gmail.com%3e>>
    > To: 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>
    >
    > https://lists.isc.org/mailman/listinfo/kea-users
    >
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <https://lists.isc.org/pipermail/kea-users/attachments/20200623/22649807/attachment-0001.htm>

    ------------------------------

    Message: 3
    Date: Tue, 23 Jun 2020 16:14:30 -0400
    From: Thomas Markwalder <tmark at isc.org>
    To: kea-users at lists.isc.org
    Subject: Re: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
    Message-ID: <f7e14058-e930-7870-843a-e52ad762cd3e at isc.org>
    Content-Type: text/plain; charset=utf-8; format=flowed

    The mostfrequent cause for this is non-compliant clients that do not set 
    the SECS field on retries.? If clients are not setting this field > 0 on 
    retries they will not be detected as unacked.? Take a look at the packet 
    capture and/or try setting this to 0.

    See: 
    https://kea.readthedocs.io/en/latest/arm/hooks.html#load-balancing-configuration. 
    Following the sample config there is discussion of these parameters.





    On 6/23/20 3:50 PM, Ismael Suarez 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:Pizu%20%3cpizpower at gmail.com%3e>>
    > To: 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>
    >
    > 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 at lists.isc.org
    > https://lists.isc.org/mailman/listinfo/kea-users



    ------------------------------

    Subject: Digest Footer

    _______________________________________________

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

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


    ------------------------------

    End of Kea-users Digest, Vol 72, Issue 19
    *****************************************



More information about the Kea-users mailing list