Hi Christian,

Your control agent will be trying to communicate with kea-dhcp4 using
the socket "/var/run/kea/control_socket" but the kea-dhcp4
configuration doesn't have that socket configured.  See detail here:
https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html?highlight=socket#management-api-for-the-dhcpv4-server

Thank you,

Darren Ankney

On Sat, Jun 3, 2023 at 10:38 AM Christian Kreichgauer | KRAEMER
Pferdesport via Kea-users <kea-users@lists.isc.org> wrote:
>
> 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
>     ]
> }
>
> --
> 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
  • [Kea-users] KEA ... Christian Kreichgauer | KRAEMER Pferdesport via Kea-users
    • Re: [Kea-us... Darren Ankney

Reply via email to