[pkg-dhcp-devel] Bug#627798: isc-dhcp-server: Corrupt lease file with IPv6

Bernhard Schmidt berni at birkenwald.de
Tue May 24 16:22:48 UTC 2011


Package: isc-dhcp-server
Version: 4.1.1-P1-15+squeeze2
Severity: important
Tags: ipv6

Only important since you don't supply an DHCPv6 server configuration out of the box anyway.

A stateful and stateless DHCPv6 server in a large environment frequently 
fails on restart/reboot with the following error message:

May 24 07:39:04 ping dhcpd: /var/lib/dhcp/dhcp6.leases line 496434: corrupt lease file; expecting ia_na contents, got '  '
May 24 07:39:04 ping dhcpd: 
May 24 07:39:04 ping dhcpd: ^

It is always the last line in the leases file, removing this or the last
few entries in the leases file does not help. Only fully removing all
leases fixes it

The problem is particularly bad since the dhcpd spews this error message
into syslog several hundred times per second. This has already led to /var
being full twice.

I'm fairly certain this problem is fixed upstream in 4.1-ESV-R2 and 
4.2.1-P2.  I have locally refreshed my Debian package to 4.1-ESV-R2 and
have not seen such a problem since. It could be one of those fixed issues
from the release notes.

			Changes since 4.1.2b1

- Update the code to parse dhcpv6 lease files to accept a semi-colon at
  the end of the max-life and preferred-life clauses.  In order to be
  backwards compatible with older lease files not finding a semi-colon
  is also accepted.  [ISC-Bugs #22303].

			Changes since 4.1-ESV

! When processing a request in the DHCPv6 server code that specifies
  an address that is tagged as abandoned (meaning we received a
  decline request for it previously) don't attempt to move it from
  the inactive to active pool as doing so can result in the server
  crshing on an assert failure.  Also retag the lease as active
  and reset it's timeout value.
  [ISC-Bugs #21921]


-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-server depends on:
ii  debconf [debconf-2. 1.5.36.1             Debian configuration management sy
ii  debianutils         3.4                  Miscellaneous utilities specific t
ii  isc-dhcp-common     4.1.1-P1-15+squeeze2 common files used by all the isc-d
ii  libc6               2.11.2-10            Embedded GNU C Library: Shared lib
ii  lsb-base            3.2-23.2squeeze1     Linux Standard Base 3.2 init scrip

isc-dhcp-server recommends no packages.

Versions of packages isc-dhcp-server suggests:
pn  isc-dhcp-server-ldap          <none>     (no description available)

-- Configuration Files:
/etc/dhcp/dhcpd.conf changed [not included]

-- debconf information excluded





More information about the pkg-dhcp-devel mailing list