Bug 437949
| Summary: | [PATCH]: DHCPV6C should allow passing arguments to DHCPV6C | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Pekka Savola <pekkas> | ||||
| Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.1 | CC: | harald, mvadkert, notting | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-09-02 11:14:15 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: | |||||||
| Attachments: |
|
||||||
Created attachment 298385 [details]
dhcpv6c allow passing arguments, fix the code in other ways
Yeah, the pid stuff is ugly, but no less broken than before. Added to HEAD, looks reasonable for RHEL 5.x. http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=f0003e3a245686929791b50896b2a4b22ff689a9 Please test the erratum candidate: http://people.redhat.com/harald/downloads/initscripts/initscripts-8.45.26.1.el5/ Sorry for delay in responding. Unfortunately right now I don't have access to a network where I could test this for sure. But go ahead for all of me :-) 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-2009-1344.html |
Description of problem: The current initscripts framework does not allow passing DHCPv6 client arguments. There is need to pass especially '-I' argument, which makes the client ask for network information only (e.g. DNS and NTP options), not try to configure addresses using DHCPv6. This option is needed in environments where address assignment is done using manual or stateless address autoconfiguration yet DNS information is provided (in a stateless manner, see RFC3736) to client hosts. Version-Release number of selected component (if applicable): 5.1. How reproducible: grep dhcp6c /etc/sysconfig/network-scripts/ifup-eth Steps to Reproduce: 1. grep dhcp6c /etc/sysconfig/network-scripts/ifup-eth 2. 3. Additional info: Patch is provided that adds DHCPV6C_OPTIONS that allows passing the argument. This would be great to have in RHEL 5.2 but may be too late. This problem also affects Fedora 8. The patch also makes two other changes: - it removes two unnecessary ';'s from the end of lines (cleanup) - saves the PID number only if there was any output. In case dhcp6c crashes when it's starting (and ${dhcp6_pid[0]} ends up being empty) there will be error messages when in ifdown the code tries to use the empty pid file to kill a process. NB: it might be better idea to change the ps matching to something like "/bin/grep "dhcp6c.* ${DEVICE}" so that if the arguments get changed, the matching still works. I didn't do this because the existing mechanism is already somewhat brittle (e.g., if you disable dhcpv6 and take interface down, the dhcpv6 client is not killed).