Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-122355

kea: Write RHEL10 kbase article for postgresql issue after ugrade from 2.6.4 to 3.0.1 (BZ 2404145)

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • kea
    • None
    • 1
    • rhel-stacks-services-scripting
    • S&S-25_5
    • 2
    • False
    • Hide

      None

      Show
      None
    • 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"
          }, ... ], ... }
      

      see: https://bugzilla.redhat.com/show_bug.cgi?id=2404145

              rhn-support-mosvald Martin Osvald
              rhn-support-mosvald Martin Osvald
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: