[Kea-users] Configuration data is not updated from the database
Mark Villadsen
cliff.ha at gmail.com
Tue Nov 19 14:35:13 UTC 2024
Hi
I have a Kea 2.6.1 installation running with postgresql as backend, and I am having problems when I add a new subnet in the database or change any existing information it is never updated in the reply to the client, and if I look at the running configuration it is still using the old data.
In the service I can see the DCTL_CONFIG_FETCH every 20 sec but it does not do anything else than that, should I not expect it to also do:
DHCPSRV_CFGMGR_CONFIG4_MERGED and DHCP4_CONFIG_COMPLETE
When there is configuration changes?
This is happening if I do a service reload or run this command:
echo '{"command": "config-reload", "service": ["dhcp4"]}' | socat - UNIX-CONNECT:/tmp/kea4-ctrl-socket
After this the running configuration is updated.
I would expect this to happen automatically when there is a configuration change or am I wrong to expect that?
Do I need to add some configuration to have it update automatically whenever there is a change in the database?
My kea-dhcp4.conf file looks like this:
{
"Dhcp4": {
"interfaces-config": {
"interfaces": [
"ens224"
],
"dhcp-socket-type": "udp"
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea4-ctrl-socket"
},
"lease-database": {
"type": "postgresql",
"name": "kea",
"host": "127.0.0.1",
"port": 5432,
"user": "leaseUser",
"password": "leasePW",
"reconnect-wait-time": 3000
"max-reconnect-tries": 3,
"on-fail": "stop-retry-exit",
"retry-on-startup": false,
"connect-timeout": 3
},
"config-control": {
"config-fetch-wait-time": 30,
"config-databases": [
{
"type": "postgresql",
"name": "kea",
"user": "configUser",
"password": "configPW",
"host": "127.0.0.1",
"port": 5432
}
]
},
"hooks-libraries": [
{
"library": "/usr/lib64/kea/hooks/libdhcp_pgsql_cb.so"
}
]
}
}
I hope you can help me locate the problem why the configuration is not updating.
Best regards
Mark Villadsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20241119/7adc4180/attachment.htm>
More information about the Kea-users
mailing list