From: Guillaume Rousse <Guillaume.Rousse@inria.fr>
To: xen-devel@lists.xensource.com
Subject: xend crash at startup
Date: Mon, 05 Nov 2007 18:30:28 +0100 [thread overview]
Message-ID: <472F5334.9050401@inria.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
xend crashes at startup with following stack trace:
...
File "/usr/lib64/python/xen/xend/XendPIF.py", line 68, in
linux_get_phy_ifaces
phy_ifaces.append((name, int(mtu), bridged_mac))
UnboundLocalError: local variable 'bridged_mac' referenced before assignment
The simple patch attached below prevent the crash, and allow xend to
start normally.
It seems the crash happens when bridged_ifname is set to eth2, whereas
eth2 doesn't appear in ip -o link show.
I'm joining output of 'ifconfig', 'ip -o link', and 'brctl show'.
--
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62
[-- Attachment #2: prevent-xend-crash-when-no-iface-found.patch --]
[-- Type: text/x-patch, Size: 506 bytes --]
--- /usr/lib64/python/xen/xend/XendPIF.py 2007-05-18 16:45:21.000000000 +0200
+++ XendPIF.py 2007-11-05 18:22:56.000000000 +0100
@@ -61,6 +61,7 @@
if name[0] == 'p' and mac == 'fe:ff:ff:ff:ff:ff':
bridged_ifname = linux_phy_to_virt(name)
bridged_if = ifaces.get(bridged_ifname)
+ bridged_mac = ''
if bridged_if:
bridged_mac = bridged_if[2]
phy_ifaces.append((name, int(mtu), bridged_mac))
[-- Attachment #3: brctl.output --]
[-- Type: text/plain, Size: 258 bytes --]
bridge name bridge id STP enabled interfaces
administratif 8000.feffffffffff no peth2
dmz 8000.feffffffffff no peth3
recherche 8000.feffffffffff no peth1
services 8000.feffffffffff no vif0.0
peth0
vif2.0
xenbr0 8000.000000000000 no
[-- Attachment #4: ifconfig.output --]
[-- Type: text/plain, Size: 5039 bytes --]
administratif Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:3034 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:305104 (297.9 KiB) TX bytes:0 (0.0 b)
dmz Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:447 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:106353 (103.8 KiB) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 00:1A:A0:14:A9:53
inet adr:193.51.235.19 Bcast:193.51.235.63 Masque:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:211728 errors:0 dropped:0 overruns:0 frame:0
TX packets:150507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:247843263 (236.3 MiB) TX bytes:67882172 (64.7 MiB)
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:6712 (6.5 KiB) TX bytes:6712 (6.5 KiB)
peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:220556 errors:0 dropped:0 overruns:0 frame:0
TX packets:164769 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:249622348 (238.0 MiB) TX bytes:69630057 (66.4 MiB)
Interruption:16 Mémoire:f8000000-f8011100
peth1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:25464 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:2958983 (2.8 MiB) TX bytes:0 (0.0 b)
Interruption:16 Mémoire:f4000000-f4011100
peth2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:9703 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:786995 (768.5 KiB) TX bytes:0 (0.0 b)
Adresse de base:0xecc0 Mémoire:fc5e0000-fc600000
peth3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:7100 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:541022 (528.3 KiB) TX bytes:0 (0.0 b)
Adresse de base:0xec80 Mémoire:fc5c0000-fc5e0000
recherche Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:18341 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:2154136 (2.0 MiB) TX bytes:0 (0.0 b)
services Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:19473 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:3365681 (3.2 MiB) TX bytes:0 (0.0 b)
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:150747 errors:0 dropped:0 overruns:0 frame:0
TX packets:212225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:67923236 (64.7 MiB) TX bytes:247900044 (236.4 MiB)
vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:1529 errors:0 dropped:0 overruns:0 frame:0
TX packets:53338 errors:0 dropped:18536 overruns:0 carrier:0
collisions:0 lg file transmission:32
RX bytes:199763 (195.0 KiB) TX bytes:43411929 (41.4 MiB)
xenbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[-- Attachment #5: ip.output --]
[-- Type: text/plain, Size: 2478 bytes --]
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue \ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: vif0.0: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc noqueue \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue \ link/ether 00:1a:a0:14:a9:53 brd ff:ff:ff:ff:ff:ff
4: vif0.1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
5: veth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop \ link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
6: vif0.2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
7: veth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop \ link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
8: vif0.3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
9: veth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop \ link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
10: peth1: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
11: peth2: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
12: peth3: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
13: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000\ link/ether 00:0e:0c:db:3e:36 brd ff:ff:ff:ff:ff:ff
14: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000\ link/ether 00:0e:0c:db:3e:37 brd ff:ff:ff:ff:ff:ff
15: peth0: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
16: services: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc noqueue \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
17: recherche: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc noqueue \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
18: administratif: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc noqueue \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
19: dmz: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc noqueue \ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
20: xenbr0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue \ link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
22: vif2.0: <BROADCAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 32\ link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
[-- Attachment #6: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2007-11-05 17:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 17:30 Guillaume Rousse [this message]
2007-12-06 17:46 ` xend crash at startup Guillaume Rousse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=472F5334.9050401@inria.fr \
--to=guillaume.rousse@inria.fr \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.