DPDK patches and discussions
 help / color / mirror / Atom feed
From: Deepak Gowda <deepak.dt06@gmail.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] Docker container OVS-dpdk: vhost_user_setup(): connect error
Date: Thu, 7 Nov 2019 16:13:49 +0530	[thread overview]
Message-ID: <CAM84qfptcctkG_0GBGj2LWYyN4hU=Q03nRCt206ZEaC46e734g@mail.gmail.com> (raw)
In-Reply-To: <CAM84qfqLK_KsE7PfjTzUSSgHV1rrFoX5TOdw8_o+H64hnpfENw@mail.gmail.com>

Also,

If i restart the ovs and try running the testpmd again,
I see this, from inside the container.

EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Probing VFIO support...
vhost_user_read(): Failed to recv msg hdr: -1 instead of 12.
vhost_user_sock(): Received msg failed: Connection reset by peer
virtio_user_dev_init(): get_features failed: Connection reset by peer
virtio_user_pmd_probe(): virtio_user_dev_init fails
vdev_probe(): failed to initialize virtio_user1 device
EAL: Bus (vdev) probe failed.

Seems like the daemon is crashing,
And i see this in the ovs-vswitchd.log when the testpmd fails,

2019-11-07T07:31:43.860Z|00001|dpdk|INFO|VHOST_CONFIG: new vhost user
connection is 311
2019-11-07T07:31:43.860Z|00002|dpdk|INFO|VHOST_CONFIG: new device, handle
is 0
2019-11-07T07:31:43.860Z|00003|dpdk|INFO|VHOST_CONFIG: read message
VHOST_USER_SET_OWNER
2019-11-07T07:31:43.860Z|00004|dpdk|INFO|VHOST_CONFIG: read message
VHOST_USER_GET_FEATURES
2019-11-07T07:31:46.265Z|00002|daemon_unix(monitor)|ERR|1 crashes: pid
12315 died, killed (Segmentation fault), core dumped, restarting

and ovs goes for a restart.
Suddenly ovs is not able to read the vhost-user ports when it is coming up.
Here's what 'ovs-vsctl show' returns.

    Bridge "br0"
        Port "vhost-user4"
            Interface "vhost-user4"
                type: dpdkvhostuser
                error: "could not open network device vhost-user4 (Unknown
error -1)"
        Port "br0"
            Interface "br0"
                type: internal
        Port "vhost-user1"
            Interface "vhost-user1"
                type: dpdkvhostuser
                error: "could not open network device vhost-user1 (Unknown
error -1)"
        Port "vhost-user3"
            Interface "vhost-user3"
                type: dpdkvhostuser
                error: "could not open network device vhost-user3 (Unknown
error -1)"
        Port "vhost-user2"
            Interface "vhost-user2"
                type: dpdkvhostuser
                error: "could not open network device vhost-user2 (Unknown
error -1)"
    ovs_version: "2.11.1"

vhost-user ports are back to normal after manually restarting the ovs, but
i still cannot run the testpmd from inside the container and i face the
same issue all over again.

Is this happening because i'm on a pseudo host(I think otherwise)? or did i
miss some steps along the way?


Thanks,
-Deepak Gowda



On Wed, 6 Nov 2019 at 16:47, Deepak Gowda <deepak.dt06@gmail.com> wrote:

> Hi,
>
> I'm trying to run test-pmd with this virtual devices created by the
> ovs-dpdk from inside a docker container.
> I see EAL probing failing every time, i did try restarting the ovs, no
> luck.
> I see these vhost-user ports created from the log, i do see these from the
> 'ovs-vsctl show'.
> Can't seem to figure out whats going wrong here,
>
> EAL: Detected 4 lcore(s)
> EAL: Detected 1 NUMA nodes
> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
> EAL: Probing VFIO support...
> vhost_user_setup(): connect error, Connection refused
> virtio_user_dev_init(): backend set up fails
> virtio_user_pmd_probe(): virtio_user_dev_init fails
> vdev_probe(): failed to initialize net_virtio_user3 device
> vhost_user_setup(): connect error, Connection refused
> virtio_user_dev_init(): backend set up fails
> virtio_user_pmd_probe(): virtio_user_dev_init fails
> vdev_probe(): failed to initialize net_virtio_user4 device
> EAL: Bus (vdev) probe failed.
> testpmd: No probed ethernet devices
>
>
> DPDK ver: 18.11.3
> OVS ver: 2.11.1
> Host OS: debian (although this is not a actual host(bare metal), this is a
> vm really)
>
> Any advise is appreciated.
> Thanks!
> -Deepak Gowda
>
>
>

      reply	other threads:[~2019-11-07 10:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06 11:17 Deepak Gowda
2019-11-07 10:43 ` Deepak Gowda [this message]

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='CAM84qfptcctkG_0GBGj2LWYyN4hU=Q03nRCt206ZEaC46e734g@mail.gmail.com' \
    --to=deepak.dt06@gmail.com \
    --cc=dev@dpdk.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).