Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 15597

Summary: dhcpcd died when removing cardbus card, net.eth0 is not stopped
Product: Gentoo Linux Reporter: dino7 <marc>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED TEST-REQUEST    
Severity: major CC: hanno, latexer, max
Priority: High    
Version: 1.4_rc2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description dino7 2003-02-12 16:17:42 UTC
I have a laptop with a cardbus networkcard. When putting in the card, the hotplug 
agent kicks in and executes /etc/init.d/net.eth0 start. so far so good. When removing 
the card the hotplug agent executes /etc/init.d/net.eh0 stop but the script fails 
because dhcpcd gives a signal 1 -> no such device. Thats good, because the 
networkcard is gone, but here comes the problem, net.eth0 is still in the 'started' state 
so if i put back the card 'net.eth0 start' gives me a warning that it is still started. 

Reproducible: Always
Steps to Reproduce:
1. put in cardbus networkcard configured for dhcpcd and it works 
2. remove it 
3. put it in again and the interfce goes up, but net.eth0 fails to start 
Actual Results:  
I got stuck with a net.et0 script in the started state and a eth0 interface with no ip. 

Expected Results:  
3. put it in again and the interfce goes up and a net.eth0 starts 

This happends when removing the network card: 
Feb 12 21:41:50 [kernel] cs: cb_free(bus 8) 
Feb 12 21:41:50 [/etc/hotplug/net.agent] invoke /etc/init.d/net.eth0 stop 
Feb 12 21:41:50 [/etc/hotplug/pci.agent] PCI remove event not supported 
Feb 12 21:41:50 [dhcpcd] dhcpRelease: sendto: No such device 
Feb 12 21:41:50 [dhcpcd] arpRelease: sendto: No such device 
Feb 12 21:41:51 [dhcpcd] terminating on signal 1 
Feb 12 21:41:51 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: No such device 
Feb 12 21:41:51 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: No such device 
 
As such, the net.eth0 fails to stop and is still in a started state. The script sould be 
modified to check for a running "dhcpcd -i eth0" process before trying to stop it.
Comment 1 Wout Mertens (RETIRED) gentoo-dev 2003-03-19 08:39:30 UTC
Is this still the case? I use baselayout-1.8.6.2 and I have no such problems. 
Comment 2 dino7 2003-03-23 16:47:10 UTC
nope, sorry problem still exists with baselayout 1.8.6.4-r1. The warning I see in 
the log is: "DATETIME [rc-scripts] WARNING:  "net.eth0" has already been 
started.". Description and reproduction stated above is still valid with this ~x86 
baselayout. 
Comment 3 Andrew Cooks (RETIRED) gentoo-dev 2003-12-06 07:06:05 UTC
This bug has been inactive for a long time.

Does the problem still exist?

Please try the latest version and reopen this bug if the problem persists.