WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: network-bridge fails leaving tmpbridge around

To: "Richard W.M. Jones" <rjones@xxxxxxxxxx>
Subject: [Xen-users] Re: network-bridge fails leaving tmpbridge around
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Fri, 11 May 2007 12:51:18 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 11 May 2007 04:49:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46444FB4.7060500@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46444FB4.7060500@xxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Fri, May 11, 2007 at 12:12:52PM +0100, Richard W.M. Jones wrote:
> 'service xend start' is failing in the network-bridge script.  It fails 
> in such a way as to kill the network completely and leave tmpbridge around.

Can you capture

  ifconfig -a
  brctl show
  ip route show

Before & after doing the service xend start. 

> 
> I modified network-bridge by adding at the top:
> 
>       #!/bin/bash
>       
>       exec 2>/tmp/log
>       set -x
> 
> so that I could see what commands are failing.  The complete log is 
> attached, but it turns out that the last thing logged is:
> 
>       + ifdown eth0
>       + ip link set eth0 name peth0
>       + ip link set tmpbridge name eth0
>       SIOCSIFNAME: Device or resource busy

I'm puzzelled how the eth0 name can be busy, when we just renamed
it (apparently without error) to be peth0 instead.

> so it would seem to be failing here:
> 
>       op_start () {
>       #...
>       #...
>           if ! ifdown ${netdev}; then
>               # If ifdown fails, remember the IP details.
>               get_ip_info ${netdev}
>               ip link set ${netdev} down
>               ip addr flush ${netdev}
>           fi
>           ip link set ${netdev} name ${pdev}
>           ip link set ${tdev} name ${bridge}    <--- fails
> 
> It's strange because tmpbridge has just been created and eth0 is down, 
> so how can either device be busy?

Indeed, very odd.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users