[Bug 572186] New: VLAN - multiple configuration of the same vlan ethX.Y
http://bugzilla.novell.com/show_bug.cgi?id=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c0 Summary: VLAN - multiple configuration of the same vlan ethX.Y Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: adrian.ban@mantech.ro QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729) I found a strange bug in network configuration if i got two vlans with same ID, let's say VID 17, and two interfaces, let's say eth0 and bond0 (bond0 using eth1,eth2,eth3 and eth4) Starting the configuration eth0.17 from ifcfg-eth0.11 works fine ifcfg-eth0.11: BOOTPROTO='static' ETHERDEVICE='eth0' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='A.B.C.D/28' MTU='' NAME='VLAN 11 - Servers Interconnect' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='auto' USERCONTROL='no' But if i add a new vlan 11 on bond0 with ifcfg-bond0.11: BOOTPROTO='static' ETHERDEVICE='bond0' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='A.B.C.E/28' MTU='' NAME='VLAN 11 - Servers Interconnect' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='auto' USERCONTROL='no' The /etc/init.d/network start bond0.11 returns me: PPPoE1:/etc/sysconfig/network/scripts # /etc/init.d/network start bond0.11 Hint: you may set mandatory devices in /etc/sysconfig/network/config Setting up network interfaces: bond0.11 name: VLAN 11 - Servers Interconnect ERROR: unable to rename vlan interface 'eth0.11 bond0.11' to 'bond0.11': Cannot find device "eth0.11 bond0.11" ERROR: if_name must be 15 characters or less. bond0.11 Trying some echo for debug in ifup-802.1q at line 195: # Don't hurry too much udevadm settle viface=`get_vlan_iface_name "$nr"` echo $INTERFACE $viface if test "x$viface" = x ; then bond0.11 name: VLAN 11 - Servers Interconnect bond0.11 eth0.11 bond0.11 ERROR: unable to rename vlan interface 'eth0.11 It seems that get_vlan_iface_name "$nr" returns both of interfaces: eth0.11 bond0.11 Reproducible: Always Steps to Reproduce: 1. create ifcfg-eth0.11 and ifcfg-bond0.11 2. fireup the eth0.11 and after that bond0.11 Actual Results: Script failed to fireup complety the second vlan with same VID but different interface. Expected Results: I should start up both interfaces with no problems -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c1 --- Comment #1 from Adrian Ban <adrian.ban@mantech.ro> 2010-01-20 11:37:27 UTC --- I make some researches and i got a fix for this: in function: get_vlan_iface_name() i've added a sanitycheck with etherdev: get_vlan_iface_name() { awk -v vid="$1" -v etherdev="$2" -- 'BEGIN{ nt=0; } /^Name-Type:/ { nt=1; next; } nt && $3 == vid && $5 == etherdev { print $1; }' \ /proc/net/vlan/config 2>/dev/null } and viface=`get_vlan_iface_name "$nr"` changed to viface=`get_vlan_iface_name "$nr" "$ETHERDEVICE"` I think this fix should be enough. -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c2 --- Comment #2 from Marius Tomaschewski <mt@novell.com> 2010-01-21 15:18:55 UTC --- yes sure, looks good, thanks! -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c4 --- Comment #4 from Marius Tomaschewski <mt@novell.com> 2010-01-21 15:55:36 UTC --- Created an attachment (id=338037) --> (http://bugzilla.novell.com/attachment.cgi?id=338037) The correction as patch -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c5 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |maintenance@opensuse.org, | |meissner@novell.com Info Provider|meissner@novell.com | --- Comment #5 from Marcus Meissner <meissner@novell.com> 2010-01-21 16:20:40 UTC --- if its not yet checked in, I am fine with it. -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c6 --- Comment #6 from Marius Tomaschewski <mt@novell.com> 2010-01-21 16:54:09 UTC --- OK, submit request is: 30230 State:new By:mtomaschewski When:2010-01-21T17:35:09 submit: home:mtomaschewski:branches:openSUSE:11.2/sysconfig -> openSUSE:11.2:Update:Test Descr: 'fix for bug 572186' Going to update swampid 30228 patchinfo for 11.2. -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c7 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Marius Tomaschewski <mt@novell.com> 2010-01-22 11:40:08 UTC --- submitted package and patchinfo -- 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=572186 http://bugzilla.novell.com/show_bug.cgi?id=572186#c8 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.2:30409 --- Comment #8 from Swamp Workflow Management <swamp@suse.com> 2010-02-01 11:01:21 UTC --- Update released for: sysconfig, sysconfig-debuginfo, sysconfig-debugsource Products: openSUSE 11.2 (debug, i586, 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.
participants (1)
-
bugzilla_noreply@novell.com