[Kea-users] KEA and Stork - Issue in communication with the daemon (DHCP4)

Christian Kreichgauer | KRAEMER Pferdesport c.kreichgauer at kraemer.de
Sat Jun 3 14:37:53 UTC 2023


Hi!



It feels like I'm almost done installing and configuring KEA and Stork on Ubuntu 22.04. But somehow there is one issue that persists.



Unfortunately monitoring and editing config, adding host reservations etc. on DHCP4 is not working. The service itself is running just fine.



Message when monitoring disabled: "This daemon is currently not monitored by Stork. The daemon was either manually disabled or it was never running correctly (was never active) since it was added to Stork server. This configuration was detected in the KEA Control Agent's configuration file. That's why it appears on the list of daemons."



Message when monitoring enabled: "There is observed issue in communication with the daemon."



Is there something I missed in the configuration?



Did anyone else have that issue and was able to solve it? If so, how?



I'm glad for any help here.



###My configuration###



Stork:

- lists KEA server1

- CA monitoring is running properly

- DHCP4 monitoring not working



KEA server1:

- DHCP4 and CA in use and running

- isc-stork-agent installed and running

- authorized in Stork



kea-ctrl-agent.conf:

{
    "Control-agent": {
        "http-host": "IP of server1",
        "http-port": 8000,
        "control-sockets": {
            "dhcp4": {
                "socket-type": "unix",
                "socket-name": "/var/run/kea/control_socket"
            }
        },
        "cert-required": true
    }
}





kea-dhcp4.conf:

{

"Dhcp4": {
    "interfaces-config": {
        "interfaces": ["*"]
    },

    "lease-database": {
        "type": "memfile",
        "persist": true,
        "name": "/var/lib/kea/kea-leases4.csv",
        "lfc-interval": 3600
    },

    "renew-timer": 15840,
    "rebind-timer": 27720,
    "valid-lifetime": 31680,

    "option-data": [
        {
            "name": "domain-name-servers",
            "data": "1.1.1.1,8.8.8.8"
        },

        {
            "name": "domain-search",
            "data": "XYZ.local"
        }
    ],
 "hooks-libraries": [
      {
        "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
      },
      {
        "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
        "parameters": {
            "high-availability": [
              {
                "this-server-name": "server1",
                "mode": "hot-standby",
                "peers": [
                  {
                    "name": "server1",
                    "url": "http://ipserver1:8000/",
                    "role": "primary",
                    "auto-failover": true
                },
                {
                    "name": "server2",
                    "url": "http://ipserver2:8000/",
                    "role": "standby",
                    "auto-failover": true
                }
              ]
            }
          ]
        }
      }
    ],

    "subnet4": [
        {
            "subnet": "10.10.252.0/24",
            "pools": [ { "pool": "10.10.252.10 - 10.10.252.12" } ],
            "option-data": [
                {
                    "name": "routers",
                    "data": "10.10.252.1"
                }
            ]
            
            # Add reservations here
        },

{
    "subnet": "192.168.178.0/24",
            "pools": [ { "pool": "192.168.178.10 - 192.168.178.12" } ],
            "option-data": [
                {
                    "name": "routers",
                    "data": "192.168.178.1"
                }
            ]
}
     ]
}

}





--
Best regards
Christian Kreichgauer


"Dhcp4": {
    "interfaces-config": {
        "interfaces": ["*"]
    },

    "lease-database": {
        "type": "memfile",
        "persist": true,
        "name": "/var/lib/kea/kea-leases4.csv",
        "lfc-interval": 3600
    },

    "renew-timer": 15840,
    "rebind-timer": 27720,
    "valid-lifetime": 31680,

    "option-data": [
        {
            "name": "domain-name-servers",
            "data": "1.1.1.1,8.8.8.8"
        },

        {
            "name": "domain-search",
            "data": "XYZ.local"
        }
    ],
 "hooks-libraries": [
      {
        "library": "/path/libdhcp_lease_cmds.so"
      },
      {
        "library": "/path/libdhcp_ha.so",
        "parameters": {
            "high-availability": [
              {
                "this-server-name": "server1",
                "mode": "hot-standby",
                "peers": [
                  {
                    "name": "server1",
                    "url": "http://ipserver1:8000/",
                    "role": "primary",
                    "auto-failover": true
                },
                {
                    "name": "server2",
                    "url": "http://ipserver2:8000/",
                    "role": "standby",
                    "auto-failover": true
                }
              ]
            }
          ]
        }
      }
    ],

    "subnet4": [
        {
            "subnet": "10.10.252.0/24",
            "pools": [ { "pool": "10.10.252.10 - 10.10.252.12" } ],
            "option-data": [
                {
                    "name": "routers",
                    "data": "10.10.252.1"
                }
            ]
            
            # Add reservations here
        },

{
    "subnet": "192.168.178.0/24",
            "pools": [ { "pool": "192.168.178.10 - 192.168.178.12" } ],
            "option-data": [
                {
                    "name": "routers",
                    "data": "192.168.178.1"
                }
            ]
}
        
        # Add subnets here
    ]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230603/e97978b0/attachment-0001.htm>


More information about the Kea-users mailing list