Skip hugepages LM test if no hugepages on hosts
The NUMA-aware live migration test for hugepages expects a non-zero amount of hugepages on both compute hosts. Skip the test if this condition is not met. Change-Id: I256f6baa9ca94de5af751da4698e48eecd04c5d8
This commit is contained in:
parent
79970a0429
commit
1814491c5f
@ -658,6 +658,12 @@ class NUMALiveMigrationTest(BasePinningTest):
|
||||
pagesize_b = numaclient_b.get_pagesize()
|
||||
pages_b = numaclient_b.get_hugepages()
|
||||
|
||||
# Need hugepages
|
||||
for pages_config in pages_a, pages_b:
|
||||
for numa_cell, pages in pages_config.items():
|
||||
if pages['total'] == 0:
|
||||
raise self.skipException('Hugepages required')
|
||||
|
||||
# Need at least 2 NUMA nodes per host
|
||||
if len(topo_a) < 2 or len(topo_b) < 2:
|
||||
raise self.skipException('At least 2 NUMA nodes per host required')
|
||||
|
Loading…
x
Reference in New Issue
Block a user