Bug 223570 - Race condition causes failed link detection in network-functions
Summary: Race condition causes failed link detection in network-functions
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: initscripts
Version: 4.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-20 01:19 UTC by Grant Diffey
Modified: 2014-03-17 03:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-20 02:07:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Diff to check_link_down function to add sleep (366 bytes, patch)
2007-01-20 01:19 UTC, Grant Diffey
no flags Details | Diff

Description Grant Diffey 2007-01-20 01:19:52 UTC
Description of problem:

Race condition in /etc/sysconfig/network-scripts/network-functions

Version-Release number of selected component (if applicable):


How reproducible:

It's a race condition.. umm.. it happens for me on a Dell workstation system 
with a broadcom nic and a cisco switch

Steps to Reproduce:

did I mention it's a race condition ;)
1.
2.
3.
  
Actual results:

/etc/init.d/network restart fails to detect the cable

Expected results:

It should sleep to allow the network interface to stabilise before testing if 
there is link.

Additional info:

Comment 1 Grant Diffey 2007-01-20 01:19:52 UTC
Created attachment 146049 [details]
Diff to check_link_down function to add sleep

Comment 2 Bill Nottingham 2007-01-20 02:07:46 UTC
It's already got a 5 second timeout. This is fixed in RHEL 5 by use of the
LINKDELAY parameter.

Comment 3 Grant Diffey 2007-01-20 04:11:20 UTC
when you say already you mean "always has had" or it now has?(In reply to 
comment #2)
> It's already got a 5 second timeout. This is fixed in RHEL 5 by use of the
> LINKDELAY parameter.

when you say Already got.. do you mean always has had or its been recently 
fixed?

Comment 4 Bill Nottingham 2007-01-22 18:28:53 UTC
initscripts has a 5 second wait for link status to be correct for dhcp in RHEL 3
or later. In RHEL5 the delay length is user configurable.


Note You need to log in before you can comment on or make changes to this bug.