[ovs-dev] OVS is failing while starting with DPDK

Mauricio Vásquez mauricio.vasquezbernal at studenti.polito.it
Wed Jun 1 09:47:13 UTC 2016


Hi RobertX,

On Wed, Jun 1, 2016 at 11:26 AM, Wojciechowicz, RobertX <
robertx.wojciechowicz at intel.com> wrote:

> Hi Sheroo,
>
> my suggestions inline
>
> > -----Original Message-----
> > From: dev [mailto:dev-bounces at openvswitch.org] On Behalf Of Sheroo
> > Pratap
> > Sent: Wednesday, June 1, 2016 10:48 AM
> > To: ovs dev <dev at openvswitch.org>
> > Subject: [ovs-dev] OVS is failing while starting with DPDK
> >
> > Hi All,
> >
> >   I am trying to start OVS with DPDK but it is failing with below error.
> >
> > root at osboxes:/home/osboxes/ovs# ovs-vswitchd unix:$DB_SOCK --pidfile
> > --detach
> > 2016-06-01T08:25:32Z|00001|ovs_numa|INFO|Discovered 1 CPU cores on
> > NUMA
> > node 0
> > 2016-06-01T08:25:32Z|00002|ovs_numa|INFO|Discovered 1 NUMA nodes
> > and 1 CPU
> > cores
> > 2016-06-
> > 01T08:25:32Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/
> > db.sock:
> > connecting...
> > 2016-06-
> > 01T08:25:32Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/
> > db.sock:
> > connected
> > *2016-06-01T08:25:32Z|00005|dpdk|ERR|DPDK not supported in this copy of
> > Open vSwitch.*
> > root at osboxes:/home/osboxes/ovs#
> >
> > Below is the steps is have followed so far.
> >
> > 1) My OVS version is master ovs i.e. 2.5.90, ubuntu 15.10 and kernel
> > version is 4.6
> > 2) DPDK version is 16.04  (as recommended in INSTALL.DPDK.md of master
> > ovs)
> > 3) Following are the steps as have executed as mentioned in
> > INSTALL.DPDK.md
> >         1)  export DPDK_DIR=/usr/src/dpdk-16.04
> >         2)  cd $DPDK_DIR
> >         3) make install T=x86_64-native-linuxapp-gcc DESTDIR=install
> >         4) export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc/
> >         5) cd $(OVS_DIR)/
> >        6) ./boot.sh
> >        7) ./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2
> > -Wno-cast-align"
> >        8) make CFLAGS='-O3 -march=native
> >        9)  added below line in /etc/default/grub
> >                default_hugepagesz=1GB hugepagesz=1G hugepages=1
> >           Snapshot of grub
> >              GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo
> > Debian`
> >              GRUB_CMDLINE_LINUX_DEFAULT="quiet splash
> > default_hugepagesz=1GB hugepagesz=1G hugepages=1"
> >              GRUB_CMDLINE_LINUX=""
> >      10) modprobe uio
> >      11) insmod $DPDK_BUILD/kmod/igb_uio.ko
> >      12) $DPDK_DIR/tools/dpdk_nic_bind.py --bind=igb_uio eth0
> >      13) mount -t hugetlbfs -o pagesize=2MB none /dev/hugepages
> >      14) mkdir -p /usr/local/etc/openvswitch
> >      15) mkdir -p /usr/local/var/run/openvswitch
> >      16) rm /usr/local/etc/openvswitch/conf.db
> >      17) ovsdb-tool create /usr/local/etc/openvswitch/conf.db  \
> >              /usr/local/share/openvswitch/vswitch.ovsschema
> >
> >      18) removed SSL certificates while configuraing ovsdb :
> >               ovsdb-server
> > --remote=punix:/usr/local/var/run/openvswitch/db.sock
> > --remote=db:Open_vSwitch,Open_vSwitch,manager_options  --pidfile --
> > detach
>
> [RW] Make sure that ovsdb server started successfully
>
> >      19) ovs-vsctl --no-wait init
> >      20) export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
> >      21) ovs-vsctl --no-wait set Open_vSwitch .
> other_config:dpdk-init=true
>
> [RW] Check in the database if dpdk-init value was written properly.
> I saw situations where ovsdb server was not ready to work yet,
> so writing to it was not possible. Waiting a few seconds before writing
> helped.
>
> >
> >
> >
> >
> >
> >
> >
> > * 22) faling here : ovs-vswitchd unix:$DB_SOCK --pidfile
> > --detach            root at osboxes:/home/osboxes/ovs# ovs-vswitchd
> > unix:$DB_SOCK --pidfile --detach
> > 2016-06-01T08:25:32Z|00001|ovs_numa|INFO|Discovered 1 CPU cores on
> > NUMA
> > node 0            2016-06-01T08:25:32Z|00002|ovs_numa|INFO|Discovered 1
> > NUMA nodes and 1 CPU cores
> > 2016-06-
> > 01T08:25:32Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/
> > db.sock:
> > connecting...
> > 2016-06-
> > 01T08:25:32Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/
> > db.sock:
> > connected            2016-06-01T08:25:32Z|00005|dpdk|ERR|DPDK not
> > supported
> > in this copy of Open vSwitch.*
>
> [RW] This error message means that dpdk-init has not "true" value in db.
>
>
I am not pretty sure that the error message means that, according to my
understanding it means that the dpdk-init is true but ovs was not built
with DPDK support. You can look at the dpdk_init() function in
lib/netdev-nodpdk.c, this is a stub used when there is not DPDK support.


> >
> > Please anyone can help, after executing step 22 getting error "DPDK not
> > supported in this copy of Open vSwitch"
> >
> > Thanks and Regards
> >  S Pratap
>
> Br,
> Robert
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>

Mauricio V,



More information about the dev mailing list