Philip Ward
2012-Jan-12 14:04 UTC
[Pkg-xen-devel] Bug#655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding.
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. 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_SAVEXENDOMAINS_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 -- The Sunday Times Scottish University of the Year 2009/2010 The University of Stirling is a charity registered in Scotland, number SC 011159.
Debian Bug Tracking System
2012-Jan-12 15:54 UTC
[Pkg-xen-devel] Bug#655581: marked as done (xen-utils-common: network-bridge breaks the network setup when using ethernet bonding.)
Your message dated Thu, 12 Jan 2012 16:50:34 +0100 with message-id <20120112155034.GB9722 at wavehammer.waldi.eu.org> and subject line Re: [Pkg-xen-devel] Bug#655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding. has caused the Debian Bug report #655581, regarding xen-utils-common: network-bridge breaks the network setup when using ethernet bonding. to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 655581: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655581 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Philip Ward <p.g.ward at stir.ac.uk> Subject: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding. Date: Thu, 12 Jan 2012 14:04:20 +0000 Size: 4257 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120112/0d0922a8/attachment.mht> -------------- next part -------------- An embedded message was scrubbed... From: Bastian Blank <waldi at debian.org> Subject: Re: [Pkg-xen-devel] Bug#655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding. Date: Thu, 12 Jan 2012 16:50:34 +0100 Size: 1958 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120112/0d0922a8/attachment-0001.mht>
Philip Ward
2012-Jan-12 16:21 UTC
[Pkg-xen-devel] Bug#655581: closed by Bastian Blank <waldi@debian.org> (Re: Bug#655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding.)
Thanks for looking into this. I have had a look at the README.debian that comes with the package, and indeed it states that adding (network-script network-bridge) may or may not work. However the instructions for setting up Xen on Squeeze at http://wiki.debian.org/Xen#Installation_on_squeeze tells users to uncomment the network-bridge line in xend-config.sxp and to build your own bridge if it does not work. Should the wiki page be updated to tell users not to use the xen scripts and instead build their own bridges? If so I'll email the maintainer of the wiki page. Phil. On 12/01/12 15:54, Debian Bug Tracking System wrote:> This is an automatic notification regarding your Bug report > which was filed against the xen-utils-common package: > > #655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding. > > It has been closed by Bastian Blank<waldi at debian.org>. > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Bastian Blank<waldi at debian.org> by > replying to this email. > >-- Philip Ward Unix Systems Administrator 01786 467274 (ext 7274) -- The Sunday Times Scottish University of the Year 2009/2010 The University of Stirling is a charity registered in Scotland, number SC 011159.
Ian Campbell
2012-Jan-12 17:08 UTC
[Pkg-xen-devel] Bug#655581: Bug#655581: xen-utils-common: network-bridge breaks the network setup when using ethernet bonding.
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
Maybe Matching Threads
- Bug#772274: xen-utils-common: when upgrading package: insserv: Service xenstored has to be enabled to start service xendomains
- Bug#682750: xen-utils-common: guests detection broken for shutdown
- Bug#655581: solution
- How to auto-start Guests when using 'xl' toolstack? 'old' configs in /etc/xen/auto/ are ignored without xend service active.
- Bug#742397: xen-utils-common: /etc/init.d/dom0weight is hardcoded to use xm