[ovs-discuss] userspace ovs crashing assertion `!b->size' fails in ofbuf.c

Hassan Khan hassan.khan at seecs.edu.pk
Sat Feb 19 15:32:13 UTC 2011


Hi Ben,

The following bug can also be reproduced in wdp branch in userspace. Any
help will be appreciated.


Best,

Hassan Khan

NUST-SEECS



Hi,

I have a very simple topology that I want to test for a userspace L2 OVS (I
have tested the same topology for kernel space OVS and that does not crash).
The switch has two NICs and two PCs are attached to it with IP addresses in
the same subnet. For installation of OVS the Install.userspace guide was
followed. Everything works fine when I create bridge and add Ethernet
interfaces to it. However, when one of the machine tries to ping other,
ovs-vswitchd crashes with following error message:



ovs-vswitchd: lib/ofpbuf.c:239: ofpbuf_reserve: Assertion `!b->size' failed.



Details of OVS are:

The Open vSwitch version number that I am using is 'ovs-vswitchd (Open
vSwitch) 1.1.0pre2'
This GIT commit was made on Sun, 6 Feb 2011 04:58:12 (as I am using the web
interface so I cannot tell the exact git commit number).
No local patches or changes were applied.
The cond.db file is attached


Complete log is provided here:



*>>>>>ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock*

Feb 14
20:10:03|00001|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connecting...

Feb 14
20:10:03|00002|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connected

Feb 14 20:10:03|00003|xfif_linux|ERR|/proc/devices: openvswitch major not
found (is the module loaded?)

Feb 14 20:10:03|00004|xfif|WARN|failed to enumerate system datapaths: No
such device

Feb 14 20:10:03|00005|wdp|WARN|failed to enumerate system datapaths: No such
device



*>>>>>*ovs-vsctl set bridge br0 datapath_type=netdev



Feb 14 20:14:53|00006|xfif_linux|ERR|/proc/devices: openvswitch major not
found (is the module loaded?)

Feb 14 20:14:53|00007|xfif|WARN|failed to create datapath br0: No such
device

Feb 14 20:14:53|00008|wdp|WARN|failed to create datapath br0: No such device

Feb 14 20:14:53|00009|ofproto|ERR|failed to open datapath br0: No such
device

Feb 14 20:14:53|00010|bridge|ERR|failed to create switch br0: No such device

Feb 14 20:15:27|00011|ofproto|INFO|using datapath ID 0000468e606a7bf6

Feb 14 20:15:27|00012|bridge|INFO|created bridge br0 on netdev at br0

Feb 14 20:15:27|00013|bridge|INFO|created port br0 on bridge br0

Feb 14 20:15:27|00014|bridge|WARN|bridge br0: using default bridge Ethernet
address 00:23:20:80:bd:fe

Feb 14 20:15:27|00015|xenserver|INFO|not running on a XenServer

Feb 14 20:15:27|00016|ofproto|INFO|datapath ID changed to 000000232080bdfe

Feb 14 20:15:27|00017|bridge|WARN|bridge br0: using default bridge Ethernet
address 00:23:20:80:bd:fe

Feb 14 20:15:28|00018|netdev_vport|ERR|failed to open ioctl fd: No such file
or directory



*>>>>>*ovs-vsctl add-port br0 eth1





Feb 14 20:17:16|00019|bridge|INFO|created port eth1 on bridge br0

Feb 14 20:17:16|00020|ofproto|INFO|datapath ID changed to 0000002564d53100

Feb 14 20:17:16|00021|timeval|WARN|9 ms poll interval (0 ms user, 4 ms
system) is over 14 times the weighted mean interval 1 ms (440 samples)

Feb 14 20:17:16|00022|timeval|WARN|faults: 2 minor, 0 major

Feb 14 20:17:16|00023|timeval|WARN|context switches: 1 voluntary, 0
involuntary

Feb 14 20:17:16|00024|coverage|INFO|Event coverage (epoch 440/entire run),
hash=a9406524:

Feb 14 20:17:16|00025|coverage|INFO|bridge_flush                 2 /
4

Feb 14 20:17:16|00026|coverage|INFO|bridge_reconfigure           1 /
5

Feb 14 20:17:16|00027|coverage|INFO|hmap_expand                 26 /
1174

Feb 14 20:17:16|00028|coverage|INFO|netdev_ethtool               4 /
12

Feb 14 20:17:16|00029|coverage|INFO|netdev_get_hwaddr            1 /
2

Feb 14 20:17:16|00030|coverage|INFO|netdev_get_ifindex           1 /
3

Feb 14 20:17:16|00031|coverage|INFO|netdev_get_vlan_vid          1 /
1

Feb 14 20:17:16|00032|coverage|INFO|netdev_set_hwaddr            1 /
2

Feb 14 20:17:16|00033|coverage|INFO|netdev_set_policing          2 /
4

Feb 14 20:17:16|00034|coverage|INFO|netlink_received             5 /
53

Feb 14 20:17:16|00035|coverage|INFO|netlink_sent                 2 /
27

Feb 14 20:17:16|00036|coverage|INFO|poll_fd_wait                10 /
2688

Feb 14 20:17:16|00037|coverage|INFO|poll_zero_timeout            1 /
69

Feb 14 20:17:16|00038|coverage|INFO|rtnetlink_changed            2 /
3

Feb 14 20:17:16|00039|coverage|INFO|util_xalloc                872 /
46844

Feb 14 20:17:16|00040|coverage|INFO|wdp_port_add                 1 /
1

Feb 14 20:17:16|00041|coverage|INFO|wx_add_wc_flow               1 /
3

Feb 14 20:17:16|00042|coverage|INFO|wx_revalidate                1 /
3

