Expose new parameter `NovaVGPUTypesDeviceAddressesMapping`
To support multiple vgpu types configuration, add new
parameter `NovaVGPUTypesDeviceAddressesMapping` where vgpu-type
is key and list of device_addresses are value.
Depends-On: https://review.opendev.org/#/c/754900/
Change-Id: Ifc30bbef66717cafb5ec2262be8fe07af1e60772
(cherry picked from commit 3fd84c2436
)
This commit is contained in:
parent
1f3cdebfc8
commit
d00312805a
|
@ -438,6 +438,18 @@ parameters:
|
|||
type: boolean
|
||||
tags:
|
||||
- role_specific
|
||||
NovaVGPUTypesDeviceAddressesMapping:
|
||||
type: json
|
||||
description: >
|
||||
Map of vgpu type(s) the instances can get as key and list of corresponding
|
||||
device addresses as value.
|
||||
Ex. NovaVGPUTypesDeviceAddressesMapping: {'nvidia-35': ['0000:84:00.0', '0000:85:00.0'],
|
||||
'nvidia-36': ['0000:86:00.0']}
|
||||
where `nvidia-35` and `nvidia-36` are
|
||||
vgpu types and corresponding values are list of associated device addresses.
|
||||
default: {}
|
||||
tags:
|
||||
- role_specific
|
||||
|
||||
# DEPRECATED: the following options are deprecated and are currently maintained
|
||||
# for backwards compatibility. They will be removed in future release.
|
||||
|
@ -539,6 +551,7 @@ resources:
|
|||
nova_pmem_namespaces: NovaPMEMNamespaces
|
||||
nova::compute::libvirt::remove_unused_original_minimum_age_seconds: NovaImageCacheTTL
|
||||
compute_disable_irqbalance: NovaComputeDisableIrqBalance
|
||||
nova::compute::vgpu::vgpu_types_device_addresses_mapping: NovaVGPUTypesDeviceAddressesMapping
|
||||
- values: {get_param: [RoleParameters]}
|
||||
- values:
|
||||
NovaVcpuPinSet: {get_param: NovaVcpuPinSet}
|
||||
|
@ -615,6 +628,7 @@ resources:
|
|||
NovaPMEMNamespaces: {get_param: NovaPMEMNamespaces}
|
||||
NovaImageCacheTTL: {get_param: NovaImageCacheTTL}
|
||||
NovaComputeDisableIrqBalance: {get_param: NovaComputeDisableIrqBalance}
|
||||
NovaVGPUTypesDeviceAddressesMapping: {get_param: NovaVGPUTypesDeviceAddressesMapping}
|
||||
|
||||
conditions:
|
||||
enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Add parameter `NovaVGPUTypesDeviceAddressesMapping` provide mapping
|
||||
for multiple vgpu types and corresponding device addresses.
|
Loading…
Reference in New Issue