Re: [Kea-users] migrating from DHCPd to Kea

2024-04-16 Thread Brendan Kearney

Peter,

thanks for the quick reply.  please let me know if there is more detail 
needed.  i run Kea with ERROR level logging, so if more verbose logs are 
needed, i would need to set up some time to test and collect the logs, etc.


the logs from the testing i did, as collected by my syslog receiver:

ReceivedAt    DeviceReportedTime    Facility Priority    FromHost    
Message    SysLogTag    processid
2024-04-11 12:25:54    2024-04-11 12:25:54    3    6 server1    
2024-04-11 12:25:54.414 INFO [kea-dhcp4.dhcp4/840765.139709009588608] 
DHCP4_STARTING Kea DHCPv4 server version 2.4.0 (stable) starting    
kea-dhcp4 840765
2024-04-11 12:26:11    2024-04-11 12:26:11    3    6 server1    
2024-04-11 12:26:11.238 INFO [kea-dhcp-ddns.dctl/840800.140457414102528] 
DCTL_STARTING DhcpDdns starting, pid: 840800, version: 2.4.0 (stable) 
kea-dhcp-ddns    840800
2024-04-11 12:26:29    2024-04-11 12:26:29    3    6 server1    
2024-04-11 12:26:29.089 INFO 
[kea-ctrl-agent.dctl/840831.139709242502656] DCTL_STARTING Control-agent 
starting, pid: 840831, version: 2.4.0 (stable) kea-ctrl-agent    840831
2024-04-11 12:26:29    2024-04-11 12:26:29    16    3 server1    ERROR 
[kea-ctrl-agent.dctl.139709242502656] DCTL_PARSER_FAIL : unable to setup 
TCP acceptor for listening to the incoming HTTP requests: bind: Cannot 
assign requested address [system:99]    kea-ctrl-agent    840831
2024-04-11 12:26:29    2024-04-11 12:26:29    3    6 server1    
2024-04-11 12:26:29.091 FATAL 
[kea-ctrl-agent.dctl/840831.139709242502656] DCTL_CONFIG_FILE_LOAD_FAIL 
Control-agent reason: unable to setup TCP acceptor for listening to the 
incoming HTTP requests: bind: Cannot assign requested address 
[system:99]    kea-ctrl-agent 840831
2024-04-11 12:26:29    2024-04-11 12:26:29    3    6 server1    Service 
failed: Could Not load configuration file: unable to setup TCP acceptor 
for listening to the incoming HTTP requests: bind: Cannot assign 
requested address [system:99] kea-ctrl-agent    840831
2024-04-11 12:28:55    2024-04-11 12:28:55    3    6 server1    
2024-04-11 12:28:55.893 INFO 
[kea-ctrl-agent.dctl/841014.140210931731968] DCTL_STARTING Control-agent 
starting, pid: 841014, version: 2.4.0 (stable) kea-ctrl-agent    841014
2024-04-11 12:28:55    2024-04-11 12:28:55    16    3 server1    ERROR 
[kea-ctrl-agent.dctl.140210931731968] DCTL_PARSER_FAIL : unable to setup 
TCP acceptor for listening to the incoming HTTP requests: bind: Cannot 
assign requested address [system:99]    kea-ctrl-agent    841014
2024-04-11 12:28:55    2024-04-11 12:28:55    3    6 server1    
2024-04-11 12:28:55.895 FATAL 
[kea-ctrl-agent.dctl/841014.140210931731968] DCTL_CONFIG_FILE_LOAD_FAIL 
Control-agent reason: unable to setup TCP acceptor for listening to the 
incoming HTTP requests: bind: Cannot assign requested address 
[system:99]    kea-ctrl-agent 841014
2024-04-11 12:28:55    2024-04-11 12:28:55    3    6 server1    Service 
failed: Could Not load configuration file: unable to setup TCP acceptor 
for listening to the incoming HTTP requests: bind: Cannot assign 
requested address [system:99] kea-ctrl-agent    841014
2024-04-11 12:29:08    2024-04-11 12:29:08    3    6 server1    
2024-04-11 12:29:08.706 INFO 
[kea-ctrl-agent.dctl/841029.139739550449152] DCTL_STARTING Control-agent 
starting, pid: 841029, version: 2.4.0 (stable) kea-ctrl-agent    841029
2024-04-11 12:29:08    2024-04-11 12:29:08    16    3 server1    ERROR 
[kea-ctrl-agent.dctl.139739550449152] DCTL_PARSER_FAIL : unable to setup 
TCP acceptor for listening to the incoming HTTP requests: bind: Cannot 
assign requested address [system:99]    kea-ctrl-agent    841029
2024-04-11 12:29:08    2024-04-11 12:29:08    3    6 server1    
2024-04-11 12:29:08.708 FATAL 
[kea-ctrl-agent.dctl/841029.139739550449152] DCTL_CONFIG_FILE_LOAD_FAIL 
Control-agent reason: unable to setup TCP acceptor for listening to the 
incoming HTTP requests: bind: Cannot assign requested address 
[system:99]    kea-ctrl-agent 841029
2024-04-11 12:29:08    2024-04-11 12:29:08    3    6 server1    Service 
failed: Could Not load configuration file: unable to setup TCP acceptor 
for listening to the incoming HTTP requests: bind: Cannot assign 
requested address [system:99] kea-ctrl-agent    841029
2024-04-11 12:29:38    2024-04-11 12:29:38    3    6 server1    
2024-04-11 12:29:38.806 INFO 
[kea-ctrl-agent.dctl/841082.139974102445568] DCTL_STARTING Control-agent 
starting, pid: 841082, version: 2.4.0 (stable) kea-ctrl-agent    841082
2024-04-11 13:06:55    2024-04-11 13:06:55    3    6 server3    
2024-04-11 13:06:55.085 INFO [kea-dhcp4.dhcp4/1650403.139635850383744] 
DHCP4_STARTING Kea DHCPv4 server version 2.4.0 (stable) starting    
kea-dhcp4 1650403
2024-04-11 13:07:25    2024-04-11 13:07:25    3    6 server1    
2024-04-11 13:07:25.245 INFO [kea-dhcp4.dhcp4/845781.140527526515072] 
DHCP4_STARTING Kea DHCPv4 server version 2.4.0 (stable) starting    
kea-dhcp4 845781
2024-04-11 13:46:12    2024-04-11 13:46:12    3  

