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
This commit is contained in:
parent
2a09062deb
commit
0ead5a9bc7
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user