Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399037 - sys-apps/openrc-0.9.8.1 ethtool interface not working
Summary: sys-apps/openrc-0.9.8.1 ethtool interface not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 399185 400787
  Show dependency tree
 
Reported: 2012-01-15 22:56 UTC by Aidan Marks
Modified: 2012-01-25 20:42 UTC (History)
0 users

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


Attachments
debug log (eth0-restart-debug-log.txt,112.53 KB, text/plain)
2012-01-15 22:57 UTC, Aidan Marks
Details
openrc-0.9.8.1-ethtool_fix.patch (openrc-0.9.8.1-ethtool_fix.patch,356 bytes, patch)
2012-01-16 10:11 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aidan Marks 2012-01-15 22:56:06 UTC
ethtool via openrc broke recently, works fine manually.

sys-apps/openrc-0.9.8.1
sys-apps/ethtool-3.2

[snip]
 * Bringing up interface eth0
 *     ethtool --change eth0 wol d speed 100 duplex full autoneg off ...
/lib64/rc/net/ethtool.sh: line 42: _ethtool: command not found
/lib64/rc/net/ethtool.sh: line 42: --change: command not found
 *     ethtool exit code 127
[snip]

vger ~ # ethtool --change eth0 wol d speed 100 duplex full autoneg off
vger ~ # echo $?
0
vger ~ #

Reproducible: Always




vger ~ # emerge --info
Portage 2.2.0_alpha84 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.1
Timestamp of tree: Sun, 15 Jan 2012 12:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x11
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="ftp://192.168.0.1 ftp://ftp.iinet.net.au/linux/Gentoo"
LANG="it_IT@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB it"
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="/var/lib/layman/x11"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde kipi lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ctxfi" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Aidan Marks 2012-01-15 22:57:43 UTC
Created attachment 299043 [details]
debug log

log of /etc/init.d/net.eth0 --debug restart
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-01-16 10:11:46 UTC
Created attachment 299051 [details, diff]
openrc-0.9.8.1-ethtool_fix.patch

possible fix
Comment 3 Toralf Förster gentoo-dev 2012-01-16 13:16:55 UTC
(In reply to comment #2)
> Created attachment 299051 [details, diff] [details, diff]
> openrc-0.9.8.1-ethtool_fix.patch
> 
> possible fix
Even with that fix a user-mode-linux image failed to start eth0.
I copied the backed up old net.lo over the new one, then it works.
Comment 4 William Hubbs gentoo-dev 2012-01-16 15:38:41 UTC
(In reply to comment #2)
> Created attachment 299051 [details, diff] [details, diff]
> openrc-0.9.8.1-ethtool_fix.patch
> 
> possible fix

This fix looks correct.

@robbat2:
If this looks correct to you, I will apply it.

(In reply to comment #3)
> Even with that fix a user-mode-linux image failed to start eth0.
> I copied the backed up old net.lo over the new one, then it works.

Please restore the new net.lo, apply the fix, then attach the output from the command in comment #1. We need to see if that is the same issue.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-16 17:35:18 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > Created attachment 299051 [details, diff] [details, diff] [details, diff]
> > openrc-0.9.8.1-ethtool_fix.patch
> @robbat2:
> If this looks correct to you, I will apply it.
Applied and verified. It broke with one of your prior commit to replace "_ethtool" with "_which ethtool".

> (In reply to comment #3)
> > Even with that fix a user-mode-linux image failed to start eth0.
> > I copied the backed up old net.lo over the new one, then it works.
> 
> Please restore the new net.lo, apply the fix, then attach the output from the
> command in comment #1. We need to see if that is the same issue.
That's going to be a different problem.
Can we also get the output from "/etc/init.d/net.eth0 --verbose restart" (with the patch applied on top of 0.9.8.1).
Comment 6 Toralf Förster gentoo-dev 2012-01-23 13:55:31 UTC
(In reply to comment #5)
> Can we also get the output from "/etc/init.d/net.eth0 --verbose restart" (with
> the patch applied on top of 0.9.8.1).

n22_uml ~ # /etc/init.d/net.eth0 --verbose restart
 * Caching service dependencies ...                                                                                   [ ok ]
 * Bringing up interface eth0
 *   Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
 *   Skipping module br2684ctl due to missing program: br2684ctl
 *   Skipping module tuntap due to missing program: ip openvpn tunctl
 *   Skipping module bridge due to missing program: brctl
 *   Skipping module clip due to missing program: /usr/sbin/atmsigd
 *   Skipping module ethtool due to missing program: ethtool
 *   Skipping module macvlan due to missing program: ip
 *   Skipping module netplugd due to missing program: /sbin/netplugd
 *   Skipping module ifplugd due to missing program: /usr/sbin/ifplugd
 *   Skipping module ipppd due to missing program: /usr/sbin/ipppd
 *   Skipping module iwconfig due to missing program: /sbin/iwconfig
 *   Skipping module iproute2 due to missing program: ip
 *   Skipping module pppd due to missing program: /usr/sbin/pppd
 *   Skipping module vlan due to missing program: ip
 *   Skipping module dhclient due to missing program: /sbin/dhclient
 *   Skipping module pump due to missing program: /sbin/pump
 *   Skipping module ip6to4 due to missing program: ip
 *   Loaded modules: apipa arping bonding ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig system dhcpcd
 *   Configuring eth0 for MAC address 7a:cf:14:11:67:01 ...                                                           [ ok ]
 *   192.168.1.50/16 ...
dhcp: Host name lookup failure
ifconfig: `--help' gives usage information.                                                                           [ !! ]
 * ERROR: net.eth0 failed to start



Here's my config :

n22_uml ~ # cat /etc/conf.d/net
# net.eth0
#

#       TAP1 + dhcp
#
config_eth0="192.168.1.50/16 dhcp"

#       TUN + static
#
#config_eth0="192.168.0.50/16"
#routes_eth0="default via 192.168.0.253"
#dns_servers_eth0="192.168.0.254"

dhcp_eth0="nontp"
dhcpcd_eth0="-L -t 10 -h n22_uml_dyn"
Comment 7 Toralf Förster gentoo-dev 2012-01-23 14:36:15 UTC
BTW using the old net.lo works : 

n22_uml ~ # cp /var/tmp/net.lo.bak /etc/init.d/net.lo 
n22_uml ~ # /etc/init.d/net.eth0 --verbose restart
 * Caching service dependencies ...                                                                                   [ ok ]
 * Bringing up interface eth0
 *   Loaded modules: apipa arping bonding ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig system dhcpcd
 *   Configuring eth0 for MAC address 7a:cf:14:11:67:01 ...                                                           [ ok ]
 *   192.168.1.50/16 ...                                                                                              [ ok ]
 *   dhcp ...
 *     Running dhcpcd ...
dhcpcd[1629]: version 5.2.12 starting
dhcpcd[1629]: eth0: broadcasting for a lease
dhcpcd[1629]: eth0: offered 192.168.0.15 from 192.168.0.254
dhcpcd[1629]: eth0: acknowledged 192.168.0.15 from 192.168.0.254
dhcpcd[1629]: eth0: checking for 192.168.0.15
dhcpcd[1629]: eth0: leased 192.168.0.15 for 3600 seconds
dhcpcd[1629]: forked to background, child pid 1650                                                                    [ ok ]
 *     received address 192.168.1.50/16                                                                               [ ok ]
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-23 17:25:40 UTC
Toralf:
1. Move dhcp to a SEPARATE line and retest.
Eg:
config_eth0="192.168.1.50/16
dhcp"

1. Failing that, may I get a matching output from "/etc/init.d/net.eth0 --debug --verbose restart" please?
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-23 17:26:49 UTC
Aidan:
can you retest 0.9.8.1 as well please (you didn't include your conf.d/net).
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-25 18:53:53 UTC
This is now in 0.9.8.2.
Comment 11 Aidan Marks 2012-01-25 20:42:22 UTC
(In reply to comment #10)
> This is now in 0.9.8.2.

Verified fix in 0.9.8.2.  Thank you very much.