Re: [Kea-users] Kea-dhcp4-server service failed after debian update

2024-04-16 Thread Peter Davies

Hi Fabio,
  If you are building Kea from source, you will need to rebuild the 
binaries if any dependencies are updated.


Kind Regards Peter

On 16/04/2024 13.24, Fabio Snozzi wrote:


Hi Peter

We use:

2.4.1-git

tarball

linked with:

log4cplus 2.0.8

OpenSSL 3.0.11 19 Sep 2023

database:

Memfile backend 3.0

On Debian Bookworm

Best

Fabio

-

Fabio Snozzi
University of Zurich
Department of Molecular Life Sciences
Department of Quantitative Biomedicine
Winterthurerstrasse 190
CH-8057 Zurich
Switzerland

IT Services
Office Y32-F-01
Phone +41 44 6354812

fabio.sno...@mls.uzh.ch 

*From:*Kea-users  *On Behalf Of 
*Peter Davies

*Sent:* Dienstag, 16. April 2024 13:15
*To:* kea-users@lists.isc.org
*Subject:* Re: [Kea-users] Kea-dhcp4-server service failed after 
debian update


Hi Fabio,

   What version of Kea are you running?

kea-dhcp4 -W

/Peter

On 15/04/2024 08.31, Fabio Snozzi wrote:

Hello

since about 2 months we have the problem, that as soon as we
update our system with one of the following packages, the
kea-dhcp4-server service failes to start.

bsdutils amd64 1:2.38.1-5+deb12u1

libmariadb3 amd64 1:10.11.6-0+deb12u1

error in log:

/usr/sbin/kea-dhcp4: undefined symbol:
_ZN3isc4dhcp13MySqlLeaseMgr12getDBVersionB5cxx11Ev (demangeled =>
misc::dhcp::MySqlLeaseMgr::getDBVersion[abi:cxx11]() )

Best

Fabio

-

Fabio Snozzi
University of Zurich
Department of Molecular Life Sciences
Department of Quantitative Biomedicine
Winterthurerstrasse 190
CH-8057 Zurich
Switzerland

IT Services
Office Y32-F-01
Phone +41 44 6354812

fabio.sno...@mls.uzh.ch 



--
Peter Davies
Support Engineer
Internet Systems Corporation


--
Peter Davies
Support Engineer
Internet Systems Corporation
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] migrating from DHCPd to Kea

2024-04-16 Thread Peter Davies

Hi Brendan,
   Kea will not be able to grant leases if it cannot contact its lease 
database.

Your configuration file and logging would be helpful.

Also, setting  the "authoritative" to true will force Kea to always 
reject INIT-REBOOT requests from unknown clients

/Peter

On 16/04/2024 18.16, Brendan Kearney wrote:


list members,

i am trying to migrate to Kea and have 2 HA+MT instances stood up.  
when i start relaying dhcp requests to Kea, i get bunch of failed 
attempts to obtain leases on the clients, which i believe is due to 
the clients not having active leases from Kea.  i am wondering if 
there is a means to have the clients get new assigned leases without 
having to jump through hoops like reboots.


as an aside, i also find the below error in my logs, which seems to 
indicate a malformed database query.


ERROR [kea-dhcp4.database.139901550986944] DATABASE_MYSQL_FATAL_ERROR 
Unrecoverable MySQL error occurred: unable to execute for address, hwaddr, client_id, valid_lifetime, expire, subnet_id, 
fqdn_fwd, fqdn_rev, hostname, state, user_context, relay_id, 
remote_id, pool_id FROM lease4 WHERE client_id = ?>, reason: Lost 
connection to server during query (error code: 2013).


