Bug 144250 - dhcp fails to hand out leases and complains with errors on boot
Summary: dhcp fails to hand out leases and complains with errors on boot
Status: CLOSED DUPLICATE of bug 144358
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp   
(Show other bugs)
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact:
: 144481 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2005-01-05 12:18 UTC by Reuben Farrelly
Modified: 2007-11-30 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 19:07:50 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Reuben Farrelly 2005-01-05 12:18:25 UTC
Description of problem:  After updating to last nights new DHCP (-16), I'm now
seeing these messages logged on boot:

Jan  6 00:58:33 tornado dhcpd: Lease with bogus binding state: 257
Jan  6 00:58:33 tornado last message repeated 4 times

and while running:

Jan  6 00:58:50 tornado dhcpd: DHCPREQUEST for from
00:90:27:23:ee:12 via eth0: unknown lease
Jan  6 01:01:53 tornado last message repeated 3 times
Jan  6 01:02:04 tornado last message repeated 2 times
Jan  6 01:02:23 tornado dhcpd: DHCPDISCOVER from 00:06:5b:d7:03:d7 via eth0:
network no free leases
Jan  6 01:03:28 tornado last message repeated 4 times

This is an error.  There are plenty of free leases...

Version-Release number of selected component (if applicable):  3.0.1-16

How reproducible: very.  The problem persists over removing the dhcp.leases file
and restarting.

I downgraded to 3.0.1-11 and everything worked OK again.

Comment 1 Jason Vas Dias 2005-01-05 14:34:03 UTC
 Did you install the binary FC4/rawhide dhcp-3.0.1-16 package on an 
 FC3 system ?
 If so, this is not likely to work, as the gcc and glibc version
 dhcp was built with on FC4 are not in FC3 - doing a :
  # rpmbuild --rebuild dhcp-3.0.1-16.src.rpm 
 and then installing the packages produced in 
 should work, but you have to change the compiler to gcc33 -
 (see bug #139299) 
 gcc or gcc4 on FC3 won't work, as the 'binding_state_t' variables
 are not made into byte values as in FC4 / gcc33 - it sounds like 
 you already built with gcc/gcc4 and the binding_state_t variables
 get an invalid byte value of 257 .
 You can download dhcp-3.0.1-16 built for i386/FC3 (and the 
 dhcp-3.0.1-16.src.rpm that uses gcc33) from:
 Please try this version and let me know if you still have a problem.
 I've tested it on i386/FC3 with no problems.
 I'll be pushing this into FC3 updates, but this takes some time.
 By the way, the server lease database is:
    not           dhcp.leases
 did you try removing the real leases file and restarting ?

Comment 2 Reuben Farrelly 2005-01-05 20:53:01 UTC
Yes, this is on a system running latest devel/rawhide.  I made a typo
with dhcpd.leases, I deleted both files after stopping dhcpd.

I only reverted to -11 from FC3 as this was the only one I could get
my hands on other than the latest version ;-)

Comment 3 Jason Vas Dias 2005-01-05 21:10:29 UTC
What architecture is this system ? not i386 ?

There could be a problem with the GCC on our build servers.
The message : 
Jan  6 00:58:33 tornado dhcpd: Lease with bogus binding state: 257
indicates that the binding_state_t variables have a size > 1 
(a known gcc issue).

Comment 4 Reuben Farrelly 2005-01-05 21:16:12 UTC
It's a P4/i386...

Comment 5 Jason Vas Dias 2005-01-06 15:05:43 UTC
This problem is caused by gcc bug #144358 .

Until the default 'gcc' compiler is fixed, DHCP must be compiled
with gcc33 from the compat-gcc-8- package.

I've submitted dhcp-3.0.1-17 to FC4/rawhide that is compiled with
gcc33, which should be available in the next rawhide release.

*** This bug has been marked as a duplicate of 144358 ***

Comment 6 Jason Vas Dias 2005-01-07 16:33:37 UTC
*** Bug 144481 has been marked as a duplicate of this bug. ***

Comment 7 Red Hat Bugzilla 2006-02-21 19:07:50 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.