[Kea-users] FW: KEA 1.8 on Ubuntu 20.04, High Availability hooks error/configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] FW: KEA 1.8 on Ubuntu 20.04, High Availability hooks error/configuration

Niek Scheltens

Hello,

 

At the moment KEA 1.4 runs in our production environment in a High Availability setup. We are rebuilding this production environment with a KEA 1.8 installation on Ubuntu 20.04 where KEA runs in LXC containers. KEA 1.8 is installed via the Debian Cloudsmith repositories.

When we configure the kea-dhcp4 config without the hooks-libraries section, everything works fine. DHCP offers were sent to the test client. But, when we add the hooks-libraries section for the high availability configuration, we get the error showed below:

 

  • DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, reason: One or more hook libraries failed to load

 

We determined that the location of the hooks file is in: /usr/lib/x86_64-linux-gnu/kea/hooks/. First we saw that the permissions on these files were different compared to the KEA 1.4 servers. We corrected that by using the Ubuntu chmod 755 libdhcp_* command in the directory.

After this change, the error above still shows up.

 

Are there some extra steps needed to use the High Availability Hooks in KEA 1.8? The KEA 1.8 documentation states that the hook is part of the source code.

 

Attached below you will find the hook-libraries section configuration we use within the Dhcp4 configuration. Note: we removed the name of the server and the IP address and we will add the secondary server later on. The problem for now is that, the hooks won’t load.

 

Thanks in advance!

 

 

    "hooks-libraries": [

        {

            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so"

        },

        {

            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so",

            "parameters": { }

        },

        {

            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",

            "parameters": {

                       "high-availability": [

                   {

                     "this-server-name": "<name>",

                     "mode": "hot-standby",

                     "heartbeat-delay": 10000,

                     "max-response-delay": 10000,

                     "max-ack-delay": 5000,

                     "max-unacked-clients": 0,

                     "peers": [

                       {

                         "name": "<name>",

                         "url": "<ip>",

                         "role": "primary",

                         "auto-failover": true

                       }

                     ]

                   }

               ]

            }

        }

    ],

 

Kind regards,

 

Niek Scheltens

 

 

 


_______________________________________________
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