Peter,

Apparently you configured your Kea Control Agent rather than DHCP server
to load the hooks libraries. Can you please confirm?

The lease-cmds hooks library must be loaded from within the Kea DHCP
server configuration, i.e. kea-dhcp4.conf rather than
kea-ctrl-agent.conf. The "service" parameter must be present in all
commands sent to the DHCP servers.

Marcin Siodelski
Sr. Software Engineer
ISC

On 03/03/2020 09:24, Peter Simm wrote:
> Hello,
> 
> Thanks for the suggestion, unfortunately it doesn't seem to work either :(
> 
>  curl -X POST -H "Content-Type: application/json" -d '{ "command":
> "lease4-get-all", "service": [ "dhcp4" ]}' http://127.0.0.1:8080  | jq
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
> 100   122  100    68  100    54  53042  42121 --:--:-- --:--:-- --:--:--
> 68000
> [
>   {
>     "result": 1,
>     "text": "no current lease manager is available"
>   }
> ]
> 
> 2020-03-03 09:23:09.258 ERROR [kea-ctrl-agent.callouts/26800]
> HOOKS_CALLOUT_ERROR error returned by callout on hook 1 registered by
> library with index
> $lease4_get_all (callout address 0x7f172e322b40) (callout duration 0.086 ms)
> 
> On Tue, 3 Mar 2020 at 08:16, TroYy <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     It seems that you must include "service" which you want to be asked
> 
>     So
> 
>     curl -X POST -H "Content-Type: application/json" -d '{ "command":
>     "lease4-get-all", "service": [ "dhcp4" ] }' http://127.0.0.1:8080  | jq
> 
>     should work
> 
> 
> 
>     --
>     Sent from: http://kea-users.7364.n8.nabble.com/
>     _______________________________________________
>     Kea-users mailing list
>     [email protected] <mailto:[email protected]>
>     https://lists.isc.org/mailman/listinfo/kea-users
> 
> 
> _______________________________________________
> Kea-users mailing list
> [email protected]
> https://lists.isc.org/mailman/listinfo/kea-users
> 

_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to