Hi Vadim, Stork does not yet support the configuration backend. When you perform subnet changes on the Stork server, it will send these changes to Kea using the subnet_cmds hook API commands. Then it will send a config-write API command to save the configuration to disk.
Thank you, Darren Ankney On Wed, Dec 18, 2024 at 12:50 PM Vadim Yakovenko <yakoven...@westmancom.com> wrote: > > Additional information: > > I can see the subnet is added to the running configuration, but still not > committed to the database. > > ________________________________ > From: Vadim Yakovenko <yakoven...@westmancom.com> > Sent: Wednesday, December 18, 2024 10:25 AM > To: kea-users@lists.isc.org <kea-users@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...@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 k...@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 > -- > 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@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@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users