Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250561 - access right problem when (re)starting bonding
Summary: access right problem when (re)starting bonding
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 22:05 UTC by nicodache
Modified: 2009-12-05 01:59 UTC (History)
3 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 nicodache 2008-12-10 22:05:28 UTC
I got a warning message saying the script cannot write to some file, when I (re)start my net.bond0 interface.

Reproducible: Always

Steps to Reproduce:
1.restart net.bond0
2.see the message

Actual Results:  
bonding works, but I still get the message.

Expected Results:  
bonding works better (dear Santa), and no more message

the line that fails in supposed to add the bonding slaves list to /sys/class/net/bond0/bonding/slaves


korsakov@22:54:56 /etc # /etc/init.d/net.bond0 restart
 * Stopping sshd ...                           [ ok ]
 * Bringing down interface bond0
 *   Removing slaves from bond0 ...
 *     eth0 eth1
 *   Removing addresses
 *     Removing addresses                      [ ok ]
 *   Removing addresses
 *     192.168.1.106/24
 * Bringing up interface bond0
/lib64/rc/net/bonding.sh: line 48: echo: write error: Operation not allowed
 *   Adding slaves to bond0 ...
 *     eth0 eth1
 *     Removing addresses
 *       Removing addresses                    [ ok ]
 *   192.168.1.106 ...                         [ ok ]
 *   Adding routes
 *     default via 192.168.1.1 ...             [ ok ]
 * Starting sshd ...                           [ ok ]
Comment 1 SpanKY gentoo-dev 2008-12-22 05:50:59 UTC
please read the bugzilla documentation.  you need to post `emerge --info` when filing bugs.
Comment 2 widyachacra 2009-01-05 17:43:49 UTC
Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.27-gentoo-r5-5 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r5-5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4000+-with-glibc2.2.5
Timestamp of tree: Mon, 05 Jan 2009 03:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r6, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -mno-tls-direct-seg-refs"
DISTDIR="/home/distfiles"
FEATURES="candy ccache disctcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US si"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi ads alisp alsa amd64 apache2 avahi berkdb bluetooth branding bzip2 cairo calendar cdparanoia cdr cjk cli cracklib crypt cups dbus dga divx dri dts dv dvb dvd dvdr dvdread eds emboss encode evo exif fam fbcon firefox fortran gdbm gif gimp gimpprint gpm gstreamer hal hdri iconv imagemagick imap irmc isdnlog java javascript jikes jpeg jpeg2k kde kdeprefix lcms libcaca libnotify logrotate lzo mad midi mikmod mmx mng mp3 mpeg mplayer msn mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pda pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session slp socks5 speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vcd vhosts vorbis wifi x264 xattr xine xml xorg xpm xprint xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="hda-intel" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias ident imagemap log_forensic version" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US si" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

----------------------------------------------
END OF #emerge --info 
----------------------------------------------

----------------------------------------------
My /etc/conf.d/net file configurations 
----------------------------------------------

config_eth1=( "null" )
config_eth2=( "null" )

slaves_bond0="eth1 eth2"

config_bond0=( "192.168.1.2/24 brd 192.168.1.255" )
Comment 3 mimosinnet 2009-12-05 01:59:40 UTC
I am having the same issue:

* Bringing up interface bond0
/lib64/rc/net/bonding.sh: line 48: echo: write error: L’operació no és permesa (operation not permitted)
*   Adding slaves to bond0...
*     eth0 eth1
*     Removing addresses
*       Removing addresses
 [ ok ]
*   XXX.XXX.174.125/24...
 [ ok ]
*   Adding routes
*     default via XXX.XXX.174.1..

/etc/conf.d/net
config_eth0="null"
config_eth1="null"
slaves_bond0="eth0 eth1" 
config_bond0="XXX.XXX.174.125/24"
routes_bond0="default via XXX.XXX.174.1"
rc_need_bond0="net.eth0 net.eth1"

dns_servers="XXX.XXX.0.1 XXX.XXX.0.3"

 # emerge --info
Portage 2.1.6.13 (hardened/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Six-Core_AMD_Opteron-tm-_Processor_2431-with-gentoo-2.0.1
Timestamp of tree: Wed, 18 Nov 2009 15:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="ca_ES.utf8"
LC_ALL="ca_ES.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="ca es en"
MAKEOPTS="-j7"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt cups curl doc dri exif gd gdbm gpm hardened iconv imagemagick imap jadetex jpeg justify lua mmx modules mudflap multilib multiuser mysql ncurses nls nptl nptlonly openmp pam pcre perl php pic png pppd python readline reflection rrdcgi ruby sensord session spl sse sse2 ssl svg symlink sysfs syslog tcl tcpd threads unicode urandom xml xorg zip 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_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd 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_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ca es en" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY