On 06/06/2025 15:12, Michel Jouvin wrote:Hi Thomas,Thanks for your answer. We identified that it was the documented wayto do it, my question was wether there was a one-line alternative. ButI managed to findhttps://docs.openstack.org/mitaka/config-reference/config-format.htmlwhich is pretty old (does not seem to exist under latest) but is clearthat a multi-valued parameter is different from a list in OpenStackand must be defined as a repeated paramter in the config file. So I'mafraid there is no one-line alternative..so yes this is a know issuethe pci alise si defiend as a multi-valuedhttps://docs.openstack.org/nova/latest/configuration/config.html#pci.aliasa long time ago whenhttps://docs.openstack.org/nova/latest/configuration/config.html#pci.device_specwas stilll called pci_passthrough_whitelistwe actully added suport for definign it as a json list on one linedevice_spec = [{"product_id":"0001", "vendor_id":"8086"},{"product_id":"0002", "vendor_id":"8086"}]both the aliias and dev_secect value need to be valid json.it would not neessiarly be a lot of work to correct this gap and just supprot a list of json obejct for the alias as wellwe just never got around to it.there is no technial reason not to do that, its just that no one has wirttign the patch to do it.this is a somewhat trivial feature to add and i think it woudl fit in the scope of a specless blueprinti know it was intentionally not done when i twas doen for the pci_passthrough_whitelist but beyond limiting scope i dont recallthe reason why both were not updated. so its not a bug but it is a painpoint for anyone who tryes to treat oslo.config files as ini filesthey are not and ini parser dont supprot multi-value filedMichelLe 06/06/2025 à 15:33, Thomas Goirand a écrit :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) inthe [pci] section of nova.conf. Unfortunately for us, it complicatesa lot the generation of nova.conf by our system configurationmanagement tool (where the section is represented by a dict/hash,meaning that there is only 1 possible entry for 'alias'). Beforetrying to hack our tool, we were wondering if there is a way to putthe different values as a list for a single 'alias' line and whatshould be the separator or syntax ?I was not able to identify a generic description of the syntax formultivalued parameters, if there is a generic rule. I already foundthis limitation (but we could live with it) for Keystone[federation]trusted_dashboard for example...Thanks in advance for any hint. Best regards,MichelAs much as I know, you *must* define multiple times the aliasdirective. 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 somethinglike 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 youhave it compute nodes, that may have the same alias directive.I hope this helps,Cheers,Thomas Goirand (zigo)