Re: [opencontrail-dev] Need help in setting up vRouter in DPDK-enabled mode

2017-04-04 Thread Deepak Tiwari
Hi,

With reference to the original query about how to setup and provision, DPDK 
based vRouter, I have the contrail-vrouter-dpdk binary compiled.
Next in contrail.sh, I replaced the command to bring-up kernel based vrouter 
with the command to bring-up vrouter-dpdk binary—

/usr/bin/contrail-vrouter-dpdk –no-daemon –socket-mem 1024,1024

I also loaded the igb_uio and rte_kni modules and bound the NICs to DPDK

However the binary fails to come-up. All other contrail components came-up 
successfully except vrouter-agent because vrouter binary crashed and hence 
vrouter-agent couldn’t connect to it and it exits.

contrail@contrail-23:~/dev/contrail-installer$ /usr/bin/contrail-vrouter-dpdk 
--no-daemon --socket-mem 1024,1024
2017-04-04 17:21:52,196 VROUTER: vRouter/DPDK version: {"build-info": 
[{"build-time": "2017-04-04 09:06:01.548355", "build-hostname": "contrail-23", 
"build-user": "root", "build-version": "4.0.0.0"}]}
Illegal instruction (core dumped)
contrail@contrail-23:~/dev/contrail-installer$ gdb 
/usr/bin/contrail-vrouter-dpdk core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/contrail-vrouter-dpdk...done.

warning: core file may not match specified executable file.
[New LWP 26874]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/contrail-vrouter-dpdk --no-daemon --socket-mem 
1024,1024'.
Program terminated with signal SIGILL, Illegal instruction.
#0  dpdk_core_mask_get (system_cpus_count=4) at vrouter/dpdk/dpdk_vrouter.c:287
287core_mask_count = __builtin_popcountll((unsigned long 
long)cpu_core_mask);
(gdb) bt
#0  dpdk_core_mask_get (system_cpus_count=4) at vrouter/dpdk/dpdk_vrouter.c:287
#1  dpdk_argv_update () at vrouter/dpdk/dpdk_vrouter.c:491
#2  dpdk_init () at vrouter/dpdk/dpdk_vrouter.c:674
#3  main (argc=4, argv=0x7ffcc8e13668) at vrouter/dpdk/dpdk_vrouter.c:1162
(gdb)

Can anyone provide any clue on how do I proceed further?

Br, Deepak

From: Jakub Pavlik [mailto:jpav...@mirantis.com]
Sent: 20 March 2017 21:07
To: Deepak Tiwari 
Cc: dev@lists.opencontrail.org
Subject: Re: [opencontrail-dev] Need help in setting up vRouter in DPDK-enabled 
mode

Hi Deepak,

sorry put there oc311

root@ea05e1fe2291:/# apt-cache policy contrail-vrouter-dpdk-init
contrail-vrouter-dpdk-init:
  Installed: (none)
  Candidate: 3.1.1.x~20170317154826
  Version table:
 3.1.1.x~20170317154826 0
500 http://apt-mk.mirantis.com/trusty/ nightly/oc311 amd64 Packages


Jakub

On Mon, Mar 20, 2017 at 1:54 PM, Deepak Tiwari 
> wrote:
Hi Paul,

Thanks for the response.
I checked the packages, but there I don’t see 'contrail-vrouter-dpdk-init' 
package there

Br, Deepak

From: Jakub Pavlik [mailto:jpav...@mirantis.com]
Sent: 20 March 2017 15:51
To: Deepak Tiwari >
Cc: dev@lists.opencontrail.org
Subject: Re: [opencontrail-dev] Need help in setting up vRouter in DPDK-enabled 
mode

Hi Deepak,

you can try our repository:

deb [arch=amd64] http://apt-mk.mirantis.com/trusty nightly mitaka oc3111

We have all those dpdk packages there.

jakub

On Mon, Mar 20, 2017 at 8:38 AM, Deepak Tiwari 
> wrote:
Hi,

I have been trying to setup a single node development environment for Contrail 
with DPDK based vRouter. I am facing issues there and struggling to understand 
the overall process as I don’t find any online documentation in this regard. 
All information that I get is related to configuring DPDK based vRouter in 
binary-packages based setup. I would really appreciate if anyone out there can 
help me here

Following are the steps I followed—

Initially I followed contrail-installer guidelines as a reference—

https://github.com/Juniper/contrail-installer

Using above approach, though I was able to bring up a “Contrail + Devstack” 
setup up but it has vRouter installed as a Kernel module and no 
“contrail-vrouter-dpdk” binary is generated.

Therefore, I did following steps to generate a “contrail-vrouter-dpdk” binary—


1.  

Re: [opencontrail-dev] Master branch compilation fails

2017-04-04 Thread Deepak Tiwari
Any updates on this problem?

Br, Deepak

