Re: [opencontrail-dev] Contrailen 171 - vrouter vifdump mirroring enhancement for bond-slave-links

2017-04-05 Thread Rajagopalan Sivaramakrishnan
Hi Deepak,
Thank you for the blueprint. It is a good proposal. I have some comments 
and will post them on the review this week.

Raja

From: Dev  on behalf of Deepak Tiwari 

Date: Tuesday, April 4, 2017 at 1:08 AM
To: "dev@lists.opencontrail.org" 
Subject: [opencontrail-dev] Contrailen 171 - vrouter vifdump mirroring 
enhancement for bond-slave-links

Hello All,

We have submitted a blueprint to enhance the ‘vifdump’ utility to be able to 
also capture the slave interfaces of a bond interface. Following are the spec 
details for the problem we are attempting to solve and the proposed solution.
Please review the same and provide your valuable feedback

Problem statement: The Kernel level tools, like tcpdump, do not work when 
vRouter is deployed in DPDK mode, since the Linux network stack is bypassed. 
There exist already a tcpdump like command (i.e. vifdump), which works on the 
bond interface but it can’t be used to monitor its slave/member interfaces; so 
there is no way to debug each slave individually.”

Launchpad Blueprint: 
https://blueprints.launchpad.net/opencontrail/+spec/contrailen-171-vrouter-vifdump-mirroring-for-bond-slaves

Bug #1679466: Tracking vRouter changes for Contrailen 171 - vrouter vifdump 
mirroring enhancement for bond-slave-links
https://bugs.launchpad.net/opencontrail/+bug/1679466

Spec: https://review.opencontrail.org/30107

Br, Deepak

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus."
___
Dev mailing list
Dev@lists.opencontrail.org
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org


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

2017-04-05 Thread Rajagopalan Sivaramakrishnan
Hi Deepak,
Did you set up huge pages (in sysctl.conf or from the shell)? We usually 
spawn the vrouter-dpdk process using taskset to bind it to a specific
set of CPU cores, but the command line below should work, so I suspect it is 
not correctly provisioned. Can you please take a look at the logs in
/var/log/contrail/contrail-vrouter-dpdk-stdout.log for any clues?

Raja

From: Dev  on behalf of Deepak Tiwari 

Date: Tuesday, April 4, 2017 at 5:02 AM
To: "dev@lists.opencontrail.org" 
Subject: Re: [opencontrail-dev] Need help in setting up vRouter in DPDK-enabled 
mode

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 

[opencontrail-dev] bug in contrail-nodemgr-3.2~20170327083314: won't run contrail-database-nodemgr

2017-04-05 Thread Dennis van Dok
I'm running (trying to run) oc 32 from 
mk.mirantis.com_trusty_dists_stable_oc32_binary-amd64;

there is a bug in

/usr/lib/python2.7/dist-packages/nodemgr/database_nodemgr/database_event_manager.py

that prevents it from running because of this line:

def get_package_name(self):
return self.node_type + '-common'

The package name results in contrail-database-common which is a package
that does not exist. The log file ends in the line

Error getting contrail-database-common package version

The package does exist in the Juniper set, not in the opencontrail repo.

removing the '-common' string makes the program work.

Another, perhaps unrelated issue is that it tries to write to a non-existing 
file:

04/05/2017 03:23:37 PM [contrail-database-nodemgr]: Cannot write http_port 8103 
to /tmp/contrail-database-nodemgr.1554.http_port

Should this have been a pipe? Which process should create it?

Cheers,

Dennis
-- 
D.H. van Dok :: System administrator :: www.nikhef.nl/grid ::
Phone +31 20 592 22 28 :: http://www.nikhef.nl/~dennisvd/

___
Dev mailing list
Dev@lists.opencontrail.org
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org