Bug 179809

Summary: hotplug net.agent automatically re-inserts modules by virtue of ifdown iface
Product: [Fedora] Fedora Reporter: Alan <chekov>
Component: hotplugAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 8.30-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-20 17:47:49 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: 150221    

Description Alan 2006-02-03 02:31:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1 Mnenhy/0.7.2.0

Description of problem:
When attempting to remove the driver for an extant network card, hotplug's net.agent script automatically re-inserts the module if it is aliased to an interface in /etc/modprobe.conf
Even modules that are blacklisted (by hotplug) get loaded
This might be what is causing bug 173291

Version-Release number of selected component (if applicable):
hotplug-2004_09_23-7

How reproducible:
Always

Steps to Reproduce:
1.  add a driver for your net card in modprobe.conf (eg: alias eth0 e100)
2.  load the driver as normal (eg: ifup eth0)
3.  bring the interface down (eg: ifdown eth0)
4.  attempt to unload the driver (eg: rmmod e100)

  

Actual Results:  the module will automatically get re-inserted and the interface will be brought back up!

Expected Results:  rmmod should remove the module cleanly

Additional info:

I've tracked this down to hotplug's net.agent script.  When a network module is removed fron the system, net.agent attempts to bring down the associated interface (ifdown $INTERFACE).  But running ifdown on the interface causes modprobe to re-insert the module for that interface (before ifdown can bring it down).
  
To make matters worse, hotplug then detects that modprobe has inserted a new network card and runs itself with an "add" -- thereby actually bringing the interface up as you were trying to remove it entirely.

Comment 1 Alan 2006-02-03 02:34:01 UTC
sorry, this is not related to bug 173291, ignore that.
-alan

Comment 2 Bill Nottingham 2006-04-20 17:47:49 UTC
This was fixed in initscripts-8.30-1, which was in FC5.