On 6/6/25 13:08, Michel Jouvin wrote:
Hi,
We need to support several GPU models in our Nova configuration. This normally requires to add multiple `alias` entries (lines) in the [pci] section of nova.conf. Unfortunately for us, it complicates a lot the generation of nova.conf by our system configuration management tool (where the section is represented by a dict/hash, meaning that there is only 1 possible entry for 'alias'). Before trying to hack our tool, we were wondering if there is a way to put the different values as a list for a single 'alias' line and what should be the separator or syntax ?
I was not able to identify a generic description of the syntax for multivalued parameters, if there is a generic rule. I already found this limitation (but we could live with it) for Keystone [federation]trusted_dashboard for example...
Thanks in advance for any hint. Best regards,
Michel
As much as I know, you *must* define multiple times the alias directive. For example, in your nova-scheduler / nova-api / nova-conductor nodes (I believe it should be in your scheduler nodes, not sure if api and conductor needs that...) you must have something like this: alias={"vendor_id":"10de","product_id":"25b6","name":"nvidia-a2","device_type":"type-PF"} alias={"vendor_id":"10de","product_id":"27b8","name":"nvidia-l4","device_type":"type-PF"} to define aliases for Nvidia A2 and L4. This should match what you have it compute nodes, that may have the same alias directive. I hope this helps, Cheers, Thomas Goirand (zigo)