Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400847 - recent sys-apps/openrc-0.9.8.1 fails to set up my simple bonding interface
Summary: recent sys-apps/openrc-0.9.8.1 fails to set up my simple bonding interface
Status: RESOLVED DUPLICATE of bug 400613
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 01:13 UTC by Attila Tóth
Modified: 2012-01-26 12:38 UTC (History)
0 users

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 Attila Tóth 2012-01-26 01:13:54 UTC
I've just upgraded sys-apps/openrc from -0.9.4 to -0.9.8.2 and my server went offline.
After struggling with the remote console, it turned out, that the new openrc system incorrectly builds up my bonding config. It assigns the IP address to the eth1 interface and bonding stands there without an IP. In addition it also fails to define routes properly.

I see, that conf.d/network took over conf.d/net. My bonding config is as simple as my finger.

Here is my regular net syntax:
config_eth0=( "null" )
config_eth1=( "null" )
RC_NEED_eth0="net.bond0"
config_bond0="<myip> netmask 255.255.255.192 brd <mybroadcast>"
routes_bond0="default gw <mygateway>"
dns_domain="mydomain"

It works fine, it prevents eth interfaces getting IP and sets bond0 and routing perfectly.

That would be the network syntax:
defaultroute="gw <mygateway>"
ip_bond0="<myiip>/26"
defaultiproute="via <mygateway>"
ifup_bond0="ifenslave bond0 eth0 eth1"

It sucks.
Is there a working simple bonding example?

Please let me know where I can ask for proper help or point me to a document describing a simple bonding setup. This is awful.

Reproducible: Always
Comment 1 Tomy 2012-01-26 10:30:57 UTC
I can confirm this.

conf.d/net:
config_bond0="192.168.xxx.xxx netmask 255.255.255.0"
slaves_bond0="eth0 eth1"
routes_bond0="default gw 192.168.xxx.xxx"

After upgrading to openrc and rebooting the server the IP is assigned to eth1.

emerge --info:

Portage 2.1.10.41 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.13-r4, 2.6.39.3 x86_64)
=================================================================
System uname: Linux-2.6.39.3-x86_64-Intel-R-_Xeon-R-_CPU_5130_@_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 24 Jan 2012 14:15:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US hr"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi amd64 apache2 bash-completion bzip2 cli cracklib crypt ctype curl cxx dio dri flatfile fortran gdbm gpm hal iconv imlib inifile libg++ libwww mail mbox mmap mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre pear php pppd readline recode session sockets spl sse sse2 ssl sysfs sysvipc tcpd threads unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_balancer proxy_connect proxy_http rewrite setenvif so status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US hr" NGINX_MODULES_HTTP="access auth_basic autoindex browser cache_purge empty_gif gzip gzip_static headers_more limit_req limit_zone map memcached proxy realip referer rewrite split_clients upstream_ip_hash userid stub_status flv" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Tomy 2012-01-26 10:46:33 UTC
Resolved. openrc ChangeLog refers to bug #400613 (https://bugs.gentoo.org/show_bug.cgi?id=400613). 

After upgrading to the latest stable openrc everything works.
Comment 3 Attila Tóth 2012-01-26 12:38:14 UTC
(In reply to comment #2)
> Resolved. openrc ChangeLog refers to bug #400613
> (https://bugs.gentoo.org/show_bug.cgi?id=400613). 
> 
> After upgrading to the latest stable openrc everything works.

It was 0.9.8.1, not 0.9.8.2.
So it's a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=400613.

It was a nice one. It required remote services to bring the server back online.
Comment 4 Attila Tóth 2012-01-26 12:38:31 UTC

*** This bug has been marked as a duplicate of bug 400613 ***