Bug 1452382 - dpdk-lcore-mask and pmd-cpu-mask is set incorrectly in OSP11-DPDK deployments
Summary: dpdk-lcore-mask and pmd-cpu-mask is set incorrectly in OSP11-DPDK deployments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: z1
: 11.0 (Ocata)
Assignee: Karthik Sundaravel
QA Contact: Yariv
URL:
Whiteboard:
Depends On:
Blocks: 1471254
TreeView+ depends on / blocked
 
Reported: 2017-05-18 20:05 UTC by Karthik Sundaravel
Modified: 2017-07-19 17:04 UTC (History)
9 users (show)

Fixed In Version: openstack-tripleo-heat-templates-6.1.0-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-19 17:04:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
post-install.yaml (workaround) (3.14 KB, text/plain)
2017-05-18 20:05 UTC, Karthik Sundaravel
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1694703 0 None None None 2017-06-01 07:16:51 UTC
OpenStack gerrit 471254 0 None None None 2017-06-12 04:47:18 UTC
Red Hat Product Errata RHBA-2017:1778 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 director Bug Fix Advisory 2017-07-19 21:01:28 UTC

Description Karthik Sundaravel 2017-05-18 20:05:24 UTC
Created attachment 1280198 [details]
post-install.yaml (workaround)

In OSP11 during fresh install, we observe a mis-configuration of dpdk-lcore-mask and pmd-cpu-mask.

If the THT params are
NeutronDpdkCoreList="'6,7,22,23'"
HostCpusList='"1,2,3,4,5,6,7,16,17,18,19,20,21,22,23'"

then expected values would be
dpdk-lcore-mask="ff00fe", 
pmd-cpu-mask="c000c0"

while the actual values are
dpdk-lcore-mask="ff00fd", 
pmd-cpu-mask="c00081"

The root cause of the issue is identified to be due to the presence of single and double quotes in the THT.

As a workaround, we shall override these masks in the post-install.yaml (attached), which shall be used during the fresh deployment of OSP11

Comment 1 Karthik Sundaravel 2017-06-07 09:36:46 UTC
I've fixed it upstream as well as for stable/ocata branch.

Comment 3 Eyal Dannon 2017-07-18 13:11:06 UTC
I've verified this bug on OSPD11 puddle 2017-06-30.3

# rpm -qa | grep openstack-tripleo-heat
openstack-tripleo-heat-templates-6.1.0-1.el7ost.noarch


Variables:
  NeutronDpdkCoreList: "6,7,22,23"
  HostCpusList: "8,9,24,25"

Expected results:
>>> print "%x" % ((1 << 6) | (1<< 7) | (1 << 22) | (1<< 23))
c000c0
>>> print "%x" % ((1 << 8) | (1<< 9) | (1 << 24) | (1<< 25))
3000300

Actual:
other_config        : {dpdk-extra="-n 4", dpdk-init="true", dpdk-lcore-mask="3000300", dpdk-socket-mem="'2048,2048'", pmd-cpu-mask="c000c0"}

Comment 5 errata-xmlrpc 2017-07-19 17:04:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1778


Note You need to log in before you can comment on or make changes to this bug.