kea-ctrl-agent fails with database reconnect-tries and reconnect-wait-time set
Background: over the weekend kea crashed with a segfault causing a dhcp outage. We believe to have tracked it down to the sql server getting an auto update. That has been remedied. We tried setting these values in the dhcp4 config connect-timeout, max-reconnect-tries, and reconnect-wait-time but caused kea-ctrl-agent to crash.
Describe the bug When connect-timeout, max-reconnect-tries, and reconnect-wait-time are set in the dhcp4 config the server starts and runs just fine. however when running an api call the connection drops and no more calls can be made.
To Reproduce Set these values in dhcp4 config connect-timeout, max-reconnect-tries, and reconnect-wait-time
Expected behavior We expected setting the values to have no affect on kea-ctrl-agent and only pertain to the sql connection to ensure an update in the future would not cause a crash / segfault error.
Environment:
- Kea 1.4.0-P1 compiled from tarball
- OS: Ubuntu 18.04.2 LTS x64 kernel 4.15
- with sqlbackend and ssl
- all premium hooks as well as HA
Error from kea control agaent
[ { "result": 1, "text": "Error during command processing: unknown DB access parameter: max-reconnect-tries=10" } ] 2019-02-11 14:57:34.852 DEBUG [kea-ctrl-agent.http/2960] HTTP_CONNECTION_STOP stopping HTTP connection from 10.9.1.5 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.dctl/2960] DCTL_SHUTDOWN_SIGNAL_RECVD OS signal 15 received, starting shutdown 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.commands/2960] COMMAND_DEREGISTERED Command build-report deregistered 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.commands/2960] COMMAND_DEREGISTERED Command config-get deregistered 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.commands/2960] COMMAND_DEREGISTERED Command config-test deregistered 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.commands/2960] COMMAND_DEREGISTERED Command config-write deregistered 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.commands/2960] COMMAND_DEREGISTERED Command shutdown deregistered 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.commands/2960] COMMAND_DEREGISTERED Command version-get deregistered 2019-02-11 15:01:41.951 DEBUG [kea-ctrl-agent.ctrl-agent/2960] CTRL_AGENT_RUN_EXIT application is exiting the event loop 2019-02-11 15:01:41.951 INFO [kea-ctrl-agent.dctl/2960] DCTL_SHUTDOWN Control-agent has shut down, pid: 2960, version: 1.4.0-P1 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.dctl/3268] DCTL_RUN_PROCESS Control-agent starting application event loop 2019-02-11 15:01:42.003 INFO [kea-ctrl-agent.ctrl-agent/3268] CTRL_AGENT_STARTED Kea Control Agent version 1.4.0-P1 started 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command list-commands registered 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command build-report registered 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command config-get registered 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command config-test registered 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command config-write registered 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command shutdown registered 2019-02-11 15:01:42.003 DEBUG [kea-ctrl-agent.commands/3268] COMMAND_REGISTERED Command version-get registered 2019-02-11 15:02:05.237 DEBUG [kea-ctrl-agent.http/3268] HTTP_REQUEST_RECEIVE_START start receiving request from 10.9.1.5 with timeout 10 2019-02-11 15:02:05.237 DEBUG [kea-ctrl-agent.http/3268] HTTP_DATA_RECEIVED received 159 bytes from 10.9.1.5 2019-02-11 15:02:05.237 DEBUG [kea-ctrl-agent.http/3268] HTTP_CLIENT_REQUEST_RECEIVED received HTTP request from 10.9.1.5 2019-02-11 15:02:05.237 DEBUG [kea-ctrl-agent.http/3268] HTTP_CLIENT_REQUEST_RECEIVED_DETAILS detailed information about well formed request received from 10.9.1.5: POST / HTTP/1.1 Content-Type: application/json Content-Length: 44 Host: 10.253.6.230:8080 Connection: close
Config attached