From: Deepinder Singh Setia [mailto:dse...@juniper.net]
Sent: 01 April 2017 05:06
To: Praveen K V ; Rudra Rugge 
Cc: Ashish Ranjan ; Prajaya Talwar ; 
Sachchidanand Vaidya ; Deepak Tiwari 
; dev@lists.opencontrail.org
Subject: Re: [opencontrail-dev] Master branch compilation fails


When I do top level scons, it fails as follows:



creating cni-0.1.dev0

creating cni-0.1.dev0/cni

creating cni-0.1.dev0/cni.egg-info

creating cni-0.1.dev0/cni/common

creating cni-0.1.dev0/cni/contrail

creating cni-0.1.dev0/cni/kube_cni

creating cni-0.1.dev0/cni/kube_cni/test

creating cni-0.1.dev0/cni/mesos_cni

creating cni-0.1.dev0/cni/mesos_cni/test

creating cni-0.1.dev0/cni/test

copying files to cni-0.1.dev0...

copying MANIFEST.in -> cni-0.1.dev0

copying setup.py -> cni-0.1.dev0

copying cni/__init__.py -> cni-0.1.dev0/cni

copying cni/contrail_cni.py -> cni-0.1.dev0/cni

copying cni.egg-info/PKG-INFO -> cni-0.1.dev0/cni.egg-info

copying cni.egg-info/SOURCES.txt -> cni-0.1.dev0/cni.egg-info

copying cni.egg-info/dependency_links.txt -> cni-0.1.dev0/cni.egg-info

copying cni.egg-info/entry_points.txt -> cni-0.1.dev0/cni.egg-info

copying cni.egg-info/top_level.txt -> cni-0.1.dev0/cni.egg-info

copying cni/common/__init__.py -> cni-0.1.dev0/cni/common

copying cni/common/cni.py -> cni-0.1.dev0/cni/common

copying cni/common/interface.py -> cni-0.1.dev0/cni/common

copying cni/common/macvlan.py -> cni-0.1.dev0/cni/common

copying cni/common/veth.py -> cni-0.1.dev0/cni/common

copying cni/contrail/__init__.py -> cni-0.1.dev0/cni/contrail

copying cni/contrail/contrail_cni.py -> cni-0.1.dev0/cni/contrail

copying cni/contrail/vrouter.py -> cni-0.1.dev0/cni/contrail

copying cni/kube_cni/__init__.py -> cni-0.1.dev0/cni/kube_cni

copying cni/kube_cni/contrail_kube_cni.py -> cni-0.1.dev0/cni/kube_cni

copying cni/kube_cni/kube_params.py -> cni-0.1.dev0/cni/kube_cni

copying cni/kube_cni/test/__init__.py -> cni-0.1.dev0/cni/kube_cni/test

copying cni/mesos_cni/__init__.py -> cni-0.1.dev0/cni/mesos_cni

copying cni/mesos_cni/contrail_mesos_cni.py -> cni-0.1.dev0/cni/mesos_cni

copying cni/mesos_cni/test/__init__.py -> cni-0.1.dev0/cni/mesos_cni/test

copying cni/test/__init__.py -> cni-0.1.dev0/cni/test

Writing cni-0.1.dev0/setup.cfg

Creating tar archive

removing 'cni-0.1.dev0' (and everything under it)

scons: *** Do not know how to make File target 
`build/debugbuild/debug/container/cni/cni/kube_cni/kube_cni' 
(/opt/stack/contrail/build/debugbuild/debug/container/cni/cni/kube_cni/kube_cni).
  Stop.

scons: building terminated because of errors.


—
Deepinder


From: Praveen K V >
Date: Thursday, March 30, 2017 at 11:03 PM
To: Rudra Rugge >, Deepinder 
SETIA >
Cc: Ashish Ranjan >, Prajaya Talwar 
>, Sachchidanand Vaidya 
>, Deepak Tiwari 
>, 
"dev@lists.opencontrail.org" 
>
Subject: Re: [opencontrail-dev] Master branch compilation fails

Deepinder,

Whats the error you are seeing now?

Regards,
Praveen

From: Rudra Rugge >
Date: Friday, March 31, 2017 at 11:29 AM
To: Deepinder Singh Setia >
Cc: Ashish Ranjan >, Prajaya Talwar 
>, Sachchidanand Vaidya 
>, Praveen K V 
>, Deepak Tiwari 
>, 
"dev@lists.opencontrail.org" 
>
Subject: Re: [opencontrail-dev] Master branch compilation fails


Adding Praveen to help with golang compilation. It could be because of double 
copy of directories that go get does.

On Thu, Mar 30, 2017 at 1:25pm, Deepinder Singh Setia 
> wrote:

I have installed golang package in my setup but compilation is still failing. 
Maybe some additional packages are needed


ubuntu@ubuntu:/opt/stack/contrail$ dpkg -l | grep golang

ii  golang-go  2:1.2.1-2ubuntu1 
amd64Go programming language compiler

ii  golang-go-linux-amd64  2:1.2.1-2ubuntu1 
amd64Go standard library compiled for linux_amd64

ii  golang-src