dhcpleasequery problems - 4.2.2

scott_stone at trendmicro.com scott_stone at trendmicro.com
Tue Oct 18 00:23:17 UTC 2011


Maybe a dumb question - is your system time set correctly?  Make sure NTP is running/etc if not.  Make sure both members of your failover are synced to NTP as well.. I could see how an incorrect clock/too-great clock skew between the peers could cause an error like this, based on the line 492 contents.

====================
Scott Stone <scott_stone at trendmicro.com>
Manager, DCS-RD
Trend Micro, Inc. http://www.trendmicro.com


-----Original Message-----
From: dhcp-users-bounces+scott_stone=trendmicro.com at lists.isc.org [mailto:dhcp-users-bounces+scott_stone=trendmicro.com at lists.isc.org] On Behalf Of Shawn Routhier
Sent: Tuesday, October 18, 2011 6:20 AM
To: Users of ISC DHCP
Subject: Re: dhcpleasequery problems - 4.2.2


On Oct 17, 2011, at 12:10 PM, Jack Kielsmeier wrote:

> Hello,
> 
> We are running ISC DHCP 4.2.2 in a redundant fashion (failover peer) in
> Solaris 11 zones (compiled from source).
> 
> Recently, we have determined that we need to make use of the DHCP leasequery
> option. In testing, we notice the following occurring in our logs:
> 
> ------------ LOGS ------------
> 
> Oct 17 13:19:03 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:19:09 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:19:15 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:19:21 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:22:34 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:22:39 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> 
> ------------ END LOGS ------------
> 
I think you want line 492 not 432

> Line 432 looks like this:
> 
> lease_dereference(&lease, MDL);
> 
> 

Line 492 deals with checking the lease ends time against the
current time.  It also appears to have a bug.  I'll have to go look
at the history to figure out what it thinks it's doing.

It appears that you can simply remove the code from 490 to 498
	if (time_expiry < cur_time {
		stuff
	}

But I haven't tested that or verified that the time_expiry isn't
being used in some odd way I don't understand yet.  If you do
test it we would be interested in the results.

> Any assistance with this matter would be greatly appreciated. I do not know
> what else to provide (such as the entire dhcpd.conf file, which is pretty
> long).
> 
> Thank You,
> 
> -
> Jack Kielsmeier
> netINS Systems Administrator
> systems at netins.net
> 



_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.




More information about the dhcp-users mailing list