Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217999 - sys-apps/openrc-0.2.2 network aliases dont work ?
Summary: sys-apps/openrc-0.2.2 network aliases dont work ?
Status: RESOLVED DUPLICATE of bug 217775
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 19:10 UTC by barthek
Modified: 2011-04-09 14:09 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 barthek 2008-04-16 19:10:38 UTC
I've stumbled across difficulties when upgrading to the new shiny openrc system...
it seems that network card aliases are not configured properly.

For purpose of this bug report Ive used dummy interface.

/etc/conf.d/net reads:
config_dummy0="192.168.0.1/24 192.168.0.2/24"
(as per example)

/etc/init.d/net.dummy0 restart yields:

 * Caching service dependencies ...
Service `crypto-loop' needs non existant service `checkroot'                                                [ ok ]
 * Bringing down interface dummy0
 *   Removing addresses
 * Bringing up interface dummy0
 *   192.168.0.1/24 ...                                                                                     [ ok ]
 *   192.168.0.2/24 ...                                                                                     [ ok ]

so everything seems to be fine but it isnt.
ifconfig shows:

dummy0: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 1500  metric 1
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 1a:38:69:ff:0b:c8  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1  bytes 98 (98.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


So it seems that some sort of alias has been configured but not the 'real' IP.

Am I doing something wrong or is it a bug that needs fixing? 

I guess emerge info is not relevant in this situation...

Cheers
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-04-16 19:34:45 UTC
This is most likely due to the old nature of ifconfig and using iproute2 to configure your network. Check ip addr and that should report both addresses. This is a dup of another bug but I can't remember it off the top of my head or find it this instant. Kicking it to bug-wranglers cause they might remember.

btw.. you probably want to re-emerge util-linux to get rid of the depend issue.
Comment 2 barthek 2008-04-16 19:38:09 UTC
unfortunately cant agree on that.

communication with 192.168.0.2 works ok whereas it does not with 192.168.0.1
so I dont think it is just down to ifconfig reporting things.

On top of that - I have manually configured eth0 alias that I had and it is reported correctly:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet xx.xx.139.51  netmask 255.255.255.240  broadcast xx.xx.139.63
        ether 00:04:76:71:ac:1d  txqueuelen 1000  (Ethernet)
        RX packets 128145  bytes 64968970 (61.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 149873  bytes 109654748 (104.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 11  base 0x6000

eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet xx.xx.139.52  netmask 255.255.255.240  broadcast xx.xx.139.63
        ether 00:04:76:71:ac:1d  txqueuelen 1000  (Ethernet)
        device interrupt 11  base 0x6000


btw thanks for the hint with util-linux. it affects all the gentoo systems that I have :)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-17 02:59:59 UTC
(In reply to comment #1)
> Kicking it to bug-wranglers cause they might remember.

Er, jakub is MIA.
Comment 4 Jon Portnoy 2008-04-17 16:59:31 UTC
barthek: do you get the same behavior with modules="ifconfig" ?
Comment 5 barthek 2008-04-17 17:12:35 UTC
yep, the results are the same (only the latest 'alias' is processed)

dummy0: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 1500  metric 1
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 1a:38:69:ff:0b:c8  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 196 (196.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


i think i found another bug as well.
according to /usr/share/doc/openrc/net.example i could use something like this:

# Or you can use sequence expressions
#config_eth0="192.168.0.{2..4}/24"

when i applied this config:
config_dummy0="192.168.0.{1..2}/24"

to my dummy interface i got this error instead:

 *   192.168.0.{1..2}/24 ...
192.168.0.{1..2}: Unknown server error
ifconfig: `--help' gives usage information.                                                                                                            [ !! ]
 * ERROR: net.dummy0 failed to start


so it seems something is seriously not right with the script...
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2008-04-17 17:44:30 UTC
Seems there is some sort of openrc bug here.
Comment 7 Erik Boström 2008-04-19 11:17:06 UTC
This is an openrc bug or rather openrc incompatibility with sys-apps/net-tools-1.60_p20071202044231. This is because ifconfigs output has changed from net-tools-1.60-r13. So if you downgrade to net-tools-1.60-r13 you will be ok until an openrc update comes along.
Comment 8 barthek 2008-04-19 19:08:15 UTC
if thats the case then why the heck this versions are still in the portage tree as current ones... and why havent they been given proper testing before release. :\
Comment 9 Jon Portnoy 2008-04-19 20:14:41 UTC
(In reply to comment #8)
> if thats the case then why the heck this versions are still in the portage tree
> as current ones... and why havent they been given proper testing before
> release. :\
> 

You are aware that openrc is beta software, which is why it's ~arch, right?
Comment 10 SpanKY gentoo-dev 2008-04-19 20:35:48 UTC
barthek: like Jon said, if you want stable software, use stable.  complaining that ~arch isnt stable is ridiculous.

*** This bug has been marked as a duplicate of bug 217775 ***
Comment 11 barthek 2008-04-19 21:08:41 UTC
I understand that I can not expect stability from ~arch but shouldnt obvious bugs like this one prevent package from being put in portage/unmasked in first place ?
Comment 12 SpanKY gentoo-dev 2008-04-19 21:40:01 UTC
you're making invalid assumptions.  at the time of addition, openrc worked fine.  some other package updated that broke openrc.  along those lines, it isnt feasible to test every package that may explicitly or implicitly depend on another package when updating it in the tree.  that is the purpose of ~arch.
Comment 13 barthek 2008-04-19 22:03:42 UTC
thank you for thorough explanation.
i'm glad i could help.
g'nite :)
Comment 14 daid kahl 2009-02-17 05:27:39 UTC
I'm still getting a similar output. 

My /etc/conf.d/net file is simple enough:

config_eth0="dhcpcd"

I'm loading net.eth0 at the command line and it looks like

 * Caching service dependencies ...
 Service `crypto-loop' needs non existant service `checkroot'
 [ ok ]
  * Bringing up interface eth0
   *   dhcpcd ...
    *     Running dhcpcd ...
    eth0: dhcpcd 4.0.2 starting

Then with some other information about the IP address I am assigned and so on.  The internet is working fine afterwards.

However, I should note that since this bug was filed some time ago, both net-tools AND openRC have been upgraded, but the problem remains!

I'm using net-tools-1.60_p20071202044231-r1 & openrc-0.3.0-r1 

As a side note, so I can at least claim my post is useful at all, "existant" is French, and "existent" is English.  So as long as the rest of the output is in English, I suppose we should fix the spelling, oui?

~daid