[Pkg-xen-devel] Bug#655581: Bug#655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding.

Ian Campbell ijc at hellion.org.uk
Thu Jan 12 17:08:22 UTC 2012


On Thu, 2012-01-12 at 14:04 +0000, Philip Ward wrote:
> Package: xen-utils-common
> Version: 4.0.0-1
> Severity: important
> 
> 
> If using ethernet bonding and network-bridge with xen the network-bridge scripts breaks the network.

Probably the best thing to do is not to use this script and setup your
host networking directly, per
http://wiki.xen.org/wiki/HostConfiguration/Networking .

As you've observed the machinations which the network-bridge script goes
through to try and tear down and rebuild the network config is fraught
with difficulties and nasty corner cases, that is why we upstream have
deprecated the network-* scripts in favour of recommending the use of
the distro provided network configuration tools.

Ian.
> 
> I have run through the commands manually in irder to establish the culprit.
> In the op_start function (Starting on line 214) everything is fine up until line 251.
> At this point the bridge has been created, devices renamed and the network is fine, but then
> it runs do_ifup {$bridge}. In this function on line 111 it does ifup $1.
> This breaks everything.
> My solution is to surround the do_ifup ${bridge} line with a condition:
> if [ ! -n "${slaves}" ]; then
>     do_ifup {$bridge}
> fi
> 
> -- System Information:
> Debian Release: 6.0.3
>   APT prefers stable
>   APT policy: (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/16 CPU cores)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages xen-utils-common depends on:
> ii  gawk                    1:3.1.7.dfsg-5   GNU awk, a pattern scanning and pr
> ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
> ii  udev                    164-3            /dev/ and hotplug management daemo
> ii  xenstore-utils          4.0.1-4          Xenstore utilities for Xen
> 
> xen-utils-common recommends no packages.
> 
> xen-utils-common suggests no packages.
> 
> -- Configuration Files:
> /etc/default/xendomains changed:
> XENDOMAINS_SYSRQ=""
> XENDOMAINS_USLEEP=100000
> XENDOMAINS_CREATE_USLEEP=5000000
> XENDOMAINS_MIGRATE=""
> XENDOMAINS_SAVE=
> XENDOMAINS_SHUTDOWN="--halt --wait"
> XENDOMAINS_SHUTDOWN_ALL="--all --halt --wait"
> XENDOMAINS_RESTORE=true
> XENDOMAINS_AUTO=/etc/xen/auto
> XENDOMAINS_AUTO_ONLY=false
> XENDOMAINS_STOP_MAXWAIT=300
> 
> /etc/xen/xend-config.sxp changed:
> (network-script network-bridge)
> (vif-script vif-bridge)
> (dom0-min-mem 196)
> (enable-dom0-ballooning yes)
> (total_available_memory 0) 
> (dom0-cpus 0)
> (vncpasswd '')
> 
> 
> -- no debconf information
> 

-- 
Ian Campbell
Current Noise: Monster Magnet - Take It

I tell ya, I was an ugly kid.  I was so ugly that my dad kept the kid's
picture that came with the wallet he bought.
		-- Rodney Dangerfield






More information about the Pkg-xen-devel mailing list