Hide Forgot
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
=== 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 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
Created attachment 487922 [details] dhclient-4.1.1-17.P1.el6.x86_64.rpm
Created attachment 487923 [details] dhcp-4.1.1-17.P1.el6.x86_64.rpm
------- 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 From kevcorry.com 2011-05-09 12:33 EDT------- I verified this fix in RHEL 6.1 rc1.
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.
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