Folks
Okay, I have moved further. I've read that contrail-packing
is going to go away, but it does contain a "contrail-vrouter-dpdk-init"
package. I managed to build that, and install it on the compute.
This setup seems like it should work, BUT its failing to create
the vhost0, and that's blocking us from getting any further. Specifically, the
vrouter_dpdk_start function from vrouter-functions.sh is fainig to run the
following two vif commands, with these errors.
vif --add 0 --mac xx:xx:xx:xx:xx:xx --vrf 0 --vhost-phys --type physical --pmd
--id 0
vRouter(Response): No such file or directory (2)
vif --add vhost0 --mac xx:xx:xx:xx:xx:xx --vrf 0 --type vhost --xconnect 0
--pmd --id 1
vRouter(Response): No such device (19)
Does anyone have ideas on this?
Thank you very much,
Jay
Here are the commands and errors in the context of the log:
+ echo 'Thu Jun 2 15:58:18 EDT 2016: Error Agent configuring vhost0: interface
does not exist'
Thu Jun 2 15:58:18 EDT 2016: Error Agent configuring vhost0: interface does
not exist
+ break
+ '[' '!' -L /sys/class/net/vhost0 ']'
++ date
+ echo 'Thu Jun 2 15:58:18 EDT 2016: Creating vhost0 interface with vif
utility...'
Thu Jun 2 15:58:18 EDT 2016: Creating vhost0 interface with vif utility...
+ '[' -z xx:xx:xx:xx:xx:xx ']'
+ '[' -z 172.16.xx.xx/24 ']'
++ date
+ echo 'Thu Jun 2 15:58:18 EDT 2016: Adding p2p2 interface with vif utility...'
Thu Jun 2 15:58:18 EDT 2016: Adding p2p2 interface with vif utility...
Thu Jun 2 15:58:18 EDT 2016: Adding p2p2 interface with vif utility...
+ vif --add 0 --mac xx:xx:xx:xx:xx:xx --vrf 0 --vhost-phys --type physical
--pmd --id 0
vRouter(Response): No such file or directory (2)
+ '[' 0 '!=' 0 ']'
++ date
+ echo 'Thu Jun 2 15:58:18 EDT 2016: Adding vhost0 interface with vif
utility...'
Thu Jun 2 15:58:18 EDT 2016: Adding vhost0 interface with vif utility...
+ vif --add vhost0 --mac xx:xx:xx:xx:xx:xx --vrf 0 --type vhost --xconnect 0
--pmd --id 1
vRouter(Response): No such device (19)
+ '[' 0 '!=' 0 ']'
++ date
+ echo 'Thu Jun 2 15:58:18 EDT 2016: Done starting vRouter/DPDK.'
Thu Jun 2 15:58:18 EDT 2016: Done starting vRouter/DPDK.
+ return 0
+ return 0
Thu Jun 2 15:58:18 EDT 2016: Value
----
Jay Rhine, CISSP
From: Rhine, Jay (Nokia - US)
Sent: Thursday, June 02, 2016 2:01 PM
To: [email protected]; '[email protected]'
Subject: Help with configure contrail-vrouter-dpdk on a Compute
Howdy,
In my last email, I said I was having vrouter dpdk compile
problems. I do have something compiled now. I had to make a few minor tweaks
to get it to compile, so I'm not entirely convinced it's perfect.
However, at this point I'm trying to configure the
contrail-vrouter-dpdk on an OpenStack compute node, and I'm struggling to
understand how it should be configured. I am using Ubuntu 14.04 and with
Contrail 2.2x, I would configure a vhost0 interface in /etc/network/interfaces
using the "vif" command to associated it with the correct physical interface.
However, the vif command does not seem to work with the Contrail 3.x dpdk based
vrouter. I believe this is because there is no longer a vrouter kernel module.
There are no startup scripts in the contrail-packages repo for
contrail-vrouter-dpdk, and no configuration file for it. I'm able to run it
manually like "/usr/bin/contrail-vrouter-dpdk --vdev
eth_bond0,mode=4,slave=0000:07:00.1 --no-daemon". I think maybe I can use the
"vdev" option to setup the vhost0 interface, but I cannot figure out the
correct syntax. Also, I'm not clear if when using contrail-vrouter-dpdk, I
still need to use the "contrail-vrouter-agent" or not.
Any help, suggestions, or pointers would be appreciated.
Thank you very much,
Jay
----
Jay Rhine, CISSP
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org