on s390 systems, simply adding an ip address to a device does not automatically set the link to "up". this causes problems when using openrc as the interface is configured but never actually brought up (the iproute2.sh module does not explicitly call _up after adding an address). workaround for iproute2.sh module: --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -143,6 +143,7 @@ _add_address() veinfo ip addr add "$@" dev "${IFACE}" ip addr add "$@" dev "${IFACE}" + _up } _add_route() but i'm not sure if this is a bug in iproute2, a bug in an s390 driver, or a feature we simply rely on that is provided by most systems, but isnt actually guaranteed across all ...
(In reply to comment #0) > but i'm not sure if this is a bug in iproute2, a bug in an s390 driver, or a > feature we simply rely on that is provided by most systems, but isnt actually > guaranteed across all ... Do you have any more info on this? Should I commit the workaround so that we can get this stable on s390?
research needs to be done to find out where the difference is arising from, and then we can figure out what the correct fix is. if it's a bug in the s390 net driver, we should fix the driver. if it's a bug in iproute2 that only manifests on s390, then we should fix iproute2. if this is expected behavior of driver/iproute2 and things just happen to work in most places, then we should make the proposed change to openrc. in other words, we shouldnt commit anything at this point.
Do you have any results for this bug? I would like to make openrc/baselayout-2 stable everywhere so that we can deprecate baselayout-1, but this bug is blocking that. Thanks, William
playing a bit more, ip does not automatically bring things up. seems openrc itself calls _up() in start() before it loads any modules. but this doesnt work on qeth links as it's done too early -- before ccwgroup gets a chance to configure. i've committed a fix for this and added it to 0.8.3 http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commitdiff;h=c427d3c1fec89f6a9281dccdc123bad73af80804