[Bug 572367] New: ifup script doesn't set correctly a module parameters for bonding devices
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c0 Summary: ifup script doesn't set correctly a module parameters for bonding devices Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nettezzaumanaa@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102100 SUSE/3.0.15-0.1 Firefox/3.0.15 Hi suse developers. I experienced in suse 11.2 strange behaviour with bonding devices. i have set a configuration for bonding devices by removing /etc/sysconfig/network/ifcfg-eth* and create there a ifcfg-bond0 file with followin content: ---------------------------------- BONDING_MASTER=yes BONDING_SLAVE_1='eth0' BONDING_SLAVE_2='eth1' BONDING_MODULE_OPTS="mode=802.3ad" STARTMODE=onboot BOOTPROTO=static ---------------------------------- . i also put within BONDING_MODULE_OPTS= entry additional settings like "xmit_hash_policy=1 lacp_rate=1", but after `rcnetwork restart` system reports, that cannot use this module options. so i tried to put them in proper format in /etc/modprobe.d/99-local.conf or in obsolete etc/modprobe.conf, but these options are never used. `modinfo bonding` says, that these options are known by module. regards by daniel .. ps. call for more info if needed .. i tried to pack /sys/class/net/bond0/bonding but with no success :p Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |mt@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c1 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Network |Network Platform|Other |All Version|Final |unspecified Product|openSUSE 11.2 |openSUSE 11.3 Target Milestone|--- |Factory OS/Version|Other |openSUSE 11.2 --- Comment #1 from Marius Tomaschewski <mt@novell.com> 2010-01-21 16:49:11 UTC --- Use the names please, e.g.: BONDING_MODULE_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 lacp_rate=fast" I'll fix to allow also the numbers for the next release. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c2 --- Comment #2 from Marius Tomaschewski <mt@novell.com> 2010-01-21 16:51:22 UTC --- Note, the names have to match exactly the 1st sysfs value: /sys/class/net/bond0/bonding/xmit_hash_policy:layer3+4 1 /sys/class/net/bond0/bonding/lacp_rate:fast 1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Enhancement -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c3 --- Comment #3 from Daniel Pecka <nettezzaumanaa@gmail.com> 2010-01-22 08:58:37 UTC --- Hi Marius .. Thanks, it works now pretty nice ;) .. i would never reach this trick. Probably some mention should be added in ReleaseNotes or in manual page .. one more issue pains me a bit .. ^ADDRESS entry seems like omitted also even if used as is described in $linux_src/Documentation/network/bonding.txt thanks much and regards by daniel -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c4 --- Comment #4 from Marius Tomaschewski <mt@novell.com> 2010-01-25 14:05:55 UTC --- (In reply to comment #3)
Hi Marius ..
Thanks, it works now pretty nice ;) .. i would never reach this trick. Probably some mention should be added in ReleaseNotes or in manual page ..
That's why I didn't closed it - I'll pickup and improve this for the next version and document in ifup-bonding(5) manual page.
one more issue pains me a bit .. ^ADDRESS entry seems like omitted also even if used as is described in $linux_src/Documentation/network/bonding.txt
What do you mean exactly with "^ADDRESS entry"? The MAC address of the bonding? You can set it in ifcfg-bond0 file using LLADDR variable (see man ifcfg). Bonding defaults to use the MAC of the first slave (see also fail_over_mac bonding option). Note, that the linux/Documentation/networking/bonding.txt describes sysconfig / ifcfg on SLES9/SLES10... needs an update. Now, the udev rule /etc/udev/rules.d/70-persistent-net.rules makes the normal eth0 names persistent. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c5 --- Comment #5 from Marius Tomaschewski <mt@novell.com> 2010-06-01 11:47:09 UTC --- Created an attachment (id=366083) --> (http://bugzilla.novell.com/attachment.cgi?id=366083) Fixed ifup-bondig script This script version fixes a problem when ifup bondX gets called twice and handles the options exactly. Please give it a test! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c6 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |nettezzaumanaa@gmail.com --- Comment #6 from Marius Tomaschewski <mt@novell.com> 2010-06-01 11:48:20 UTC --- Could you test please if this script works for you? install -m755 ifup-bonding /etc/sysconfig/network/scripts/ifup-bonding -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c7 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:sle11:33806 --- Comment #7 from Swamp Workflow Management <swamp@suse.com> 2010-06-29 21:09:53 UTC --- Update released for: sysconfig, sysconfig-debuginfo, sysconfig-debugsource Products: SLE-DEBUGINFO 11 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11 (i386, x86_64) SLE-SERVER 11 (i386, ia64, ppc64, s390x, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572367 http://bugzilla.novell.com/show_bug.cgi?id=572367#c8 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|nettezzaumanaa@gmail.com | Resolution| |FIXED --- Comment #8 from Marius Tomaschewski <mt@novell.com> 2010-07-12 11:41:35 UTC --- Fixed in 11.3. -- Configure bugmail: http://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=572367 https://bugzilla.novell.com/show_bug.cgi?id=572367#c9 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugproxy@us.ibm.com --- Comment #9 from Marius Tomaschewski <mt@novell.com> 2010-09-08 15:08:36 UTC --- *** Bug 636433 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=636433 -- 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=572367 https://bugzilla.novell.com/show_bug.cgi?id=572367#c10 --- Comment #10 from LTC BugProxy <bugproxy@us.ibm.com> 2010-09-08 15:17:56 UTC --- * Di Jun 08 2010 mt@suse.de [...] - Fixed ifup-bonding to not fail, when the bonding already exists (bnc#609809) or when bonding options are using numeric arguments instead of names (fixes also bnc#572367). [...] Tested/Verified -- works fine. With the last released update you can use both, fail_over_mac=active as well as fail_over_mac=1: abraxas:/etc/sysconfig/network # grep fail_over_mac ifcfg-bond0 BONDING_MODULE_OPTS='mode=active-backup fail_over_mac=1 miimon=100' abraxas:/etc/sysconfig/network # rcnetwork restart Shutting down network interfaces: br3000 name: Test-Net 300 Bridge br3000 done vlan300 name: Test-Net 300 VLAN Link vlan300 done br2200 name: Test-Net 200 Bridge br2200 done vlan200 name: Test-Net 200 VLAN Link vlan200 done bond0 is still used from interfaces eth0 eth1 eth0 device: nVidia Corporation MCP55 Ethernet (rev a2) eth1 device: nVidia Corporation MCP55 Ethernet (rev a2) bond0 now going down itself bond0 name: Ethernet Network Card 0 bond0 done eth0 device: nVidia Corporation MCP55 Ethernet (rev a2) eth0 done eth1 device: nVidia Corporation MCP55 Ethernet (rev a2) eth1 done Shutting down service network . . . . . . . . . done Hint: you may set mandatory devices in /etc/sysconfig/network/config Setting up network interfaces: eth0 device: nVidia Corporation MCP55 Ethernet (rev a2) eth0 done eth1 device: nVidia Corporation MCP55 Ethernet (rev a2) eth1 done bond0 name: Ethernet Network Card 0 bond0 enslaved interface: eth0 bond0 enslaved interface: eth1 bond0 Starting DHCP4 client. bond0 IP address: 172.16.2.3/24 bond0 IP address: 2001:6f8:10c4:2000::3/64 as bonding master bond0 done vlan200 name: Test-Net 200 VLAN Link vlan200 done br2200 name: Test-Net 200 Bridge br2200 Ports: [vlan200] br2200 forwarddelay (see man ifcfg-bridge) ... ready br2200 IP address: 172.16.200.3/24 Checking for ISC DHCPv4 4.x Server: running Shutting down ISC DHCPv4 4.x Server done Starting ISC DHCPv4 4.x Server [chroot] done Checking for ISC DHCPv6 4.x Server: unused br2200 done vlan300 name: Test-Net 300 VLAN Link vlan300 done br3000 name: Test-Net 300 Bridge br3000 Ports: [vlan300] br3000 forwarddelay (see man ifcfg-bridge) ... ready br3000 done Setting up service network . . . . . . . . . . done abraxas:/etc/sysconfig/network # cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009) Bonding Mode: fault-tolerance (active-backup) (fail_over_mac active) Primary Slave: None Currently Active Slave: eth0 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:17:31:ca:a3:92 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:17:31:ca:a5:a5 *** This bug has been marked as a duplicate of bug 572367 *** -- 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=572367 https://bugzilla.novell.com/show_bug.cgi?id=572367#c11 --- Comment #11 from LTC BugProxy <bugproxy@us.ibm.com> 2010-09-13 09:12:23 UTC --- ------- Comment From tstaudt@de.ibm.com 2010-09-13 05:07 EDT------- Externalizing previous comment from Ihnken Menssen: (In reply to comment #9)
Script successful verified! Thanks
(In reply to comment #8)
Created an attachment (id=56420) --> (http://bugzilla.novell.com/attachment.cgi?id=56420) [details] [details] Fixed ifup-bondig script
This script version fixes a problem when ifup bondX gets called twice and handles the options exactly. Please give it a test!
-- 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