Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2706 - virtual/net is not considered "up" if any net.* scripts fail
Summary: virtual/net is not considered "up" if any net.* scripts fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 4752 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-13 14:05 UTC by Sean P. Kane
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean P. Kane 2002-05-13 14:05:04 UTC
It isn't uncommon for laptops to have multiple NICs, but only have one plugged 
in at a time. I.e. Their is the built-in NIC and the user might have a PCMCIA 
wireless nic. Currently if either NIC is not plugged in any service 
that "needs" virutal/net fails to start. This shouldn't be the case since the 
machine DOES have network access via the other card. The only potential problem 
I see here is that loopback is also a net script and just having loopback 
started probably should't be enough to be considered metting the requirements 
for virutal/net. Maybe if Loopback and one other deivce start succesfully it 
could be considered up.....Any ideas?

Thanks,
Sean
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-19 07:12:11 UTC
I dont understand ... how does it have networking if *both* NICs fails to
initialize ?

I can understand that you want it to give the ok if one net.eth? started,
but there should be at least one net.eth? started besides net.lo for what
I consider a working network ...
Comment 2 Sean P. Kane 2002-05-20 09:26:14 UTC
I said if EITHER nic fails, not both. The assumption you might making is that
they are both ETH devices, which is not the case. One shows up as eth0 and one
shows up as wlan0 (the wireless card). And I assume that at least a few other
net.* devices are avaliable (maybe ppp0 or slip0). So, basically virtual/net
should be considered up if I can ping the internet, not just if all net.*
devices comes up which is currently the case. If either net.eth0 or net.wlan0
fails the virtual/net fails and all services requriing virtual/net fail.

Sean
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-20 16:02:32 UTC
So I gathered, but just wanted to make sure.  We are trying to resolve
the whole pcmcia and rc-scripts issue currently, as it needs some special
handeling.  I will look into this while we figure pcmcia out.

Thanks
Comment 4 Sean P. Kane 2002-05-20 16:41:29 UTC
Thanks. I'd be happy to help or test some things out if you would like.

Sean
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-26 14:17:04 UTC
On my to-do list if anybody wondered.
Comment 6 Sean P. Kane 2002-05-29 14:07:13 UTC
Another thought on this:

If I have net.eth0 and net.wlan0 as it stands now, I typically only have
net.eth0 start in the default init so that my services requiring virtual/net
will start. However, if I bring up net.wlan0 and then bring down net.eth0 all my
services relying on virtual/net also come down even though I still have network
access. A restart may be appropriate so they grab any new network information,
but they shouldn't stop.

Sean
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-09 13:18:56 UTC
*** Bug 4752 has been marked as a duplicate of this bug. ***
Comment 8 Alexander Holler 2002-07-09 15:04:43 UTC
It would nice too to stop one net-service without stopping all other services 
depending on net, if at least one net-device is left. E.g. stopping net.ppp0 
shouldn't stop other services it net.eth0 or something other net.* is still 
active. 
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-09 15:35:40 UTC
This two is maybe not 100% the same, but I think they have at the core the
same problem.

Anyhow, as for the stopping without everything depending on net stopping
as well, try:

# /etc/init.d/net.eth? pause

that is what the "pause" command is for .... stopping stuff without their
dependancies.
Comment 10 Bertrand Baudet 2002-10-21 23:35:41 UTC
What is the status on that? 
 
I have the same trouble. Every time I eject my wireless card, all the services   
that depend on virtual/net will be shutdown, even if eth0 is up.  
 
I can see 2 fixes: 
* Change the "stop" to "pause" in the network pcmcia script. 
* Have a reference counting on the script that provide virtual/net and only 
stop the depending services when the count is <1 
 
 
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 13:31:06 UTC
This should be fixed with baselayout-1.8.5.5 and later.