[Pkg-xen-devel] Bug#625506: /etc/xen/scripts/network-bridge script fails with additional bridges
Moonwalker
moonwalker at hotbox.ru
Tue May 3 23:22:48 UTC 2011
Package: xen-utils-common
Version: 4.1.0~rc6-1
Recently I had troubles with creating more than one network bridge for my domU. For example, I have 2 domU running with xenbr0 bridge for both with peth0 and two vif#.0 interfaces in it. Everything is fine.
Now I need to run another one domU with a different bridge attached to a different interface. I'm trying to bring up a new bridge manually (before I change any config files or networking scripts):
/etc/xen/scripts/network-bridge start bridge=xenbr1 netdev=dummy0
But... If I already have xenbr0 up and running it will not work (and the script terminates absolutely silently, damn). It appears that the following statement in /etc/xen/scripts/network-bridge script causes such behaviour:
if [ `brctl show | wc -l` != 1 ]; then
return
fi
It seems that something is completely wrong here. Why should it check in a such way (counting command output lines, LOL) for _any_ bridges presence, not a specific one passed to the script?
With this condition removed the second bridge is created and brought up just as expected.
More information about the Pkg-xen-devel
mailing list