[Bug 1313796] Re: [No Network] ifupdown/bridge-utils & udev/bridge-utils race condition preventing the addition of non-pre-up ports to a bridge

giox069 1313796 at bugs.launchpad.net
Fri Nov 7 23:30:50 UTC 2014


I can confirm the problem in Ubuntu 14.04.1 server: I configured a
bridge for openvpn:

iface br0 inet static
	address 192.168.1.6
	netmask 255.255.255.0
	gateway 192.168.1.1
	bridge_ports eth0 tap0
	dns-nameservers 192.168.1.1
	dns-search mydomain.com
	pre-up openvpn --mktun --dev tap0
	post-down openvpn --rmtun --dev tap0

and for 50% of computer boots (20% on a slower pc) the br0 setup fails
and contains only tap0.

After some debugging, here are my guesses: I found that "brctl addbr br0" is called twice: from /lib/bridge-utils/ifupdown.sh and from /lib/udev/bridge-network-interface (the second one via udev due to openvpn --mktun ???).
When ifupdown.sh is called after bridge-network-interface, "brctl addbr br0" fails and returns nonzero, so the script exits and no interface are added to br0.
When the two scripts are called in the reverse order, all seems to work fine.

I used the proposed workaround to put BRIDGE_HOTPLUG=no /etc/default
/bridge-utils in and now my system is working.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bridge-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1313796

Title:
  [No Network] ifupdown/bridge-utils & udev/bridge-utils race condition
  preventing the addition of non-pre-up ports to a bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bridge-utils/+bug/1313796/+subscriptions



More information about the Ubuntu-server-bugs mailing list