get_core_mapping() in test_cpu_pinning not accounting for socket/thread count
Bug #1568032 reported by
Waldemar Znoinski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel-nfv-ci-tests |
Fix Released
|
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/
index = core_mappings[
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 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/306475 /git.openstack. org/cgit/ openstack/ intel-nfv- ci-tests/ commit/ ?id=535bb01cbac 7c5f89e82df87d5 c364f19de85027
Committed: https:/
Submitter: Jenkins
Branch: master
commit 535bb01cbac7c5f 89e82df87d5c364 f19de85027
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() cpu_siblings( ) in test_cpu_pinning scenario
with get_host_
test set. New function uses libvirt getCapabilities to discover
CPU thread siblings on the host.
Change-Id: I95a4c9952a57a0 b2121cb77d7becf 31fae11af7f
Closes-Bug: #1568032