Bug 1263466
| Summary: | DHCPv6 + SLAAC fails; Can't bind to dhcp address: Cannot assign requested address | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Amy Farley <afarley> |
| Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.7 | CC: | ilmostro7, jikortus, mganisin, praiskup |
| Target Milestone: | rc | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | dhcp-4.1.1-50.P1.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause
Sometimes when DHCPv6 client is started in stateless mode (i.e. with '-6 -S' command line options) on network interface which is not fully "up".
Consequence
dhclient fails to run, because network interface does not have link-local address yet, which is needed for DHCPv6 client.
Fix
A wait loop was added into dhclient-script.
Result
dhclient doesn't fail due to missing link-local address.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-10 20:52:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Amy Farley
2015-09-15 20:53:01 UTC
Thanks for narrowing that problem down to the exact change (Patch55). I have an idea what's going on here. It seems to be bug #1130804, but this time for stateless DHCPv6 client. We fixed bug #1130804 by putting [1] a sleep-loop into dhclient-script, which ensures that the link-local address is ready (not in tentative state). That's been necessary after fixing bug #1001742 with Patch55, because that patch makes dhclient (v6) bind to the specified interface (its link-local address) instead of all interfaces. Problem is that the stateless (v6) dhclient doesn't AFAIK run dhclient-script, so the fix for bug #1130804 has actually fixed only stateful v6 dhclient. Not sure what can be done to fix it also for stateless v6 dhclient (since it doesn't run dhclient-script), but I'll try to find something. [1] http://pkgs.devel.redhat.com/cgit/rpms/dhcp/commit/?h=rhel-6.7&id=77cbac5a334ef0e56f4baa864a590ea174cfc003 Quick & dirty work-around could be to put a 'sleep 3' into
/etc/sysconfig/network-scripts/ifup-eth
before the
if /sbin/dhclient -6 -1 ${DHCPV6C_OPTIONS} ...
line (approx. 307)
Fixed upstream (Fedora) with: http://pkgs.fedoraproject.org/cgit/dhcp.git/commit/?id=59c88cb2ffee720ed251e267c1deec615872d9c2 Customer was unable to update in bz, this is his response to the case: Hi, My logins don't allow me to log in to comment on the bug directly, so I'll have to responds to Jiri's comments here: >> It seems to be bug #1130804, but this time for stateless DHCPv6 client. That's exactly what I have found. I thought the fix to #1130804 was the fix for my problem, and went to upgrade but found that I already had that fix. >> Problem is that the stateless (v6) dhclient doesn't AFAIK run dhclient-script, so the fix for bug #1130804 has actually fixed only stateful v6 dhclient. Correct. Setting stateless diverts the code path and thus does not hit the code which uses dhclient-script. >> Quick & dirty work-around could be to put a 'sleep 3' into /etc/sysconfig/network-scripts/ifup-eth A "sleep 3" works, but it's a very difficult workaround for us due to legal/security concerns and the resulting processes on our end. We really need the fix in an RH released RPM. There are testing packages (el6, x86_64) with the fix included: https://jpopelka.fedorapeople.org/dhcp/bz1263466 Anybody, feel free to provide feedback. 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. https://rhn.redhat.com/errata/RHEA-2016-0803.html |