[ovs-discuss] ovs-vswitchd crashes when add or delete dpdk port

Numan Siddique nusiddiq at redhat.com
Mon Jan 7 14:10:41 UTC 2019


On Mon, Jan 7, 2019 at 7:05 PM txfh2007 via discuss <
ovs-discuss at openvswitch.org> wrote:

> Hi all:
>     I am running ovs with dpdk(version: ovs: 2.10.1,  dpdk:17.11.4), and
> the ovs bridge topo is as below, I have found a problem when I add dpdk
> port or delete this port, the command is "ovs-vsctl add-port br-prv dpdk0
> -- set Interface dpdk0 type=dpdk options:dpdk-devargs=0000:05:00.0"
> ,after add dpdk port, the ovs-vswitchd process crashes.The gdb trace
> results show when add dpdk port on bridge br-prv, the
> 'connmgr_send_port_status' has been called, but the ofconn->protocol is
> unknown, then the process aborted. When I delete this port on br-prv,
> ovs-vswitchd also crashes, gdb trace result is below.
>     Can anyone tell me if I was wrong, and what should I do to solve this
> problem.
>     Many thanks!!
>
>       Bridge br-prv
>         Controller "tcp:127.0.0.1:6633"
>             is_connected: true
>         fail_mode: secure
>         Port phy-br-prv
>             Interface phy-br-prv
>                 type: patch
>                 options: {peer=int-br-prv}
>         Port br-prv
>             Interface br-prv
>                 type: internal
>
>
>         Program received signal SIGABRT, Aborted.
>         0x00007f15770f91d7 in raise () from /lib64/libc.so.6
>         (gdb) bt
>         #0  0x00007f15770f91d7 in raise () from /lib64/libc.so.6
>         #1  0x00007f15770fa8c8 in abort () from /lib64/libc.so.6
>         #2  0x000000000072c945 in ofputil_protocol_to_ofp_version
> (protocol=(unknown: 0)) at lib/ofp-protocol.c:123
>         #3  0x0000000000726052 in ofputil_encode_port_status
> (ps=0x7ffdc6e20260, protocol=(unknown: 0)) at lib/ofp-port.c:938
>         #4  0x000000000065f4bd in connmgr_send_port_status (mgr=0x2894f80,
> source=0x0, pp=0x28dcc00, reason=2 '\002')
>             at ofproto/connmgr.c:1654
>         #5  0x00000000006105f5 in update_port (ofproto=0x288cad0,
> name=0x2890940 "br-prv") at ofproto/ofproto.c:2652
>         #6  0x000000000060e8c7 in ofproto_run (p=0x288cad0) at
> ofproto/ofproto.c:1818
>         #7  0x00000000005ff077 in bridge_run__ () at vswitchd/bridge.c:2944
>         #8  0x00000000005ff255 in bridge_run () at vswitchd/bridge.c:3002
> #9  0x000000000060481e in main (argc=12, argv=0x7ffdc6e20698) at
> vswitchd/ovs-vswitchd.c:125
>

This crash  is fixed by this commit -
https://github.com/openvswitch/ovs/commit/903f6c4f8a9bce51984435ca3990f2717c63f703
I think it's also backported to 2.10 branch.

Can you please try with this commit.

Thanks
Numan


_______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190107/b3f5829b/attachment.html>


More information about the discuss mailing list