Hi,
It appears if the /var/run/kea does not exist it creates the following
files in /var/run/
-rw-r--r-- 1 root root 5 Jan 24 20:45 kea-ctrl-agent.kea-ctrl-agent.pid
-rw-r--r-- 1 root root 5 Jan 24 20:43 kea-ctrl-agent6.kea-ctrl-agent.pid
-rw-r--r-- 1 root root 5 Jan 24 20:43 kea-dhcp4.kea-dhcp4.pid
-rw-r--r-- 1 root root 5 Jan 24 20:43 kea-dhcp6.kea-dhcp6.pid
It would be nice to configure two kea-ctrl-agents with in a single file
with processes spawned to handle the different ip/socket combinations
"Control-agent": {
"http-host": "192.168.26.248",
"http-port": 8080,
"control-sockets": {
"dhcp4": {
"socket-type": "unix",
"socket-name": "/tmp/kea-dhcp4-ctrl.sock"
}
}
},
"Control-agent": {
"http-host": "fd22:318a:1212:1:8456:1466:9675:5991",
"http-port": 8081,
"control-sockets": {
"dhcp6": {
"socket-type": "unix",
"socket-name": "/tmp/kea-dhcp6-ctrl.sock"
}
}
},
Regards
Russell
On 25/01/2019 14:17, Bob Harold wrote:
On Thu, Jan 24, 2019 at 3:51 PM russell aspinwall <
[email protected]> wrote:
Hi,
I have configured a pair of Raspberry PI 3B+ using Ubuntu 18.10 and Kea
1.4.0-P1-3 which is available for Ubuntu 18.10.
In order to keep the DHCPv4 and DHCPv6 separate I have created two
kea-ctrl-agent config files /etc/kea/kea-ctrl-agent.conf and
/etc/kea/kea-ctrl-agent6.conf. I copied /usr/sbin/kea-ctrl-agent to
/usr/sbin/kea-ctrl-agent6.
In the /etc/kea/kea-ctrl-agent.conf I have used the Raspberry PI IPv4
address and port 8080 and socket /tmp/kea-dhcp4-ctrl.sock
In the /etc/kea/kea-ctrl-agent6.conf I have used the Raspberry PI IPv6
Unique Local Unicast address and port 8081 with socket
tmp/kea-dhcp6-ctrl.sock.
The kea-dhcp4.conf and kea-dhcp6.conf files are adjusted to use the
correct socket and http://address:port.
I have been using systemd :( to start the kea-ctrl-agent,
kea-ctrl-agent6, kea-dhcp4-server and kea-dhcp6-server. When I reboot
the PI the kea-ctrl-agent is not running when I log in but the
kea-ctrl-agent6 is running.
If I manually start
/usr/sbin/kea-crtl-agent -c /etc/kea/kea-ctrl-agent.conf &
I get a warning but the DHCPv4 HA starts working
"Unable to use interprocess sync lockfile (No such file or directory):
/var/run/kea/isc_kea_logger_lockfile
Unable to use interprocess sync lockfile (No such file or directory):
/var/run/kea/isc_kea_logger_lockfile
Unable to use interprocess sync lockfile (No such file or directory):
/var/run/kea/isc_kea_logger_lockfile
Unable to use interprocess sync lockfile (No such file or directory):
/var/run/kea/isc_kea_logger_lockfile"
I would like to get all the services starting during a reboot, any
pointers to get the processes running would be appreciated.
Based on the error message, both processes might be trying to use the same
lock file,
/var/run/kea/isc_kea_logger_lockfile
or maybe that directory does not exist, or has wrong permissions.
You need to somehow configure them to use different lock files.
I don't use Kea, so I have no idea how to configure that.
_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users