get_core_mapping() in test_cpu_pinning not accounting for socket/thread count

Bug #1568032 reported by Waldemar Znoinski on 2016-04-08
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intel-nfv-ci-tests
High
Waldemar Znoinski

Bug Description

when running test_cpu_pinning on:

Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 2
NUMA node(s): 2

fails with

  File "/usr/local/lib/python2.7/dist-packages/intel_nfv_ci_tests-0.0.1.dev25-py2.7.egg/intel_nfv_ci_tests/tests/scenario/test_cpu_pinning.py", line 184, in test_cpu_dedicated_threads_isolate
    index = core_mappings[0][1].index(pcpu)
ValueError: 4 is not in list

it's due to hardcoded value of 2 sockets and 2 threads in get_core_mappings()

Changed in intel-nfv-ci-tests:
assignee: nobody → Waldemar Znoinski (wznoinsk)
Changed in intel-nfv-ci-tests:
status: New → In Progress
Changed in intel-nfv-ci-tests:
importance: Undecided → High

Reviewed: https://review.openstack.org/306475
Committed: https://git.openstack.org/cgit/openstack/intel-nfv-ci-tests/commit/?id=535bb01cbac7c5f89e82df87d5c364f19de85027
Submitter: Jenkins
Branch: master

commit 535bb01cbac7c5f89e82df87d5c364f19de85027
Author: Waldemar Znoinski <email address hidden>
Date: Fri Apr 15 15:35:59 2016 +0100

    add get_host_cpu_siblings() in test_cpu_pinning

    This change replaces get_core_mappings()
    with get_host_cpu_siblings() in test_cpu_pinning scenario
    test set. New function uses libvirt getCapabilities to discover
    CPU thread siblings on the host.

    Change-Id: I95a4c9952a57a0b2121cb77d7becf31fae11af7f
    Closes-Bug: #1568032

Changed in intel-nfv-ci-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers