From 0ead5a9bc78ecaada7a4cd631086526ae71aafbf Mon Sep 17 00:00:00 2001 From: skovili Date: Fri, 30 Aug 2024 14:54:59 -0400 Subject: [PATCH] Discard the cpu-0 from dedicated set Nova offlines all unused cpu's from the dedicated set except for the core cpu 0 because it is not hot pluggable. Updating the test to exclude the cpu 0 so as to avoid false failures. Change-Id: I1943df7ffeea08e479820c3a87af869e1d9dbec9 --- whitebox_tempest_plugin/api/compute/test_cpu_state_mgmt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/whitebox_tempest_plugin/api/compute/test_cpu_state_mgmt.py b/whitebox_tempest_plugin/api/compute/test_cpu_state_mgmt.py index 0581e08e..846e78db 100644 --- a/whitebox_tempest_plugin/api/compute/test_cpu_state_mgmt.py +++ b/whitebox_tempest_plugin/api/compute/test_cpu_state_mgmt.py @@ -42,6 +42,10 @@ class TestCPUStateMgmt(base.BaseWhiteboxComputeTest): self.os_admin.services_client) dedicated_cpus = sm.get_cpu_dedicated_set() shared_cpus = sm.get_cpu_shared_set() + # Nova offlines all unused cpu's from the dedicated set + # except for cpu0 because it is not hot pluggable + # Hence modifying to exclude it avoid false test failures. + dedicated_cpus.discard(0) if len(dedicated_cpus) < 2: raise self.skipException('Multiple dedicated CPUs required')