Bug 675226
Summary: | NetworkManager times out too early when waiting for IPv6 address autoconfiguration on wireless networks | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Neil Horman <nhorman> |
Component: | NetworkManager | Assignee: | Dan Williams <dcbw> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | danw, dcbw, joshua, linville, psimerda, steved, tomek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-17 13:36:47 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: |
Description
Neil Horman
2011-02-04 16:46:11 UTC
This is an issue even without NetworkManager. IPv6 router advertisements should cause the IPv6 stack on the interface to assign itself a non-link-local address... which doesn't happen. Gentoo and Ubuntu, without NM, both do... something not necessarily NM related is broken in Fedora 14 here. Joshua, the cause could be other. RA are not taken into account when sysctl net.ipv6.conf.all.forwarding is set to "1". It often happens when running some virtualisation. For RA to be obeyed with .forwarding=1, you need net.ipv6.conf.INTERFACE.accept_ra set to "2". Please check if it is the case. Sorry, IPv6_AUTOCONF wasn't set to "1" in /etc/sysconfig/network ... my fault Dan, whats going on with this, it seems like it should be pretty easy to fix. This has been a problem for several releases now, moving this to rawhide. I'll file an upstream bug too. I believe many things in NetworkManager IPv6 support should be reconsidered, especially timeouts and disconnections because of various non-fatal timeouts. (In reply to comment #0) > Granted we nominally should send out an RS on link up, > but if that gets lots or is otherwise not responded to, this breaks. That > timeout should be configurable so that it can be set in accordance with the > local router advert daemon. Ew. This is *auto*-configuration. Having to fine-tune it for the exact details of your router kinda ruins the point. The kernel does send out an RS on link up. And if it doesn't get back an answer, it sends out more. So in theory, if you actually do have usable network connectivity, you should get an RA back within a few seconds. > 2) The timeout in question doesn't take DAD time into account. It seems NM > moves its addrconf state for in interface to a completed state only after it > passes duplicate address detection. Yes. The kernel only announces the existence of the address after DAD has completed. (Though we could infer that DAD has started when we get an RTM_NEWPREFIX.) > DAD can last for a configurable length of time Well, the recommended default time is 1 second, so that's probably not a big issue. But yes, we probably should stop the timer before DAD anyway; the timer is so that we don't wait forever on a network that *doesn't* have IPv6; once we get an RA, we know that's not the case. > 1. configure a local radvd daemon to advertize a global prefix, and configure > its minimum advertisement interval to be > 20 seconds radvd's default value for MinRtrAdvInterval is 198 (0.33 * 600), and I have no problem getting an IPv6 address over wifi with that value. I suspect this is a dup of either bug 785772 (which is now fixed in F17) or bug 753482 (which might be fixed by packages in koji linked from there). Please read this more closely, this isn't a dup of 785772. I'm not having problems with the kernel trying to add default routes. Nor am I having problems with periodic loss of IPv6. I'm having an issue with NetworkManager taking down an interface with DAD not completing within the hard coded limit that NetworkManager enforces on it. If a different soilcitation interval is defined on a host, or if more dad probes are configured, its possible for DAD to outlast what NM considers "too" long, and the interface is taken down. See the upstream bug for details. Part of the timer's purpose is to bound the entire process of IPv6 autoconfiguration so that it doesn't continue on forever for some reason. There are more interactions in the process with IPv6 than with IPv4, so we can't just have a timeout on DHCP and call it a day. The problem with stopping the timer at RTM_NEWPREFIX is that there's an arbitrary amount of time between RTM_NEWPREFIX and the address actually showing up on the interface. If for some reason this fails to happen we do need to fail the activation. If the DAD cycle's length is completely silly then I'm not particularly inclined to accommodate that. But all that said the current value of 25 seconds is probably too short. That value was chosen before we had the parallel configuration that landed in 0.9.4. So even if we do bump the value up, as long as you have IPv4 connectivity you won't notice a thing if IPv6 takes longer to fail because you don't have IPv6 enabled on the network. That (as danw suggests) was the main reason. And if you have IPv6 only and it takes 45 seconds, well, perhaps that's your problem :) I suggest a value of perhaps 45 seconds, including DAD. If it takes longer than that, then we need a really, really good reason to up the timeout, and "I configured more DAD probes" is not a really good reason. Neither is "my router is configured to send RAs at most once every 60 seconds." This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 (In reply to comment #9) > I suggest a value of perhaps 45 seconds, including DAD. If it takes longer > than that, then we need a really, really good reason to up the timeout, and > "I configured more DAD probes" is not a really good reason. Neither is "my > router is configured to send RAs at most once every 60 seconds." Has this been fixed? Since 0.9.8 NM has sent Router Solicitations to ensure that the router sends an RA while NM is performing addressing. So at least #1 should be fixed already. This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |