[Bug 462816] New: ethtool needs exactly 3 parameters on startup ( documentation is different)
https://bugzilla.novell.com/show_bug.cgi?id=462816 Summary: ethtool needs exactly 3 parameters on startup (documentation is different) Product: openSUSE 11.1 Version: Final Platform: 64bit OS/Version: openSUSE 11.1 Status: NEW Severity: Minor Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: christian_haegele@web.de QAContact: qa@suse.de Found By: Customer When adding a ETHTOOL_OPTIONS parameter to /etc/sysconfig/network/ifcfg-eth0 e.g.ETHTOOL_OPTIONS='autoneg off speed 10' the configuration fails on system boot. It works however when you manually run the ifup script later after boot. If you change the ETHTOOL_OPTIONS to ETHTOOL_OPTIONS='autoneg off speed 10 duplex full' it works fine on system-startup and later on. It seems that ethtool needs all 3 parameters to work properly. Actually that's fine, but the documentation says something different. Especially the docu in the Yast-Module for /etc/sysconfig has exactly the line above, the one that doesn't work, as an example. That will lead to serious missunderstandings. I am not if the bug is that the documentation os wrong or that for some reasons on startup it does not work with less parameters. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c1 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |mzugec@novell.com --- Comment #1 from Marcus Meissner <meissner@novell.com> 2008-12-30 05:03:30 MST --- -> yast2 network maintainer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User kmachalkova@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c2 Katarina Machalkova <kmachalkova@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mzugec@novell.com AssignedTo|mzugec@novell.com |mt@novell.com --- Comment #2 from Katarina Machalkova <kmachalkova@novell.com> 2009-01-05 03:27:28 MST --- This is not yast2-network, but yast2-sysconfig. Which only duly displays whatever is in sysconfig/network/ifcfg.template. That one comes from sysconfig package. Marius, please have a look -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c3 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #3 from Marius Tomaschewski <mt@novell.com> 2009-01-08 03:22:40 MST --- Please provide the failure message from /var/log/boot.msg or messages and the out.txt output from "ifdown eth0 ; bash -x ifup eth0 &>/tmp/out.txt" and repoen when there is an error message. When no message is logged in /var/log/boot.msg, please set DEBUG=EXTRA in /etc/sysconfig/network/config and reboot. Provide all files from the /dev/shm/sysconfig dir (tar cvzf /tmp/bnc462816.tgz /dev/shm/sysconfig). For me, all is fine - it works in all documented variants: /etc/sysconfig/network/ifcfg.template ## Type: string ## Default: "" # # If this variable is not empty ifup will call ethtool with this options. # See the ethtool (8) manual page for available options. # If the option string starts with a '-' (e.g. '-K iface rx on'), then the # second word in the string will be replaced with the current interface name. # Otherwise (e.g. 'autoneg off speed 10') ifup prepends '-s <interface>'. # ETHTOOL_OPTIONS= Note, that when the ifcfg.template was modified in the past, it may not contain the actual comment. ++ ETHTOOL_OPTIONS='autoneg off speed 10' [...] + '[' ifup = ifup -a -n 'autoneg off speed 10' ']' + test -n '' + case "$ETHTOOL_OPTIONS" in + ETHTOOL_OPTIONS='-s eth1 autoneg off speed 10' + RETCODE=1 + ETHTOOL=/sbin/ethtool + for tool in '$ETHTOOL' '/usr$ETHTOOL' + '[' -x /sbin/ethtool ']' + ETHTOOL=/sbin/ethtool + RETCODE=0 + for tool in '$ETHTOOL' '/usr$ETHTOOL' + '[' -x /usr/sbin/ethtool ']' + continue + test 0 '!=' 0 ++ /sbin/ethtool -s eth1 autoneg off speed 10 + MESSAGE= + RETCODE=0 ++ ETHTOOL_OPTIONS='-s iface autoneg off speed 10' [...] + case "$ETHTOOL_OPTIONS" in + read ETHTOOL_SWITCH xifacex ETHTOOL_SETTINGS ++ echo -s iface autoneg off speed 10 + ETHTOOL_OPTIONS='-s eth1 autoneg off speed 10' + RETCODE=1 + ETHTOOL=/sbin/ethtool + for tool in '$ETHTOOL' '/usr$ETHTOOL' + '[' -x /sbin/ethtool ']' + ETHTOOL=/sbin/ethtool + RETCODE=0 + for tool in '$ETHTOOL' '/usr$ETHTOOL' + '[' -x /usr/sbin/ethtool ']' + continue + test 0 '!=' 0 ++ /sbin/ethtool -s eth1 autoneg off speed 10 + MESSAGE= + RETCODE=0 ++ ETHTOOL_OPTIONS='-s iface autoneg off speed 10 duplex full' [...] + case "$ETHTOOL_OPTIONS" in + read ETHTOOL_SWITCH xifacex ETHTOOL_SETTINGS ++ echo -s iface autoneg off speed 10 duplex full + ETHTOOL_OPTIONS='-s eth1 autoneg off speed 10 duplex full' + RETCODE=1 + ETHTOOL=/sbin/ethtool + for tool in '$ETHTOOL' '/usr$ETHTOOL' + '[' -x /sbin/ethtool ']' + ETHTOOL=/sbin/ethtool + RETCODE=0 + for tool in '$ETHTOOL' '/usr$ETHTOOL' + '[' -x /usr/sbin/ethtool ']' + continue + test 0 '!=' 0 ++ /sbin/ethtool -s eth1 autoneg off speed 10 duplex full + MESSAGE= + RETCODE=0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c4 --- Comment #4 from Christian Hägele <christian_haegele@web.de> 2009-01-10 03:04:40 MST --- Created an attachment (id=264289) --> (https://bugzilla.novell.com/attachment.cgi?id=264289) Output of "ifdown eth0 ; bash -x ifup eth0 &>/tmp/out.txt" In that case it did work -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c5 --- Comment #5 from Christian Hägele <christian_haegele@web.de> 2009-01-10 03:06:16 MST --- Created an attachment (id=264290) --> (https://bugzilla.novell.com/attachment.cgi?id=264290) Logging when it didn't work on startup In that case it didn't work. There are errors saying: Cannot set new settings: Invalid argument not setting speed not setting autoneg -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c6 --- Comment #6 from Christian Hägele <christian_haegele@web.de> 2009-01-10 03:08:40 MST --- Created an attachment (id=264291) --> (https://bugzilla.novell.com/attachment.cgi?id=264291) /dev/shm/sysconfig TGZ-file created via tar cvzf /tmp/bnc462816.tgz /dev/shm/sysconfig -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c7 --- Comment #7 from Christian Hägele <christian_haegele@web.de> 2009-01-10 03:10:02 MST --- The problem is still reproducable on my system, so I reopened the bug. If you need any additional information or tests please don't hesitate to ask. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c8 Christian Hägele <christian_haegele@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #8 from Christian Hägele <christian_haegele@web.de> 2009-01-10 03:10:53 MST --- Bug reopened -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c9 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |christian_haegele@web.de --- Comment #9 from Marius Tomaschewski <mt@novell.com> 2009-01-12 03:16:15 MST --- (In reply to comment #6)
Created an attachment (id=264291) --> (https://bugzilla.novell.com/attachment.cgi?id=264291) [details] /dev/shm/sysconfig
TGZ-file created via tar cvzf /tmp/bnc462816.tgz /dev/shm/sysconfig
Please set DEBUG=EXTRA in /etc/sysconfig/network/config first, then reboot and then create the tar archive again. The (global config, it has no effect in ifcfg* files) DEBUG="EXTRA" setting enables a lot of debuging (tracing of all scripts using a "bash -vx") in ifup, ... [see beginning of /sbin/ifup]. The output files are in /dev/shm/sysconfig/exdeb.* or in /exdeb.* (when /dev/shm/sysconfig can't be created). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c10 Christian Hägele <christian_haegele@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #264291|0 |1 is obsolete| | --- Comment #10 from Christian Hägele <christian_haegele@web.de> 2009-01-16 14:36:50 MST --- Created an attachment (id=265809) --> (https://bugzilla.novell.com/attachment.cgi?id=265809) /dev/shm/sysconfig Now there are the logging information with DEBUG="EXTRA" in /etc/sysconfig/network/config Zip file created via tar cvzf /tmp/bnc462816.tgz /dev/shm/sysconfig On that Boot it didn't work... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 Christian Hägele <christian_haegele@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|christian_haegele@web.de | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c11 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |hvogel@novell.com Info Provider| |kernel-maintainers@forge.pr | |ovo.novell.com --- Comment #11 from Marius Tomaschewski <mt@novell.com> 2009-01-21 10:34:20 MST --- Any idea why a /sbin/ethtool -s eth0 autoneg off speed 10 may fail while boot but work later? And why it works with additional "duplex full" parameters also while boot? ++ /sbin/ethtool -s eth0 autoneg off speed 10 + MESSAGE='Cannot set new settings: Invalid argument not setting speed not setting autoneg' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c12 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mt@novell.com |hvogel@novell.com --- Comment #12 from Marius Tomaschewski <mt@novell.com> 2009-01-27 06:00:48 MST --- Reassign to ethtool maintainer, since ethtool does not accept a valid parameter list during boot, but accepts them later. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #264290|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User hvogel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c13 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|kernel-maintainers@forge.pr |christian_haegele@web.de |ovo.novell.com | --- Comment #13 from Hendrik Vogelsang <hvogel@novell.com> 2009-01-27 06:18:56 MST --- The invalid argument comes not from ethtool but from the driver. What card is that and what driver are you using? Some are picky about what you can and can't turn off. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User kkeil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c14 Karsten Keil <kkeil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkeil@novell.com --- Comment #14 from Karsten Keil <kkeil@novell.com> 2009-01-27 06:42:37 MST --- No exactely a idea what happens, but maybe it is a race between module load and init and the ethtool command, some commands do give back errors, if the adapter is not fully initialized, which can be need some seconds. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c15 Christian Hägele <christian_haegele@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|christian_haegele@web.de | --- Comment #15 from Christian Hägele <christian_haegele@web.de> 2009-01-27 12:03:52 MST --- Kernel-Module: sky2 Network-card: Foxconn International 88E8056 PCI-E Gigabit Ethernet Controller -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User hvogel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c16 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |christian_haegele@web.de --- Comment #16 from Hendrik Vogelsang <hvogel@novell.com> 2009-01-28 08:53:24 MST --- @kkeil there is already a sleep for this afaics @Christian please try to change only one option during boot. I need a boot.msg with ETHTOOL_OPTIONS='autoneg off' and one with ETHTOOL_OPTIONS='speed 10' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c17 --- Comment #17 from Christian Hägele <christian_haegele@web.de> 2009-03-13 13:02:08 MST --- Created an attachment (id=279534) --> (https://bugzilla.novell.com/attachment.cgi?id=279534) /dev/shm/sysconfig with ETHTOOL_OPTIONS='autoneg off' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462816 User christian_haegele@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=462816#c18 Christian Hägele <christian_haegele@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|christian_haegele@web.de | --- Comment #18 from Christian Hägele <christian_haegele@web.de> 2009-03-13 13:03:50 MST --- Created an attachment (id=279537) --> (https://bugzilla.novell.com/attachment.cgi?id=279537) /dev/shm/sysconfig with ETHTOOL_OPTIONS='speed 10' I have added the the needed information -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com