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-devel

[Xen-devel] RE: new /etc/xen/network script

To: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>, "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>
Subject: [Xen-devel] RE: new /etc/xen/network script
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Tue, 16 Aug 2005 16:41:25 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 16 Aug 2005 15:39:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWieEWe60UyKVLaQo6C3n6ZjzNwMwAAHJMg
Thread-topic: new /etc/xen/network script
> ian,
> as the discussion in this thread, service os netwok will 
> break after xend start.
> this simple patch can work on my mahine. 
> but strange error still occur in xend.log and xend start 
> takes more time with ifdown/ifup.

I guess the patch can't do any harm, but why doesn't ifdown remove the
routes?

Before starting xend, please can you post the output of the following
sequence:

  ifconfig
  ifdown eth0
  ifconfig

Thanks,
Ian
 
 
> @@ -192,6 +192,7 @@
>         ifconfig p${netdev} -arp down
>         ifconfig p${netdev} hw ether fe:ff:ff:ff:ff:ff
>         ifconfig ${netdev} hw ether ${mac}
> +       del_addrs p${netdev}
>         add_to_bridge ${bridge} vif0.0
>         add_to_bridge ${bridge} p${netdev}
>         ip link set vif0.0 up
> 
> 
> --------------xend.log------------------------
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + set -e
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + OP=start
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + shift
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + for arg in '"$@"'
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + export bridge=xen-br0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + bridge=xen-br0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + for arg in '"$@"'
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + export antispoof=no
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + antispoof=no
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + bridge=xen-br0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + netdev=eth0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + antispoof=no
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + echo '*network start bridge=xen-br0 
> netdev=eth0 antispoof=no'
> [2005-08-16 23:14:19 xend] INFO (__init__:988) 
> [network-bridge] network start bridge=xen-br0 netdev=eth0 antispoof=no
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + case ${OP} in
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + op_start
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] + '['
> xen-br0 == null ']'
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + create_bridge xen-br0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + local bridge=xen-br0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + brctl show
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + grep -q xen-br0
> [2005-08-16 23:14:19 xend] INFO (__init__:988) EVENT> xend.start 0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + brctl addbr xen-br0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + brctl stp xen-br0 off
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + brctl setfd xen-br0 0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + ifconfig xen-br0 up
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + ifconfig
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + grep -q veth0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + ifconfig veth0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + grep -q veth0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] ++ ifconfig eth0
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] ++ grep HWadd
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] ++ sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + mac=00:0C:F1:FE:4C:5B
> [2005-08-16 23:14:19 xend] ERROR (__init__:988) 
> [network-bridge] + ifdown eth0
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + ip link set eth0 name peth0
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + ip link set veth0 name eth0
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + ifconfig peth0 -arp down
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + ifconfig peth0 hw ether fe:ff:ff:ff:ff:ff
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + ifconfig eth0 hw ether 00:0C:F1:FE:4C:5B
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + del_addrs peth0
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + local src=peth0
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + ip addr show dev peth0
> [2005-08-16 23:14:20 xend] ERROR (__init__:988) 
> [network-bridge] + egrep '^ *inet '
> 
> Best Rgds
> Edwin
> 
> 
> 

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