<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
It appears if the /var/run/kea does not exist it creates the
following files in /var/run/ <br>
<br>
-rw-r--r-- 1 root root 5 Jan 24 20:45
kea-ctrl-agent.kea-ctrl-agent.pid<br>
-rw-r--r-- 1 root root 5 Jan 24 20:43
kea-ctrl-agent6.kea-ctrl-agent.pid<br>
-rw-r--r-- 1 root root 5 Jan 24 20:43 kea-dhcp4.kea-dhcp4.pid<br>
-rw-r--r-- 1 root root 5 Jan 24 20:43 kea-dhcp6.kea-dhcp6.pid<br>
<br>
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<br>
<br>
"Control-agent": {<br>
"http-host": "192.168.26.248",<br>
"http-port": 8080,<br>
<br>
"control-sockets": {<br>
"dhcp4": {<br>
"socket-type": "unix",<br>
"socket-name": "/tmp/kea-dhcp4-ctrl.sock"<br>
}<br>
}<br>
},<br>
"Control-agent": {<br>
"http-host": "fd22:318a:1212:1:8456:1466:9675:5991",<br>
"http-port": 8081,<br>
<br>
"control-sockets": {<br>
"dhcp6": {<br>
"socket-type": "unix",<br>
"socket-name": "/tmp/kea-dhcp6-ctrl.sock"<br>
}<br>
}<br>
<br>
},<br>
<br>
Regards<br>
<br>
Russell<br>
<br>
On 25/01/2019 14:17, Bob Harold wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+nkc8DjOCvchodhiaBpJmNGfEu79bS8+mHM7uATiq8ycbqnRA@mail.gmail.com">
<pre wrap="">On Thu, Jan 24, 2019 at 3:51 PM russell aspinwall <
<a class="moz-txt-link-abbreviated" href="mailto:raspinwall@willows7.myzen.co.uk">raspinwall@willows7.myzen.co.uk</a>> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>