Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 84453

Summary: ifdown-post not called when pccard ethernet ejected (from ifdown)
Product: [Retired] Red Hat Linux Reporter: John Heidemann <johnh>
Component: hotplugAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: rvokal
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: 2006-02-21 18:51:50 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 John Heidemann 2003-02-17 16:50:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211

Description of problem:
ifdown-post is never called at the end of ifdown
if retcode != 0.
This happens to me consistently when ejecting a pccard ethernet
adaptor.
As a result, jobs registered in /var/run/netreport
never get informed that the network went away.
This breaks third-party apps such as xcron
<http://www.isi.edu/~johnh/SOFTWARE/XCRON/>
that require notification.

(At some previous point ejecting a pccard did trigger netreports.
I'm not sure when: RH 7.3?  7.2?  The code in 7.3 looks the same, but 
maybe the retcode ends up being set differently.)

Presumably this is done because of ungraceful shutdown.  Perhaps
ifdown-post should try and pass the retcode down.


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


How reproducible:
Always

Steps to Reproduce:
1. start a process that registers itself in /var/run/netreport
   on a laptop
2. physically eject the card
3. observe that no SIGIO is delivered to the process
    

Actual Results:  a SIGIO is not delivered to the process registered in
/var/run/netreport

Expected Results:  a SIGIO should have been delivred to the process

Additional info:

Comment 1 Bill Nottingham 2003-09-04 01:45:01 UTC
This is because of the switch to hotplug for handling network devices with
PCMCIA/cardbus.

Comment 2 Bill Nottingham 2005-02-04 21:08:16 UTC

*** This bug has been marked as a duplicate of 127283 ***

Comment 3 Red Hat Bugzilla 2006-02-21 18:51:50 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.