Greetings,

I have upgraded my kea lab from 2.6.1 to 2.7.7 and installed the package for 
hooks. Now I am testing the 
libdhcp_subnet_cmds.so<http://libdhcp_subnet_cmds.so> library.

But I found that I could only run those status check commands successfully, but 
I am not able to modify any configurations as you can see the examples below. 
It happened to all the commands which could modify the configuration.

I adjusted the format of my arguments to match the example in your document, 
but it didn’t work. I added the -u option to curl as the root user, but still 
not working. Instead of running the curl command remotely, I run it in the same 
Linux host but still the same. I tried to Google this error but couldn’t find 
any match including your kea message documentation. I run the curl command 
against both primary and standby nodes, but still not working.

When I used -v mode for curl command, I can see it does return code 200, so I 
don’t think it’s other issue than kea hook function itself.

Can you let me know if I missed anything?




Successful tests:

➜  ~ curl -X POST -H "Content-Type: application/json" -d '{ "command": 
"subnet6-list" }' http://192.168.100.111:8001/ -s | jq
[
  {
    "arguments": {
      "subnets": [
        {
          "id": 1,
          "subnet": "ff12:5656:15e2:10::/64"
        }
      ]
    },
    "result": 0,
    "text": "1 IPv6 subnet found"
  }
]

Unsuccessful tests:

➜  ~ curl -X POST -H "Content-Type: application/json" -d '{ "command": 
"subnet6-del", "arguments": {"id": 1}  }' http://192.168.100.111:8001/ -s | jq
[
  {
    "result": 1,
    "text": "invalid thread pool state change to paused performed by worker 
thread"
  }
]

➜  ~ curl -X POST -H "Content-Type: application/json" -d '{ "command": 
"subnet6-add", "arguments": {"subnet6": [{"id": 2,"subnet": 
"ff12:5656:15e2:10::/64"}] } }' http://192.168.100.111:8001/ -s | jq
[
  {
    "result": 1,
    "text": "invalid thread pool state change to paused performed by worker 
thread"
  }
]
➜  ~ curl -X POST -H "Content-Type: application/json" -d '{ "command": 
"subnet6-update", "arguments": {"subnet6": [{"id": 1,"subnet": 
"ff12:5656:15e2:20::/64"}] } }' http://192.168.100.111:8001/ -s | jq
[
  {
    "result": 1,
    "text": "invalid thread pool state change to paused performed by worker 
thread"
  }
]

Verbose mode:
➜  ~ curl -v -X POST -H "Content-Type: application/json" -d '{ "command": 
"subnet6-update", "arguments": {"id": 1}  }' http://192.168.100.112:8001/ -s | 
jq
*   Trying 192.168.100.112:8001...
* Connected to 192.168.100.112 (192.168.100.112) port 8001
> POST / HTTP/1.1
> Host: 192.168.100.112:8001
> User-Agent: curl/8.7.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 56
>
} [56 bytes data]
* upload completely sent off: 56 bytes
< HTTP/1.1 200 OK
< Content-Length: 100
< Content-Type: application/json
< Date: Wed, 09 Apr 2025 18:21:37 GMT
<
{ [100 bytes data]
* Connection #0 to host 192.168.100.112 left intact
[
  {
    "result": 1,
    "text": "invalid thread pool state change to paused performed by worker 
thread"
  }
]



Best Regards,
Yu

-- 
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

Reply via email to