settingsLogin | Registersettings

Re: [openstack-dev] [Dpdk-ovs] [networking-ovs-dpdk]networking-ovs-dpdk configuration on devstack

0 votes

Hi this mailing list if for OVDK the intel for ovs with the dpdk dpif datapath.

The networking-ovs-dpdk repo support ovs from openvswitch.org with the dpdk netdev datapath.

Issue and support should be directed to the openstack dev mailing list (openstack-dev@lists.openstack.org) with the following in the subject "[networking-ovs-dpdk]"

That said I occasionally check this list tough very rarely.

While im hear Ill try and answer your questions

  1. Do we need to update any other files along with copying local.conf
    to devstack directory?

Answer: the only lines that should need to be changed are
https://github.com/openstack/networking-ovs-dpdk/blob/master/doc/source/_downloads/local.conf.single_node#L47-L49

  1. In OVSBRIDGEMAPPINGS="default:br-eth0”, do I need to change the
    interface to some other interface?

Answer: The interface name chosen should be a dedicated interface as it will be unbound from the kernel networking stack and bound to the userspace dpdk driver.
As a result if you use your management interface it will result in a loss of conectivy to the node as the interface will be unbound from the kernel.

  1. I would like to build DPDK with “x86_64-native-linuxapp-gcc”,
    where should I update this?

Answer: you can update this by setting the RTETARGET variable to “x8664-native-linuxapp-gcc” in the local.conf
This will override the default value set here https://github.com/openstack/networking-ovs-dpdk/blob/master/devstack/settings#L13
It should be noted that the default target " x8664-ivshmem-linuxapp-gcc" contains all the functionality of x8664-native-linuxapp-gcc
+ support for ivshmem. Using “x86_64-native-linuxapp-gcc” is not tested but should work.

  1. I would like to create the ovs-dpdk vhostuser ports, with the
    other two eth ports, ie.., eth1 & eth2. Where should I update the config for this?

Answer: Vhost-user is a northbound(between vm and vswitch) port type. It is not related to phyical interfaces.

If you want to have multiple phyical interfaces added to ovs-dpdk automatically you can do this by
Setting the following parameter in the local.conf
https://github.com/openstack/networking-ovs-dpdk/blob/master/devstack/settings#L38-L44

see https://github.com/openstack/networking-ovs-dpdk/blob/master/doc/source/usage.rst
for documentation and examples of how to use these parameters to customize the deployment.

For example
OVSBRIDGEMAPPINGS=default:br-01,default1:br-02
OVSDPDKPORT_MAPPINGS=eth1:br-01,eth2:br-01,eth3:br-02

Will create 2 phyical bridges connected to the br-int.

Eth1 and eth2 will be added to the first bridge br-01 and eth3 will be added to the second bridge br-02

If you wanted to bond eth1 and eth2 instead you could do so as follows

OVSBRIDGEMAPPINGS=default:br-01,default1:br-02
OVSBONDMODE=bond0:active-backup
OVSBONDPORTS=bond0:eth1,bond0:eth2
OVSDPDKPORT_MAPPINGS=bond0:br-01,eth3:br-02

The follow review contains some updated Getting Started Guides for ubuntu which may help with your deployment
https://review.openstack.org/#/c/243190/

I have added the openstack dev mailing list.
If you have any follow up questions feel free to reach out to me there.

regards
sean.

-----Original Message-----
From: Dpdk-ovs [mailto:dpdk-ovs-bounces@lists.01.org] On Behalf Of Varun Rapelly
Sent: Monday, November 2, 2015 11:14 AM
To: dpdk-ovs@lists.01.org
Subject: [Dpdk-ovs] networking-ovs-dpdk configuration on devstack

Hi All,

I’m trying to install networking-ovs-dpdk with openstack (devstack) on Ubuntu 14.04 (3.13 kernel) on a single node.

Used following steps:

  1. echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

  2. apt-get install sudo -y

  3. apt-get install sudo -y || yum install -y sudo

  4. sudo apt-get install git -y || sudo yum install -y git

  5. git clone https://git.openstack.org/openstack-dev/devstack

  6. cd devstack

  7. ./stack.sh

