RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1053431 - dhcpd6.leases: file is too long to buffer
Summary: dhcpd6.leases: file is too long to buffer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: dhcp
Version: 6.5
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Jiri Popelka
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-15 08:57 UTC by Michal Žejdl
Modified: 2014-10-14 04:31 UTC (History)
3 users (show)

Fixed In Version: dhcp-4.1.1-39.P1.el6
Doc Type: Bug Fix
Doc Text:
Cause: When (IPv6 version of) dhcpd serves too many requests. Consequence: The leases file grows until it has many GB in size and dhcpd then refuses to restart with a message saying that 'file is too long to buffer'. Fix: Patch from upstream was back-ported. Result: dhcpd (for IPv6) rotates the leases file, so it can't grow so big.
Clone Of:
Environment:
Last Closed: 2014-10-14 04:31:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
possible patch (3.86 KB, patch)
2014-01-16 16:39 UTC, Jaromír Končický
no flags Details | Diff
Proposed patch (3.89 KB, patch)
2014-01-21 09:27 UTC, Jaromír Končický
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
CentOS 0006902 0 None None None Never
Red Hat Product Errata RHBA-2014:1406 0 normal SHIPPED_LIVE dhcp bug fix update 2014-10-14 00:54:57 UTC

Internal Links: 1607639 1623792 1623794

Description Michal Žejdl 2014-01-15 08:57:49 UTC
Description of problem:

With buggy clients (200 renews per second) dhcpd6.leases grow fast to GB size and dhcpd refuses to restart. Mine was 2.4 GB. Today another ended at 2.7 GB.

dhcpd: /var/lib/dhcpd/dhcpd6.leases: file is too long to buffer.

Smaller leases file (388 MB) is parsed and shrinked.



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

dhcp-4.1.1-38.P1.el6.centos.x86_64



How reproducible:

always



Actual results:

dhcpd: /var/lib/dhcpd/dhcpd6.leases: file is too long to buffer.



Expected results:

normal dhcpd start



Additional info:

They say that the bug was fixed in 4.2.4.

https://lists.isc.org/pipermail/dhcp-users/2013-November/017365.html

It would be nice to get to the ISC DHCP 4.3.0a1 (v6 uplift) for better RFC support. I'm waiting for ddns-update-style standard and primary6 in DDNS zone scope too.

Comment 2 Jaromír Končický 2014-01-16 16:39:10 UTC
Created attachment 851160 [details]
possible patch

I looked into changelog and found this might be what we are looking for:

			Changes since 4.2.4rc1

- Rotate the lease file when running in v6 mode.
  Thanks to Christoph Moench-Tegeder at Astaro for the
  report and the first version of the patch.
  [ISC-Bugs #24887]

I isolated the changes between 4.2.4rc1 and 4.2.4rc2 and this patch seems it shall handle it.
I will try to apply it on the RHEL version and see whether it fixes it.

Comment 3 Jaromír Končický 2014-01-21 09:27:51 UTC
Created attachment 853055 [details]
Proposed patch

Here is slightly adjusted version of the patch, made to be applicable on dhcp-4.1.1.

Comment 4 Michal Žejdl 2014-01-24 05:38:35 UTC
Tested with the patch. Works for me. Thanks.

Comment 9 errata-xmlrpc 2014-10-14 04:31:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1406.html


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