Add support for the new DPDK configuration mechanism In OVS 2.6

Bug #1644802 reported by Mikhail Chernik
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Critical
Michael Polenchuk
Mitaka
Fix Released
Critical
Michael Polenchuk
Newton
Fix Released
Critical
Mikhail Zhnichkov
Ocata
Fix Committed
Critical
Michael Polenchuk

Bug Description

Starting from OVS 2.6, DPDK options changed to be more consistent. In older versions part of the options was passed via command line and part via OVS database. Currently all options are is OVS database.

In order to run OVS 2.6.x with DPDK following changes are required:

   * Variable DPDK_OPTS in /etc/default/openvswitch-switch is not used any more.
   * Parameters from the DPDK_OPTS are moved into OVS configuration DB, table Open_vSwitch, parameter other_config (same place where pmd-cpu-mask option reside)
   * Parameter names changed:
     --socket-mem => dpdk-socket-mem
     --dpdk => dpdk-init=true
      -c XXX => dpdk-lcore-mask
      -n XXX => dpdk-extra=" -n XXX"

Example of "old" config:
export DPDK_OPTS="--dpdk -c 0x1 -n 2 --socket-mem 1024,1024"
other_config : {pmd-cpu-mask="0x300002"}

Example of new config:
other_config : {dpdk-extra=" -n 2", dpdk-init="true", dpdk-lcore-mask="0x1", dpdk-socket-mem="1024,1024", pmd-cpu-mask="0x300002"}

Dmitry Klenov (dklenov)
Changed in fuel:
milestone: 9.2 → 11.0
Dmitry Klenov (dklenov)
Changed in fuel:
assignee: Dmitry Klenov (dklenov) → Michael Polenchuk (mpolenchuk)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/404739

Changed in fuel:
status: Confirmed → In Progress
tags: added: blocker-for-qa
Changed in fuel:
assignee: Michael Polenchuk (mpolenchuk) → Alexey Shtokolov (ashtokolov)
Changed in fuel:
assignee: Alexey Shtokolov (ashtokolov) → Michael Polenchuk (mpolenchuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/404739
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=2bcebb8b8b6b32d9639a938fb0939532472787c9
Submitter: Jenkins
Branch: master

commit 2bcebb8b8b6b32d9639a938fb0939532472787c9
Author: Michael Polenchuk <email address hidden>
Date: Wed Nov 30 14:56:31 2016 +0300

    Conform dpdk settings to ovs 2.6

    Options from the DPDK_OPTS env variable
    (command line) are shifted into ovsdb.

    Change-Id: I3cc004111998b2ae23f04145a1803e5143b0d3b4
    Closes-Bug: #1644802

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/407526

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/408024

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/newton)

Reviewed: https://review.openstack.org/408024
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=a6bffc8e9666bd66597e1f0d7b7597fa2a50de6d
Submitter: Jenkins
Branch: stable/newton

commit a6bffc8e9666bd66597e1f0d7b7597fa2a50de6d
Author: Michael Polenchuk <email address hidden>
Date: Wed Nov 30 14:56:31 2016 +0300

    Conform dpdk settings to ovs 2.6

    Options from the DPDK_OPTS env variable
    (command line) are shifted into ovsdb.

    Change-Id: I3cc004111998b2ae23f04145a1803e5143b0d3b4
    Closes-Bug: #1644802
    (cherry picked from commit 2bcebb8b8b6b32d9639a938fb0939532472787c9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/407526
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=0a1a86627f261f69f7651e1a3a3cf9d23502cd74
Submitter: Jenkins
Branch: stable/mitaka

commit 0a1a86627f261f69f7651e1a3a3cf9d23502cd74
Author: Michael Polenchuk <email address hidden>
Date: Wed Nov 30 14:56:31 2016 +0300

    Conform dpdk settings to ovs 2.6

    Options from the DPDK_OPTS env variable
    (command line) are shifted into ovsdb.

    Change-Id: I3cc004111998b2ae23f04145a1803e5143b0d3b4
    Closes-Bug: #1644802

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.2 snapshot #627.

Actual results:
From compute node of cluster with DPDK feature:
root@node-6:~# ovs-vsctl list open_vswitch | fgrep other_config
other_config : {dpdk-extra="-n 2 --vhost-owner libvirt-qemu:kvm --vhost-perm 0664", dpdk-init="true", dpdk-lcore-mask="0x1", dpdk-socket-mem="1024"}

tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 11.0.0.0rc1

This issue was fixed in the openstack/fuel-library 11.0.0.0rc1 release candidate.

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 10.0 build #1543.

Actual results:
From compute node of cluster with DPDK feature:
root@node-11:~# ovs-vsctl list open_vswitch | fgrep other_config
other_config : {dpdk-extra="-n 2 --vhost-owner libvirt-qemu:kvm --vhost-perm 0664", dpdk-init="true", dpdk-lcore-mask="0x1", dpdk-socket-mem="1024"}

tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.