stack@ubuntu:~/devstack$ ifconfig

eth0 Link encap:Ethernet HWaddr 52:55:00:00:00:01

      inet addr:10.54.218.56  Bcast:10.54.218.255  Mask:255.255.255.0

      inet6 addr: fe80::5055:ff:fe00:1/64 Scope:Link

      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

      RX packets:104 errors:0 dropped:0 overruns:0 frame:0

      TX packets:102 errors:0 dropped:0 overruns:0 carrier:0

      collisions:0 txqueuelen:1000

      RX bytes:10537 (10.5 KB)  TX bytes:14847 (14.8 KB)

I have two other eth1,2 ports on the machine.

I used https://github.com/openstack/networking-ovs-dpdk/blob/master/doc/source/_downloads/local.conf.single_node
file as local.conf
https://github.com/openstack/networking-ovs-dpdk/blob/master/doc/source/_downloads/local.conf.single_node%20file%20as%20local.conf
and copied the

same to devstack directory and updated with following details.

I’m facing problem with following configuration.

stack@ubuntu:~/devstack$ cat local.conf

All in one single node config

[[local|localrc]]

HOSTIPIFACE=eth0

HOST_IP=10.54.218.56

OVSBRIDGEMAPPINGS="default:br-eth0"

With the above configuration, I’m loosing the management connection of the host.

Log shows:

2015-11-02 16:06:13.752 | libvirt-bin start/running, process 11517

2015-11-02 16:06:13.752 | loading OVSINTERFACEDRIVER diver

2015-11-02 16:06:13.753 | Unloading any existing DPDK UIO module

2015-11-02 16:06:13.761 | Loading uio module

2015-11-02 16:06:13.768 | Loading DPDK UIO module

2015-11-02 16:06:13.773 | starting ovs db

2015-11-02 16:06:13.773 | binding nics

2015-11-02 16:06:13.773 | starting vswitchd

2015-11-02 16:06:13.969 | sudo ovs-vsctl --no-wait -- --may-exist add-port
eth1

2015-11-02 16:06:13.974 | ovs-vsctl: 'add-port' command requires at least 2 arguments

2015-11-02 16:06:15.033 | Waiting for ovs-vswitchd to start...

2015-11-02 16:06:16.041 | Waiting for ovs-vswitchd to start...

2015-11-02 16:06:17.050 | Waiting for ovs-vswitchd to start...

2015-11-02 16:06:18.058 | Waiting for ovs-vswitchd to start...

2015-11-02 16:06:19.066 | Waiting for ovs-vswitchd to start...

2015-11-02 16:06:20.074 | Waiting for ovs-vswitchd to start...

2015-11-02 16:06:21.076 | /etc/init.d/ovs-dpdk: line 483: [:
2015-11-02T16:06:20Z|00005|reconnect|INFO|unix:/var/run/openvswitch/db.sock::
unary operator expected

Please let me know:

  1. Do we need to update any other files along with copying local.conf
    to devstack directory?

  2. In OVSBRIDGEMAPPINGS="default:br-eth0”, do I need to change the
    interface to some other interface?

  3. I would like to build DPDK with “x86_64-native-linuxapp-gcc”,
    where should I update this?

  4. I would like to create the ovs-dpdk vhostuser ports, with the
    other two eth ports, ie.., eth1 & eth2. Where should I update the config for this?

FYI: DPDK: 2.0.0 version OVS: 2.4.0

stack@ubuntu:~/devstack$ uname -a

Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
x8664 x8664 x86_64 GNU/Linux

--
Thanks & Regds


Varun Rapelly,
9620637186

Dpdk-ovs mailing list
Dpdk-ovs@lists.01.org
https://lists.01.org/mailman/listinfo/dpdk-ovs

OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Nov 9, 2015 in openstack-dev by Mooney,_Sean_K (3,580 points)   4 9
...