Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174792 - sys-apps/baselayout-2.0.0_alpha1 fails to start ethernet devices after a period of time
Summary: sys-apps/baselayout-2.0.0_alpha1 fails to start ethernet devices after a peri...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 176234 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-16 12:36 UTC by Mike Auty (RETIRED)
Modified: 2007-05-04 15:34 UTC (History)
2 users (show)

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


Attachments
iproute2.sh net module patch for baselayout-2.0.0.0_alpha1 (iproute2.sh.patch,324 bytes, patch)
2007-04-16 12:37 UTC, Mike Auty (RETIRED)
Details | Diff
net.Linux/bridge.sh.patch (bridge.sh.patch,1.06 KB, patch)
2007-04-17 10:00 UTC, Martin Jansa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2007-04-16 12:36:42 UTC
Hiya, just a quick note to say that using the iproute2 module, baselayout-2_alpha1 can fail to start the network device, giving the following output:

 * Caching service dependencies ...                                                                      [ ok ]
 * Bringing up interface eth0
/etc/init.d/net.eth0: line 414: 0 + : syntax error: operand expected (error token is " ")
 * ERROR: net.eth0 failed to start

On further investigation, it turns out this line deals with setting the metric, and fails on the _ifindex function from the iproute2 module.  Looking in that code, it appears that it uses /proc/net/dev to determine the available interfaces, so I checked my /proc/net/dev and saw the following:

Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:   42352     550    0    0    0     0          0         0    42352     550    0    0    0     0       0          0
  eth0:184251109  129760    0    0    0     0          0         0  8952765  116518    0    0    0     0       0          0
cipsec0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

Despite the wrapping, it shows eth0:18, looking in the iproute2 module it appears to be looking for a space following a colon (and dies when it doesn't find one).

Patch to follow.  Let me know if you need any further information...  5:)
Comment 1 Mike Auty (RETIRED) gentoo-dev 2007-04-16 12:37:15 UTC
Created attachment 116439 [details, diff]
iproute2.sh net module patch for baselayout-2.0.0.0_alpha1
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-04-16 12:57:46 UTC
Applied to our svn repo thanks.

We've also fixed ifconfig.sh as well :)
Comment 3 Martin Jansa 2007-04-17 09:58:08 UTC
There seems to be simillar problem with bridge.sh.

First it doesn't add interfaces to created bridge (brctl show only bridge br0 without interfaces ethX).
Then it doesn't up new bridge interface (even when interface adding was fixed).
Last it cannot add default route and vlan to new bridge (because it was down).

My config:
bridge_br0="eth0 eth1"
config_eth0=( "null" )
config_eth1=( "null" )

vlans_br0="5"
config_br0=(
            "ip_4_1/23"
            "ip_6_1/64"
            "ip_6_2/64"
           )
routes_br0=(
              "default via ip_4_gw"
              "default via ip_6_gw"
             )
config_br0_5=("ip_4_2/26")

(ip_4*,ip_6* are real ip address)

There is "a patch", I have used to start my workstation with working networking. But its not intended to be merged, because it was made by quite silly changes, just for start it asap. Maybe someone will be able to pick the main reason from it, maybe I'll later.




Comment 4 Martin Jansa 2007-04-17 10:00:13 UTC
Created attachment 116498 [details, diff]
net.Linux/bridge.sh.patch

What I have done to start it with working networking.
It's NOT a patch to be used :).
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-04-17 10:10:43 UTC
(In reply to comment #4)
> Created an attachment (id=116498) [edit]
> net.Linux/bridge.sh.patch
> 
> What I have done to start it with working networking.
> It's NOT a patch to be used :).

Um, we aleady have that patch in our svn repo, but thanks anyway.
Comment 6 Martin Jansa 2007-04-17 10:19:48 UTC
(In reply to comment #5)
> Um, we aleady have that patch in our svn repo, but thanks anyway.

It's different patch and I have to apply it even to this recent revision

martin@jama /home/install/baselayout-2.0.0_alpha1_p1 $ svn up
At revision 2615.




Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-04-17 11:28:33 UTC
(In reply to comment #6)
> martin@jama /home/install/baselayout-2.0.0_alpha1_p1 $ svn up
> At revision 2615.

Your config should work with revision 2616 ;)
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-04-30 21:19:42 UTC
*** Bug 176234 has been marked as a duplicate of this bug. ***
Comment 9 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:34:27 UTC
Fixed in baselayout-2.0.0_alpha2