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

Niek Scheltens NScheltens at kembit.nl
Mon Oct 19 07:30:45 UTC 2020


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20201019/ded4b153/attachment.htm>


More information about the Kea-users mailing list