<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 06/16/2010 03:35 AM, Dorsey, Chris wrote:
<blockquote
 cite="mid:15FE8F4A14239D43ADEFE04892CE6423012CDF56F221@NSPEXMBX-D.the-lab.llnl.gov"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="WordSection1">
  <p class="MsoNormal">A while ago I turned on ‘db-time-format local’
to get the ‘# Tue Jun 15 18:07:38 2010’ type comments in myhost
dhcpd.leases.  The problem is that myhost dhcpd restarts cause tens of
thousands of lines like:<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">/var/myhost dhcpd/etc/myhost dhcpd.leases line
75620:
semicolon expected.<o:p></o:p></p>
  <p class="MsoNormal">  atsfp <o:p></o:p></p>
  <p class="MsoNormal">   ^<o:p></o:p></p>
  <p class="MsoNormal">/var/myhost dhcpd/etc/myhost dhcpd.leases line
75627:
semicolon expected.<o:p></o:p></p>
  <p class="MsoNormal">  tstp <o:p></o:p></p>
  <p class="MsoNormal">   ^<o:p></o:p></p>
  <p class="MsoNormal">/var/myhost dhcpd/etc/myhost dhcpd.leases line
75629:
semicolon expected.<o:p></o:p></p>
  <p class="MsoNormal">  atsfp <o:p></o:p></p>
  <p class="MsoNormal">   ^<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">and causes myhost dhcpd a while to restart. 
Seems like a
bug with myhost dhcpd parsing itw own time comments.  I reverted back
to ‘db-time-format
local’ and after the second restart (to clear up the file after
writing)
all seems well again.  Is this a known bug or an issue on my end?  I’ve
seen
this in at least (2) different versions of 4 including 4.1.1 running on
Redhat
5 (2.6.18-164.9.1.el5) using failover.<o:p></o:p></p>
  </div>
</blockquote>
Hi,<br>
<br>
Couple days ago I submitted to <a class="moz-txt-link-abbreviated" href="mailto:dhcp-bugs@isc.org">dhcp-bugs@isc.org</a> a patch for this
problem with this comment:<br>
"   Since 4.0.0 common/parse.c::parse_date()
<br>
has been renamed to parse_date_core()
<br>
and new parse_date() function has been created
<br>
as a wrapper around parse_date_core()
<br>
to consume the semicolon after the date.
<br>
However parse_date_core() has not been properly
<br>
updated and still tries to consume semicolon on it's own
<br>
with parse_semi() or skip_to_semi().  
"<br>
<br>
The ticket has been assigned an ID of [ISC-Bugs #21501].<br>
<br>
I'm attaching the patch also here for the case that you are interested.
<br>
<br>
Jiri Popelka
<br>
Red Hat, inc.
<br>
<br>
<br>
<blockquote
 cite="mid:15FE8F4A14239D43ADEFE04892CE6423012CDF56F221@NSPEXMBX-D.the-lab.llnl.gov"
 type="cite">
  <div class="WordSection1">
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">Also, I noticed once the other day and twice
today that myhost
dhcpd failed to restart on the failover server, but the primary
restarted fine. 
In both cases, I see the following ‘Lease with binding state free not
on
its queue’ message in the /var/log/boot.log:<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41 myhost dhcpd: Wrote 0 class
decls to leases
file.<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Wrote 0 deleted
host decls to
leases file.<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Wrote 0 new
dynamic host
decls to leases file.<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Wrote 575 leases
to leases
file.<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Listening on
LPF/eth0/00:17:a4:aa:46:80/10.10.41.0/24<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Sending on  
LPF/eth0/00:17:a4:aa:46:80/10.10.41.0/24<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Sending on  
Socket/fallback/fallback-net<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: failover peer
dhcp-yellow: I
move from recover to startup<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: data: hardware:
raw packet
not available<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: data: packet: raw
packet not
available<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: failover peer
dhcp-yellow: I
move from startup to recover<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: failover peer
dhcp-yellow: peer
moves from unknown-state to communications-interrupted<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Sent update
request all
message to dhcp-yellow<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: failover peer
dhcp-yellow:
peer moves from communications-interrupted to partner-down<o:p></o:p></p>
  <p class="MsoNormal">Jun 15 17:05:41  myhost dhcpd: Lease with
binding state free
not on its queue.<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">From the list archives, it seems this might have
been
patched in 4.1.0 according to the release notes, but it still seems
like a major
issue (failover server down).<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">Thanks in advance for any help,<o:p></o:p></p>
  <p class="MsoNormal">Chris<o:p></o:p></p>
  </div>
</blockquote>
<br>
</body>
</html>