diff options
author | Balazs Gibizer <gibi@redhat.com> | 2022-10-26 13:28:47 +0200 |
---|---|---|
committer | Balazs Gibizer <gibi@redhat.com> | 2022-12-13 09:42:46 +0100 |
commit | cffe3971ce585a1ddc374a3ed067347857338831 (patch) | |
tree | c36622eceade17e43fb912cfcf3be8b0e3c3f2e1 /nova/tests/unit/api/openstack/compute/test_remote_consoles.py | |
parent | 182c5be122868d4fe910309a868b044b0e71316b (diff) | |
download | nova-cffe3971ce585a1ddc374a3ed067347857338831.tar.gz |
Handle zero pinned CPU in a cell with mixed policy
When cpu_policy is mixed the scheduler tries to find a valid CPU pinning
for each instance NUMA cell. However if there is an instance NUMA cell
that does not request any pinned CPUs then such logic will calculate
empty pinning information for that cell. Then the scheduler logic
wrongly assumes that an empty pinning result means there was no valid
pinning. However there is difference between a None result when no valid
pinning found, from an empty result [] which means there was nothing to
pin.
This patch makes sure that pinning == None is differentiated from
pinning == [].
Closes-Bug: #1994526
Change-Id: I5a35a45abfcfbbb858a94927853777f112e73e5b
Diffstat (limited to 'nova/tests/unit/api/openstack/compute/test_remote_consoles.py')
0 files changed, 0 insertions, 0 deletions