Bug 343600

Summary: create bridges with assigned vlan interfaces doesn't work on boot time
Product: [openSUSE] openSUSE 10.3 Reporter: Sebastian Reitenbach <reitenbach>
Component: NetworkAssignee: Marius Tomaschewski <mt>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE 10.3   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /etc/init.d/network script from sysconfig-0.70.4.

Description Sebastian Reitenbach 2007-11-22 09:53:49 UTC
With vlan interfaces configured like this:
STARTMODE=onboot
ETHERDEVICE=eth1

And bridges configured like this:
STARTMODE='auto'
ETHTOOL_OPTIONS=''
USERCONTROL='no'
BRIDGE='yes'
BRIDGE_PORTS='vlan3'
LINK_OPTIONS="multicast on"

This is needed to enabled vlans in Xen domU's.

The correct configuration of the bridge will not work, because of the order the devices are created. The bridges are created before the vlan interfaces. 

The problem is in /etc/init.d/network, and that patch fixed it for me:



--- network     2007-11-22 10:47:24.000000000 +0100
+++ network.new 2007-11-22 10:46:58.000000000 +0100
@@ -458,7 +458,7 @@
                        err_mesg "$b has unknown interface type. Please file a bug report."
                        ;;
        esac
-done < <(ls -d /etc/sysconfig/network/ifcfg-*)
+done < <(ls -d /etc/sysconfig/network/ifcfg-* | tac)

 # Now get all available interfaces drop lo and separate them into physical and
 # not physical. Then get AVAILABLE_IFACES sorted to shutdown the not physical



maybe there is a better solution, don't know.
Comment 1 Christian Zoz 2008-01-16 09:11:44 UTC
Afaik this problem is already fixed in sysconfig svn. But i'm not sure, because this is not a exact duplicate of bug 343844.
Comment 2 Marius Tomaschewski 2008-01-18 08:07:38 UTC
Created attachment 190961 [details]
/etc/init.d/network script from sysconfig-0.70.4.

Yes, this Bug is not exactly a duplicate of bug #343844, but the fixes
we've done in sysconfig-0.70.4 / openSUSE_Factory consider this scenario
as well.
Comment 3 Marius Tomaschewski 2008-01-18 08:09:05 UTC
Sebastian, can you test if the script attached above works for you?
Comment 4 Marius Tomaschewski 2008-04-25 10:11:22 UTC
fixed in last update (09-Apr-2008); marking as duplicate of bug #343844
(not exactly same, but same problem source).

*** This bug has been marked as a duplicate of bug 343844 ***