Tempest failure due to possible affinity group race and cpu pinning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
The temptest test:
test_create_
fails in Openstack Yoga but passes with Openstack Victoria.
The test is run on the same hardware with the same configuration.
-----
Relevant info:
1: cpu pinning is enabled via vcpu_pin_set in nova.conf
2: the property hw:cpu_
This configuration has literally been working for years.
There seems to be a race type situation where both claims are made before the cpu free list is updated.
-----
Relevant logs:
CPU 64 in the list of usable CPUs
2023-06-09 21:26:01.223 858862 INFO nova.virt.hardware [-] Computed NUMA topology CPU pinning: usable pCPUs: [[64, 20], [8, 52], [40, 84], [82, 38], [32, 76], [18, 62], [74, 30], [56, 12], [10, 54], [24, 68], [80, 36], [42, 86], [66, 22], [72, 28], [34, 78], [58, 14], [16, 60], [26, 70]], vCPUs mapping: [(0, 64)]
The first claim is made:
2023-06-09 21:26:01.223 858862 INFO nova.compute.claims [-] [instance: ecc5bf99-
CPU 64 is still available:
2023-06-09 21:26:01.261 858862 INFO nova.virt.hardware [-] Computed NUMA topology CPU pinning: usable pCPUs: [[64, 20], [8, 52], [40, 84], [82, 38], [32, 76], [18, 62], [74, 30], [56, 12], [10, 54], [24, 68], [80, 36], [42, 86], [66, 22], [72, 28], [34, 78], [58, 14], [16, 60], [26, 70]], vCPUs mapping: [(0, 64)]
The second claim is made:
2023-06-09 21:26:01.262 858862 INFO nova.compute.claims [-] [instance: f65fe4dd-
The error is now seen:
2023-06-09 21:26:01.351 858862 ERROR nova.compute.
Additional error:
ERROR state.: nova.exception.
Steps to reproduce
==================
Enable CPU pinning with Openstack Nova and run the tempest test:
test_create_
It fails every time for me.
Expected result
===============
Test passes
Actual result
=============
Test fails
Environment
===========
Nova version: 25.0.2
May be a duplicate of
https:/ /bugs.launchpad .net/nova/ yoga/+bug/ 1988311