Bug 782042
Summary: | network service finishes before assigned IPv6 addresses leave tentative state | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Schmidt <mschmidt> |
Component: | initscripts | Assignee: | Lukáš Nykrýn <lnykryn> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | iarlyy, initscripts-maint-list, johannbg, jonathan, jpkorva, jv+fedora, kevin, lnykryn, mattdm, mattias.ellert, metherid, mgrepl, mschmidt, notting, plautrba, psimerda, sander, scott-fedora, systemd-maint, tmraz, vinschen, vt |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 781708 | Environment: | |
Last Closed: | 2015-06-29 11:37:46 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: | 1119787 |
Description
Michal Schmidt
2012-01-16 11:56:56 UTC
Ping? Am I wrong in my assumption that the network initscript should make sure that all configured addresses have left the tentative state? Corinna The problem is finding a good way to do so... busywaiting on /sbin/ip screenscraping isn't a good answer. I see what you mean. I searched for this problem and apparently I'm not the first one who got a problem with this behaviour. I found the following potential solutions/workarounds/hacks: while [ -n "$(ip -6 addr show tentative)" ]; do sleep 1; done or something along the lines of echo 0 >/proc/sys/net/ipv6/conf/${interface}/accept_dad ifup echo 1 >/proc/sys/net/ipv6/conf/${interface}/accept_dad However, while looking into this I found just a few minutes ago that there is already a command in the network initscript, right at the end of the "start" case, line 171: [ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY} NETWORKDELAY isn't mentioned anywhere and it doesn't show up in /etc/sysconfig/network either. For the time being this is a working workaround, but a simple sleep looks rather lame. Corinna NETWORKDELAY is generally used for cases where the switch takes time to negotiate and won't pass packets - there is *no* good way to test for that, so it's just a unilateral admin-defined delay. I suspect disabling DAD would be enough of a behavior change that it would break for some people. However, shouldn't NETWORKDELAY be mentioned in /etc/sysconfig/network at least? I understand that disabling DAD might be dangerous in the general case, but is DAD really a problem for servers which are configured with fixed IP addresses? Corinna NETWORKDELAY is mentioned in /usr/share/doc/initscripts-<version>/sysconfig.txt The duplicate IP check is only done for static IP (for IPv4)... the assumption is that if your server is dishing out static IPs, it's smart enough to not get in this situation. This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. 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 prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 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 to click on "Clone This Bug" and open it against that version of Fedora. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping *** Bug 896235 has been marked as a duplicate of this bug. *** This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. 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 prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 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 to Fedora 18's end of life. 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 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 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. This bug still exists in Fedora 20. Please re-open. ifup-ipv6 probably needs a test similar to one I use in my NetworkManager dispatcher scripts before starting daemons: # 2.5 sec max for i in $(seq 25); do [ -z "$(/sbin/ip -6 addr show dev $DEVICE tentative)" ] && break /bin/sleep 0.1 done fail=$(/sbin/ip -6 addr show dev $DEVICE dadfailed) Ideally, it'd be nice if both initscripts and NetworkManager would report success only after all configured addresses leaves the tentative state, so daemons that bind to specific (ie manually configured) addresses wouldn't fail with "no such address" errors... guessing NetworkManager probably needs its own bug. Bug does need to be re-opened and updated to F20. Reopening and moving to F20 as per comments above. (In reply to Scott Shambarger from comment #13) > ifup-ipv6 probably needs a test similar to one I use in my NetworkManager > dispatcher scripts before starting daemons: By the way, what's the current status of NetworkManager and IPv6 tentative addresses? I would guess that if you run `nm-online -s`, you should get a working environment, otherwise it's a bug and should be reported. > Ideally, it'd be nice if both initscripts and NetworkManager would report > success only after all configured addresses leaves the tentative state, +1 (In reply to Scott Shambarger from comment #13) > Ideally, it'd be nice if both initscripts and NetworkManager would report > success only after all configured addresses leaves the tentative state, so > daemons that bind to specific (ie manually configured) addresses wouldn't > fail with "no such address" errors... guessing NetworkManager probably needs > its own bug. +1 for the initscripts but I think NetworkManager handles this already (at least in upstream). This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. 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 20 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 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 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. I ran into a similar looking problem with up-to-date Centos 7. I have eth2 for LAN (IPv4&IPv6) and eth3 with statically configured IPv6 ULA address for iscsi (no IPv4). NetworkManager is disabled. During boot I get: kernel: IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready kernel: tg3 0000:03:00.0 eth2: Link is up at 1000 Mbps, full duplex kernel: tg3 0000:03:00.0 eth2: Flow control is off for TX and off for RX kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready network[842]: Bringing up interface eth2: [ OK ] kernel: tg3 0000:04:00.0: irq 29 for MSI/MSI-X kernel: IPv6: ADDRCONF(NETDEV_UP): eth3: link is not ready network[842]: Bringing up interface eth3: [ OK ] systemd[1]: Started LSB: Bring up/down networking. systemd[1]: Reached target Network. systemd[1]: Starting Network. systemd[1]: Reached target Network is Online. systemd[1]: Started Open-iSCSI. systemd[1]: Starting Logout off all iSCSI sessions on shutdown... systemd[1]: Starting Login and scanning of iSCSI devices... systemd[1]: Started Logout off all iSCSI sessions on shutdown. systemd[1]: Started NFS Mount Daemon. iscsi-mark-root-nodes[1286]: iscsiadm: No active sessions. iscsiadm[1298]: iscsiadm: No records found systemd[1]: Started Login and scanning of iSCSI devices. systemd[1]: Starting Availability of block devices... systemd[1]: Reached target Remote File Systems (Pre). systemd[1]: Starting Remote File Systems (Pre). systemd[1]: Started Availability of block devices. kernel: tg3 0000:04:00.0 eth3: Link is up at 1000 Mbps, full duplex kernel: tg3 0000:04:00.0 eth3: Flow control is on for TX and on for RX kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth3: link becomes ready After boot is complete, manually executed "iscsiadm -m node --login" mounts failed iscsi disks. Should the bug be reopened for RHEL/Centos? My ifcfg-eth3: DEVICE=eth3 HWADDR=00:... TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPV6_AUTOCONF=no IPV6ADDR=fd00::1/64 |