| Summary: | network-up does not wait long enough for network to be up when link down detected | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Samuel Verschelde <stormi-mageia> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | mageia, nic, tmb, venomdoli4 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | MGA2TOO | ||
| Source RPM: | initscripts | CVE: | |
| Status comment: | |||
|
Description
Samuel Verschelde
2012-08-22 09:50:21 CEST
Samuel Verschelde
2012-08-22 09:50:40 CEST
CC:
(none) =>
mageia Example of logs that show a 3s delay between down and up: Aug 22 08:41:27 tech009 kernel: [ 9.317177] tg3 0000:02:00.0: eth0: Link is down Aug 22 08:41:30 tech009 kernel: [ 12.319472] tg3 0000:02:00.0: eth0: Link is up at 1000 Mbps, full duplex You actually dont even need STP ho hit this issue. There are atleast some Realtek PHYs that is known to need up to 5 seconds to fully init and detect link too CC:
(none) =>
tmb Otoh this is nore of an admin / customizing config issue... But maybe we could detect services that really need network to be up and slow down the detection... Well there is the general concept of "network-up" which this script does, but it fails gracefully when there is no connection. We could perhaps also have a service which waits for e.g. network-online. This could then be used for services which really do need the network to be online. That said, starting "network-online.service" would be subject to the typical timeouts and would eventually fail to start. These timeouts could be tweaked of course, but if such services were part of the default.target, you'd end up with the knock on effect of the boot never technically "completing" until a network was present which I think is undesirable. While systemd does allow a lot more to be done with dependencies than we've had in the past, it also encourages correct design in many cases. For me, the only "correct design" in this case is to make any services that really are dependant on network listen to netlink events and act properly and dynamically in and off themselves, not rely on and wait for some theoretical point in time that might never happen (or might happen, then unhappen, then rehappen!) See: http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/4960 Lennart's replies describe more eloquently than myself as to why this static approach isn't really scaleable. NB: "NetworkManager-wait-online.service" is pretty similar to our network-up script. My understanding of comment 4 is this is not something that should be fixed. Am I correct? If so should this be closed? CC:
(none) =>
nic Let's close it, yes. Resolution:
(none) =>
WONTFIX
Rio Tokyo
2023-04-24 14:11:40 CEST
CC:
(none) =>
venomdoli4 |