the select, if pasted into any mariadb client, fails since the "?" is 
not proper syntax.  i dont know if the behavior i am seeing with the 
clients not getting new leases and the database error above are 
related or if there are a couple of issues to be worked through.


what info should i provide, to understand where i have issues to 
address?  i am running Kea 2.4.0 on fedora 38.


thanks in advance,

brendan


--
Peter Davies
Support Engineer
Internet Systems Corporation
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


[Kea-users] migrating from DHCPd to Kea

2024-04-16 Thread Brendan Kearney

list members,

i am trying to migrate to Kea and have 2 HA+MT instances stood up.  when 
i start relaying dhcp requests to Kea, i get bunch of failed attempts to 
obtain leases on the clients, which i believe is due to the clients not 
having active leases from Kea.  i am wondering if there is a means to 
have the clients get new assigned leases without having to jump through 
hoops like reboots.


as an aside, i also find the below error in my logs, which seems to 
indicate a malformed database query.


ERROR [kea-dhcp4.database.139901550986944] DATABASE_MYSQL_FATAL_ERROR 
Unrecoverable MySQL error occurred: unable to execute for address, hwaddr, client_id, valid_lifetime, expire, subnet_id, fqdn_fwd, 
fqdn_rev, hostname, state, user_context, relay_id, remote_id, pool_id 
FROM lease4 WHERE client_id = ?>, reason: Lost connection to server 
during query (error code: 2013).


the select, if pasted into any mariadb client, fails since the "?" is 
not proper syntax.  i dont know if the behavior i am seeing with the 
clients not getting new leases and the database error above are related 
or if there are a couple of issues to be worked through.


what info should i provide, to understand where i have issues to 
address?  i am running Kea 2.4.0 on fedora 38.


thanks in advance,

brendan
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] Kea-dhcp4-server service failed after debian update

2024-04-16 Thread Fabio Snozzi
Hi Peter

We use:
2.4.1-git
tarball
linked with:
log4cplus 2.0.8
OpenSSL 3.0.11 19 Sep 2023
database:
Memfile backend 3.0
On Debian Bookworm

Best

Fabio

-

Fabio Snozzi
University of Zurich
Department of Molecular Life Sciences
Department of Quantitative Biomedicine
Winterthurerstrasse 190
CH-8057 Zurich
Switzerland

IT Services
Office Y32-F-01
Phone +41 44 6354812
fabio.sno...@mls.uzh.ch

From: Kea-users  On Behalf Of Peter Davies
Sent: Dienstag, 16. April 2024 13:15
To: kea-users@lists.isc.org
Subject: Re: [Kea-users] Kea-dhcp4-server service failed after debian update


Hi Fabio,

   What version of Kea are you running?

kea-dhcp4 -W

/Peter
On 15/04/2024 08.31, Fabio Snozzi wrote:
Hello


since about 2 months we have the problem, that as soon as we update our system 
with one of the following packages, the kea-dhcp4-server service failes to 
start.

bsdutils amd64 1:2.38.1-5+deb12u1

libmariadb3 amd64 1:10.11.6-0+deb12u1

error in log:

/usr/sbin/kea-dhcp4: undefined symbol: 
_ZN3isc4dhcp13MySqlLeaseMgr12getDBVersionB5cxx11Ev (demangeled => 
misc::dhcp::MySqlLeaseMgr::getDBVersion[abi:cxx11]() )

Best

Fabio

-

Fabio Snozzi
University of Zurich
Department of Molecular Life Sciences
Department of Quantitative Biomedicine
Winterthurerstrasse 190
CH-8057 Zurich
Switzerland

IT Services
Office Y32-F-01
Phone +41 44 6354812
fabio.sno...@mls.uzh.ch




--

Peter Davies

Support Engineer

Internet Systems Corporation
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] Kea-dhcp4-server service failed after debian update

2024-04-16 Thread Peter Davies

Hi Fabio,

   What version of Kea are you running?

kea-dhcp4 -W

/Peter

On 15/04/2024 08.31, Fabio Snozzi wrote:


Hello

since about 2 months we have the problem, that as soon as we update 
our system with one of the following packages, the kea-dhcp4-server 
service failes to start.


bsdutils amd64 1:2.38.1-5+deb12u1

libmariadb3 amd64 1:10.11.6-0+deb12u1

error in log:

/usr/sbin/kea-dhcp4: undefined symbol: 
_ZN3isc4dhcp13MySqlLeaseMgr12getDBVersionB5cxx11Ev (demangeled => 
misc::dhcp::MySqlLeaseMgr::getDBVersion[abi:cxx11]() )


Best

Fabio

-

Fabio Snozzi
University of Zurich
Department of Molecular Life Sciences
Department of Quantitative Biomedicine
Winterthurerstrasse 190
CH-8057 Zurich
Switzerland

IT Services
Office Y32-F-01
Phone +41 44 6354812

fabio.sno...@mls.uzh.ch 



--
Peter Davies
Support Engineer
Internet Systems Corporation
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users