<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi <div><br></div><div>I have a Kea 2.6.1 installation running with postgresql as backend, and I am having problems when I add a new subnet in the database or change any existing information it is never updated in the reply to the client, and if I look at the running configuration it is still using the old data.</div><div>In the service I can see the DCTL_CONFIG_FETCH every 20 sec but it does not do anything else than that, should I not expect it to also do:</div><div><br></div><div>DHCPSRV_CFGMGR_CONFIG4_MERGED and DHCP4_CONFIG_COMPLETE</div><div>When there is configuration changes?</div><div>This is happening if I do a service reload or run this command: </div><div>echo '{"command": "config-reload", "service": ["dhcp4"]}' | socat - UNIX-CONNECT:/tmp/kea4-ctrl-socket</div><div>After this the running configuration is updated.</div><div><br></div><div>I would expect this to happen automatically when there is a configuration change or am I wrong to expect that?</div><div>Do I need to add some configuration to have it update automatically whenever there is a change in the database?</div><div><br></div><div>My kea-dhcp4.conf file looks like this:</div><div><br></div><div><div style="color: rgb(64, 64, 64); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;"><div>{</div><div> <span style="color: rgb(9, 89, 132);">"Dhcp4"</span>: {</div><div> <span style="color: rgb(9, 89, 132);">"interfaces-config"</span>: {</div><div> <span style="color: rgb(9, 89, 132);">"interfaces"</span>: [</div><div> <span style="color: rgb(162, 86, 55);">"ens224"</span></div><div> ],</div><div> <span style="color: rgb(9, 89, 132);">"dhcp-socket-type"</span>: <span style="color: rgb(162, 86, 55);">"udp"</span></div><div> },</div><div> <span style="color: rgb(9, 89, 132);">"control-socket"</span>: {</div><div> <span style="color: rgb(9, 89, 132);">"socket-type"</span>: <span style="color: rgb(162, 86, 55);">"unix"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"socket-name"</span>: <span style="color: rgb(162, 86, 55);">"/tmp/kea4-ctrl-socket"</span></div><div> },</div><div> <span style="color: rgb(9, 89, 132);">"lease-database"</span>: {</div><div> <span style="color: rgb(9, 89, 132);">"type"</span>: <span style="color: rgb(162, 86, 55);">"postgresql"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"name"</span>: <span style="color: rgb(162, 86, 55);">"kea"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"host"</span>: <span style="color: rgb(162, 86, 55);">"127.0.0.1"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"port"</span>: <span style="color: rgb(73, 104, 57);">5432</span>,</div><div> <span style="color: rgb(9, 89, 132);">"user"</span>: <span style="color: rgb(162, 86, 55);">"leaseUser"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"password"</span>: <span style="color: rgb(162, 86, 55);">"leasePW"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"reconnect-wait-time"</span>: <span style="color: rgb(73, 104, 57);">3000</span></div><div> <span style="color: rgb(162, 86, 55);">"max-reconnect-tries"</span><span style="color: rgb(222, 5, 5);">:</span> <span style="color: rgb(73, 104, 57);">3</span>,</div><div> <span style="color: rgb(9, 89, 132);">"on-fail"</span>: <span style="color: rgb(162, 86, 55);">"stop-retry-exit"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"retry-on-startup"</span>: <span style="color: rgb(63, 151, 223);">false</span>,</div><div> <span style="color: rgb(9, 89, 132);">"connect-timeout"</span>: <span style="color: rgb(73, 104, 57);">3</span></div><div> },</div><div> <span style="color: rgb(9, 89, 132);">"config-control"</span>: {</div><div> <span style="color: rgb(9, 89, 132);">"config-fetch-wait-time"</span>: <span style="color: rgb(73, 104, 57);">30</span>,</div><div> <span style="color: rgb(9, 89, 132);">"config-databases"</span>: [</div><div> {</div><div> <span style="color: rgb(9, 89, 132);">"type"</span>: <span style="color: rgb(162, 86, 55);">"postgresql"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"name"</span>: <span style="color: rgb(162, 86, 55);">"kea"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"user"</span>: <span style="color: rgb(162, 86, 55);">"configUser"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"password"</span>: <span style="color: rgb(162, 86, 55);">"configPW"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"host"</span>: <span style="color: rgb(162, 86, 55);">"127.0.0.1"</span>,</div><div> <span style="color: rgb(9, 89, 132);">"port"</span>: <span style="color: rgb(73, 104, 57);">5432</span></div><div> }</div><div> ]</div><div> },</div><div> <span style="color: rgb(9, 89, 132);">"hooks-libraries"</span>: [</div><div> {</div><div> <span style="color: rgb(9, 89, 132);">"library"</span>: <span style="color: rgb(162, 86, 55);">"/usr/lib64/kea/hooks/libdhcp_pgsql_cb.so"</span></div><div> }</div><div> ]</div><div> }</div><div>}</div></div></div><div><br></div><div>I hope you can help me locate the problem why the configuration is not updating.</div><div><br></div><div>Best regards</div><div>Mark Villadsen</div></body></html>