Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 672551

Summary: DHCPv6 server creates a lease file that it cannot parse
Product: Red Hat Enterprise Linux 6 Reporter: Joseph Kachuck <jkachuck>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: mganisin, ovasik, tcapek
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dhcp-4.1.1-16.P1.el6 Doc Type: Bug Fix
Doc Text:
Previously, the dhcpd service with IPv6 support sometimes created a lease file that it was unable to parse. Consequently, once the service was restarted, it went into a loop and could not start. This bug has been fixed and now the service is able to properly parse all lease files it generates.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:05:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 684385    
Attachments:
Description Flags
dhcp-4.1.1-parsing-fixes.patch
none
dhclient-4.1.1-17.P1.el6.x86_64.rpm
none
dhcp-4.1.1-17.P1.el6.x86_64.rpm none

Description Joseph Kachuck 2011-01-25 15:21:40 UTC
Created attachment 475182 [details]
dhcp-4.1.1-parsing-fixes.patch

---Problem Description---
When testing IPv6 DHCP server, certain test cases cause the server to generate
a DHCP leases file with incorrect syntax. The next time the DHCP server
restarts, it is unable to parse this leases file and goes into an infinite
loop. Here is a sample of the output:

[root@athena3-nut7 ~]# dhcpd -6 -cf /tmp/tahi/dhcpd/dhcpd6.conf -lf
/tmp/tahi/dhcpd/dhcpd6.leases -pf /tmp/tahi/dhcpd/dhcpd6.pid eth0
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not
specified in the config file
/tmp/tahi/dhcpd/dhcpd6.leases line 33: semicolon expected.
}
^
/tmp/tahi/dhcpd/dhcpd6.leases line 34: corrupt lease file; expecting ia_na
contents, got '

'

^

The second of these error messages is then repeated in an infinite loop, and
the DHCP server is never able to start.

I downloaded the source code for DHCP 4.1.2 from
http://www.isc.org/software/dhcp and found that this problem had already been
fixed. I ported the appropriate patches back to 4.1.1-P1 and rebuilt the rpm.
After re-running the tests, we no longer encounter the above errors.

---uname output---
Linux athena3-nut7.linuxperf9025.net 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1
01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Machine Type = KVM guest on a x3950m2 RHEL6 host

---Steps to Reproduce---
Install the Tahi IPv6-conformance test suite and the DHCPv6 package.
- http://www.tahi.org/
- http://www.tahi.org/logo/dhcpv6/

Install RHEL6 on the node-under-test.

Run the dhcpv6.p2 server tests.

I have a KVM setup where I can demonstrate this test in more detail if there
are any questions or issues with the proposed patch.

---Network Component Data---
Userspace tool common name: dhcp

Userspace rpm: dhcp-4.1.1-12.P1.el6.x86_64

Comment 6 Joseph Kachuck 2011-03-15 17:36:30 UTC
=== In Red Hat Customer Portal Case 00410827 ===
--- Comment by IBM bug, proxy on 3/15/2011 1:13 PM ---

------- Comment From kevcorry.com 2011-03-15 13:03 EDT-------
I will test out the new dhcp packages in the next day or two and post the results.

Comment 7 IBM Bug Proxy 2011-03-26 17:25:34 UTC
------- Comment From prem.karat.ibm.com 2011-02-23 05:42 EDT-------
(In reply to comment #6)
> Hello,
> I have sent this up for engineering to review.
>
> Thank You
> Joe Kachuck

Hi Joe

Can you confirm if this is accepted?

Cheers,
Prem

Comment 8 IBM Bug Proxy 2011-03-26 17:25:40 UTC
Created attachment 487922 [details]
dhclient-4.1.1-17.P1.el6.x86_64.rpm

Comment 9 IBM Bug Proxy 2011-03-26 17:25:49 UTC
Created attachment 487923 [details]
dhcp-4.1.1-17.P1.el6.x86_64.rpm

Comment 10 IBM Bug Proxy 2011-03-28 16:45:44 UTC
------- Comment From kevcorry.com 2011-03-28 12:32 EDT-------
I reran the DHCP tests using the new RPMs, and the parsing errors in the leases file no longer occur.

Comment 11 IBM Bug Proxy 2011-05-09 16:40:47 UTC
------- Comment From kevcorry.com 2011-05-09 12:33 EDT-------
I verified this fix in RHEL 6.1 rc1.

Comment 12 Tomas Capek 2011-05-10 14:24:33 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, the dhcpd service with IPv6 support sometimes created a lease file that it was unable to parse. Consequently, once the service was restarted, it went into a loop and could not start. This bug has been fixed and now the service is able to properly parse all lease files it generates.

Comment 13 errata-xmlrpc 2011-05-19 14:05:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0697.html