Feb 14 20:17:16|00043|coverage|INFO|xfif_port_add                1 /
1

Feb 14 20:17:16|00044|coverage|INFO|netdev_get_stats             0 /
44

Feb 14 20:17:16|00045|coverage|INFO|ofproto_flush                0 /
1

Feb 14 20:17:16|00046|coverage|INFO|pstream_open                 0 /
2

Feb 14 20:17:16|00047|coverage|INFO|stream_open                  0 /
1

Feb 14 20:17:16|00048|coverage|INFO|wdp_flow_flush               0 /
2

Feb 14 20:17:16|00049|coverage|INFO|wdp_purge                    0 /
1

Feb 14 20:17:16|00050|coverage|INFO|wx_expiration                0 /
108

Feb 14 20:17:16|00051|coverage|INFO|wx_flow_flush                0 /
2

Feb 14 20:17:16|00052|coverage|INFO|wx_update_port               0 /
1

Feb 14 20:17:16|00053|coverage|INFO|xfif_flow_flush              0 /
2

Feb 14 20:17:16|00054|coverage|INFO|xfif_flow_query_list         0 /
108

Feb 14 20:17:16|00055|coverage|INFO|xfif_port_group_set          0 /
4

Feb 14 20:17:16|00056|coverage|INFO|72 events never hit

Feb 14 20:17:18|00057|netdev_vport|ERR|failed to open ioctl fd: No such file
or directory

Feb 14 20:17:18|00058|netdev_vport|ERR|failed to open ioctl fd: No such file
or directory





*>>>>>*ovs-vsctl add-port br0 eth2



Feb 14 20:17:32|00059|bridge|INFO|created port eth2 on bridge br0

Feb 14 20:17:32|00060|timeval|WARN|15 ms poll interval (0 ms user, 4 ms
system) is over 24 times the weighted mean interval 1 ms (468 samples)

Feb 14 20:17:32|00061|timeval|WARN|faults: 1 minor, 0 major

Feb 14 20:17:32|00062|timeval|WARN|context switches: 1 voluntary, 2
involuntary

Feb 14 20:17:32|00063|coverage|INFO|Event coverage (epoch 468/entire run),
hash=86c2326a:

Feb 14 20:17:32|00064|coverage|INFO|bridge_flush                 2 /
6

Feb 14 20:17:32|00065|coverage|INFO|bridge_reconfigure           1 /
7

Feb 14 20:17:32|00066|coverage|INFO|hmap_expand                 23 /
1267

Feb 14 20:17:32|00067|coverage|INFO|netdev_ethtool               7 /
28

Feb 14 20:17:32|00068|coverage|INFO|netdev_get_hwaddr            1 /
5

Feb 14 20:17:32|00069|coverage|INFO|netdev_get_ifindex           1 /
6

Feb 14 20:17:32|00070|coverage|INFO|netdev_get_vlan_vid          1 /
3

Feb 14 20:17:32|00071|coverage|INFO|netdev_set_policing          3 /
9

Feb 14 20:17:32|00072|coverage|INFO|netlink_received             4 /
70

Feb 14 20:17:32|00073|coverage|INFO|netlink_sent                 2 /
37

Feb 14 20:17:32|00074|coverage|INFO|poll_fd_wait                11 /
2967

Feb 14 20:17:32|00075|coverage|INFO|poll_zero_timeout            1 /
72

Feb 14 20:17:32|00076|coverage|INFO|rtnetlink_changed            1 /
4

Feb 14 20:17:32|00077|coverage|INFO|util_xalloc                941 /
50853

Feb 14 20:17:32|00078|coverage|INFO|wdp_port_add                 1 /
2

Feb 14 20:17:32|00079|coverage|INFO|wx_add_wc_flow               1 /
5

Feb 14 20:17:32|00080|coverage|INFO|wx_revalidate                1 /
5

Feb 14 20:17:32|00081|coverage|INFO|xfif_port_add                1 /
2

Feb 14 20:17:32|00082|coverage|INFO|netdev_get_stats             0 /
56

Feb 14 20:17:32|00083|coverage|INFO|netdev_set_hwaddr            0 /
2

Feb 14 20:17:32|00084|coverage|INFO|ofproto_flush                0 /
1

Feb 14 20:17:32|00085|coverage|INFO|pstream_open                 0 /
2

Feb 14 20:17:32|00086|coverage|INFO|stream_open                  0 /
1

Feb 14 20:17:32|00087|coverage|INFO|wdp_flow_flush               0 /
2

Feb 14 20:17:32|00088|coverage|INFO|wdp_purge                    0 /
1

Feb 14 20:17:32|00089|coverage|INFO|wx_expiration                0 /
124

Feb 14 20:17:32|00090|coverage|INFO|wx_flow_flush                0 /
2

Feb 14 20:17:32|00091|coverage|INFO|wx_update_port               0 /
3

Feb 14 20:17:32|00092|coverage|INFO|xfif_flow_flush              0 /
2

Feb 14 20:17:32|00093|coverage|INFO|xfif_flow_query_list         0 /
124

Feb 14 20:17:32|00094|coverage|INFO|xfif_port_group_set          0 /
10

Feb 14 20:17:32|00095|coverage|INFO|72 events never hit

Feb 14 20:17:33|00096|netdev_vport|ERR|failed to open ioctl fd: No such file
or directory



>>>>ping from one of machines connected to switch



ovs-vswitchd: lib/ofpbuf.c:239: ofpbuf_reserve: Assertion `!b->size' failed.

Aborted



Any help will be appreciated.



Best,

Hassan Khan

NUST-SEECS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110219/77866d03/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf.db
Type: application/octet-stream
Size: 10328 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110219/77866d03/attachment-0004.obj>


More information about the discuss mailing list