[stork-users] dhcp4 service to stork disabled

Slawek Figiel slawek at isc.org
Thu Nov 28 13:12:29 UTC 2024


Could you verify the Kea CA can communicate with the DHCPv4 daemon by 
executing this command (you need to press Ctrl+D after calling it) :

```
kea-shell --service dhcp4 status-get
```

If you get the proper status, it means the Kea CA-Kea DHCPv4 connection 
works OK. But if you see the message: "unable to forward command to the 
dhcp4 service: No such file or directory. The server is likely to be 
offline" then the Kea CA or Kea DHCPv4 configuration is incorrect.

 > question:  is kea ca needed on the stork server?    I did not install.

No, it isn't. The Kea CA needs to be installed on machine with the Kea 
DHCP daemon and Stork agent.

 > where do i find DHCPv4 JSON ?

By default, it is `/etc/kea/kea-dhcp4.conf` but you can customize the 
path by the `-c` flag of Kea DHCP daemon.

 > also by 'control socket'  is that the same as a port number?

No, it isn't. In Kea CA you need provide the socket paths of the 
controlled applications in the "control-sockets" property. See 
https://kea.readthedocs.io/en/latest/arm/agent.html#configuration . In 
Kea DHCPv4 you need to specify "control-socket" property. See: 
https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#management-api-for-the-dhcpv4-server 
.

Slawek Figiel



On 28/11/2024 13:47, fbcadmin wrote:
> dhcpv4 is running and giving out leases.
> 
> 
> kea ca on the dhcp server shows all okay
> 
> 
> question:  is kea ca needed on the stork server?    I did not install.
> 
> 
> I'll check the control socket match next .
> 
> On 11/28/24 07:16, Slawek Figiel wrote:
>> Hello!
>>
>> Is your DHCPv4 daemon running?
>> If yes, please check the Kea CA and DHCPv4 logs for issues.
>> Please also ensure the control socket for the DHCPv4 daemon in the Kea 
>> CA configuration matches the control socket in the DHCPv4 JSON.
>>
>> Regards,
>> Slawek Figiel
>>
>> On 28/11/2024 01:06, fbcadmin wrote:
>>> Hello
>>>
>>>   I have a dhcp server registered and displaying most data except 
>>> dhcp4 .
>>>
>>>
>>> from events:
>>>
>>> processing Kea command by daemon [2] dhcp4 <http://10.1.3.3:8080/ 
>>> apps/ kea/1?daemon=dhcp4> on machine [5] dhcp-vlan37.test.com 
>>> <http://10.1.3.3:8080/machines/5> failed
>>>
>>> unable to forward command to the dhcp4 service: No such file or 
>>> directory. The server is likely to be offline
>>>
>>>
>>> from troubleshooting data - machine:
>>>
>>> "dhcp4": {
>>>                                          "socket-name": "/tmp/kea4- 
>>> ctrl- socket",
>>>                                          "socket-type": "unix"
>>>
>>>
>>> "ID": 2,
>>>                      "Pid": 0,
>>>                      "Name": "dhcp4",
>>>                      "Active": false,
>>>
>>>
>>> If my issue with the dhcp4 socket ?   If so I could use help on 
>>> getting that configured.
>>>
>>>
>>> Also the dhcp server does not use mysql, it uses memfile in case that 
>>> makes a difference.
>>>
>>>
>>>
>>>
>>>
>>>
>>



More information about the Stork-users mailing list