-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
1
-
rhel-stacks-services-scripting
-
S&S-25_5
-
2
-
False
-
-
None
When you upgrade from RHEL10.0 Kea version 2.6.X to RHEL10.1 Kea version 3.0.X, and you are using postgres/mysql as the lease database backend, you can hit the following errors:
Oct 15 12:26:01 major-clanger.matbooth.test kea-dhcp4[27296]: ERROR [kea-dhcp4.dhcpsrv] DHCPSRV_UNKNOWN_DB unknown database type: postgresql Oct 15 12:26:01 major-clanger.matbooth.test kea-dhcp4[27296]: ERROR [kea-dhcp4.dhcp4] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, reason: Unable to open database: The Kea server has not been compiled with support for lease database type: postgresql. Did you forget to use -D postgresql=enabled during setup or to load libdhcp_pgsql hook library? Oct 15 12:26:01 major-clanger.matbooth.test kea-dhcp4[27296]: 2025-10-15 12:26:01.555 ERROR [kea-dhcp4.dhcp4/27296.140053513608512] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': Unable to open database: The Kea server has not been compiled with support for lease database type: postgresql. Did you forget to use -D postgresql=enabled during setup or to load libdhcp_pgsql hook library?
It is caused by the fact that support for MySQL and PostgreSQL was moved to separate hooks, and you have to add a configuration snippet to load them and install kea-hooks subpackage:
"Dhcp4": { "hooks-libraries": [ { // the PostgreSQL lease backend hook library required for lease storage. "library": "/usr/lib64/kea/hooks/libdhcp_pgsql.so" }, ... ], ... }
or
"Dhcp4": { "hooks-libraries": [ { // the MySQL lease backend hook library required for lease storage. "library": "/usr/lib64/kea/hooks/libdhcp_mysql.so" }, ... ], ... }