[Kea-users] Kea LFC not executed anymore after some time (Kea 1.2.0)

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Fri Nov 17 09:41:23 UTC 2017


Hello,


I've observed the issue again.

With a Kea server that does not receive any DHCP packet:
At some point, Kea is still running but LFC is no longer executed.

In Kea log file we don't have "DHCPSRV_MEMFILE_LFC_START" messages anymore.
And the lease files are not modified on disk (they would be if LFC was executed, so this is not just a logging issue).

Kea was started on 2017, November 15th at 16:20:23.
LFC was first executed 10 minutes later, at 16:30:23.
And the last execution of LFC: November 16th, at 16:40:23.
Nothing after that...



Regards,
Nicolas.


> Wait... when I restarted the server, I got logs again... before the shutdown!
> So logging actually still worked. I just didn't have anything being logged.
> 
> 2017-11-15 17:20:45.551 INFO  [kea-dhcp4.dhcp4/29754] DHCP4_SHUTDOWN server shutdown
> 2017-11-15 17:20:47.603 INFO  [kea-dhcp4.dhcp4/28141] DHCP4_STARTING Kea DHCPv4 server version 1.2.0 starting
> 
> 
> The only logs I normally have in Kea logs is LFC execution every 10 minutes:
> 
> 2017-11-16 02:10:47.617 INFO  [kea-dhcp4.dhcpsrv/28141] DHCPSRV_MEMFILE_LFC_START starting Lease File Cleanup
> 2017-11-16 02:10:47.617 INFO  [kea-dhcp4.dhcpsrv/28141] DHCPSRV_MEMFILE_LFC_EXECUTE executing Lease File Cleanup  (...)
> 
> 
> I don't have these logs anymore after some time.
> So... either LFC is no longer executed after a while, or Kea stops writing these log messages ?
> 
> 
> 
> 
> > A few more detail:
> > 
> > 
> > This worked fine before (with the same logrotate configuration), with:
> > - Kea 0.9.1
> > - RHEL 6.4
> > 
> > The issue now appears with:
> > - Kea 1.2.0
> > - RHEL 7.1
> > 
> > 
> > Should I open a ticket for this ? (I'm not sure the problem is with Kea, maybe it's logrotate...)
> > 
> > 
> > 
> > > 
> > > Hello,
> > > 
> > > 
> > > I've set up Kea log rotation with logrotate.
> > > This works for some time, and then it stops working: the new log file stays empty, until the server is restarted.
> > > I'm not sure what's going on... has anyone else had this issue ?
> > > 
> > > I'm using the following options for logrotate:
> > > 
> > >     daily
> > >     rotate 30
> > >     missingok
> > >     nocompress
> > >     copytruncate
> > >     dateext
> > >     extension .log
> > > 
> > > 
> > > I thought "copytruncate" would be good enough, but apparently it is not.
> > > 
> > > Is it possible to send a signal to Kea so that it reopens its log file ?
> > > 
> > > 
> > > Regards,
> > > Nicolas.
> > >
> >
>

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.




More information about the Kea-users mailing list