[Kea-users] database backend + stork

Vadim Yakovenko YakovenkoV at westmancom.com
Wed Dec 18 17:50:07 UTC 2024


Additional information:

I can see the subnet is added to the running configuration, but still not committed to the database.

________________________________
From: Vadim Yakovenko <YakovenkoV at westmancom.com>
Sent: Wednesday, December 18, 2024 10:25 AM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: database backend + stork

Hello.

I am running the Kea 2.6.1 with premium hooks for database backend.
Stork sever version is 2.0.0

Here is the config snippet which was pulled from the server requested via kea-agent:

        "config-control": {
          "config-databases": [
            {
              "host": "AAA.AAA.AAA.AAA",
              "name": "lab_lease_db",
              "password": "xxx",
              "port": 3306,
              "type": "mysql",
              "user": "connector"
            }
          ],

Here is what I see from the Stork side for hooks:

Libdhcp_host_cmds.so [doc]
libdhcp_subnet_cmds.so [doc]
libdhcp_cb_cmds.so [doc]
libdhcp_mysql_cb.so [doc]
libdhcp_lease_cmds.so [doc]

Here is what I see from the Stork side for the backend:


Database Backends
 MySQL (lab_lease_db at AAA.AAA.AAA.AAA) with:
Leases
Config Backend

So, it looks like I should be able to add and manipulate subnets and pools.

When I'm trying to add a subnet I'm getting the following message:

The transaction creating the subnet failed: Problem with committing subnet information: config-write command to kea at AAA.AAA.AAA.AAA failed: error status (1) returned by Kea dhcp4 daemon with text: 'Error during write-config: Unable to open file /etc/kea/kea-dhcp4.conf for writing'

It looks like Kea is trying to write the config changes to the file, even though it should write it to the database.
When I am adding the subnet to the database manually, Kea can operate with it without any problems.
Have I missed something to setup ?

Thanks in advance.

-Vadim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20241218/9f8ab8fb/attachment.htm>


More information about the Kea-users mailing list