[Bug 908375] wicked: bridges with stp don't come up
http://bugzilla.opensuse.org/show_bug.cgi?id=908375 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED CC| |mt@suse.com Resolution|--- |INVALID --- Comment #5 from Marius Tomaschewski <mt@suse.com> --- I'd say, add a dummy port to it: # cat ifcfg-dummy0 STARTMODE=auto BOOTPROTO=none LLADDR='d2:30:36:67:91:ea' # cat ifcfg-br1 STARTMODE=auto BOOTPROTO=static BRIDGE='yes' BRIDGE_STP=on BRIDGE_PORTS='dummy0' # wicked ifup br1 br1 up # ip a s dev dummy0 234: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master br1 state UNKNOWN group default link/ether d2:30:36:67:91:ea brd ff:ff:ff:ff:ff:ff # ip a s dev br1 235: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether d2:30:36:67:91:ea brd ff:ff:ff:ff:ff:ff inet6 fe80::d030:36ff:fe67:91ea/64 scope link valid_lft forever preferred_lft forever (I've also set LLADDR='d2:30:36:67:91:ea' to keep the bridge MAC stable; otherwise e.g. Windows VMs added to the bridge later will complain about new network on each start.) Further, I don't see any bug here: wicked reports the interface is not yet ready -- because it didn't reached UP state. Older (ifup/sysconfig) versions simply didn't checked the carrier / UP state at all (but only the administrative UP if at all), that is, this is a fix/feature, not a bug to report the state correctly: the setUP is not complete. When nanny use is not disarmed (use-nanny in /etc/wicked/common.xml) as it currently is by default [management decision, not my idea], nanny will continue with further setup of the interface (ip verify and setup/dhcp/...) when the bridge goes up later (e.g. you add a port to it). With enabled STP the bridge wants to check for loops -- without port is cannot. IMO the right behavior from the kernel here to handle it. When you create a bridge with STP=off and a port without carrier, it will use the carrier state of this port and not go UP either: # cat ifcfg-eth1 STARTMODE='auto' BOOTPROTO='none' # cat ifcfg-br1 STARTMODE=auto BOOTPROTO=static BRIDGE='yes' BRIDGE_STP=off BRIDGE_PORTS='eth1' # wicked ifup br1 br1 setup-in-progress # ip a s eth1 6: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br1 state DOWN group default qlen 1000 link/ether a0:ce:c8:01:91:8b brd ff:ff:ff:ff:ff:ff # ip a s br1 236: br1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether a0:ce:c8:01:91:8b brd ff:ff:ff:ff:ff:ff inet6 fe80::802f:3ff:fe79:a81a/64 scope link valid_lft forever preferred_lft forever -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com