Added min_microversion to SRIOVNumaAffinity
Helper method create_test_server in the test methods for class SRIOVNumaAffinity requires passing the 'host' parameter. This is only supported for compute microversions 2.74 and greater. Adding class variable min_microversion to to class SRIOVNumaAffinity to account for this. Also updated help msg for [whitebox-hardware]/physnet_numa_affinity to be a more accurate description of the parameter. Change-Id: I7fdc7f8fbfd6ee7329fdb4457d35a6ebdf5fe8d7
This commit is contained in:
parent
62ad86bf4f
commit
a3a92253e8
@ -28,6 +28,8 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class SRIOVNumaAffinity(base.BaseWhiteboxComputeTest):
|
class SRIOVNumaAffinity(base.BaseWhiteboxComputeTest):
|
||||||
|
|
||||||
|
min_microversion = '2.74'
|
||||||
|
|
||||||
required = {'hw:cpu_policy': 'dedicated',
|
required = {'hw:cpu_policy': 'dedicated',
|
||||||
'hw:pci_numa_affinity_policy': 'required'}
|
'hw:pci_numa_affinity_policy': 'required'}
|
||||||
preferred = {'hw:cpu_policy': 'dedicated',
|
preferred = {'hw:cpu_policy': 'dedicated',
|
||||||
|
@ -225,7 +225,6 @@ hardware_opts = [
|
|||||||
cfg.IntOpt(
|
cfg.IntOpt(
|
||||||
'physnet_numa_affinity',
|
'physnet_numa_affinity',
|
||||||
default=None,
|
default=None,
|
||||||
help="A one to one affinity mapping of the parameter sriov_phsynet to "
|
help="The NUMA Node ID that has affinity to the NIC connected to the "
|
||||||
"its underlying NIC's NUMA Node. A physnet mapping of one to many "
|
"physnet defined in 'sriov_physnet'")
|
||||||
"NUMAs is not supported with this parameter")
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user