Fix nova device_spec to support multiple values

It appears there was a change to remove the list option when
moving from pci_passthrough_whitelist. Instead device_spec
can be specified multiple times in the file.
This patch aims to resolve this whilst maintaining backwards
compatibility.
Change-Id: I12b38e45d7b41fbf4786d3320e511eb9127fe216
This commit is contained in:
Andrew Bonney
2024年02月06日 08:56:33 +00:00
parent 5300fcea9d
commit c7a976c584

View File

@@ -599,11 +599,10 @@ nova_api_os_compute_uwsgi_ini_overrides: {}
nova_enabled_mdev_types:"{{ nova_enabled_vgpu_types | default({}) }}"
# PCI devices passthrough to nova
# For SR-IOV please use:
# nova_device_spec: '{ "physical_network": "<ml2 network name>", "devname": "<physical nic>" }'
# Example:
# nova_device_spec: '{ "physical_network": "physnet1", "devname": "p1p1" }'
nova_device_spec:"{{ nova_pci_passthrough_whitelist | default({}) }}"
# Example:
# nova_device_spec:
# - '{ "physical_network": "physnet1", "devname": "p1p1" }'
nova_device_spec:"{{ nova_pci_passthrough_whitelist | default([]) }}"
# PCI alias,
# Example:
Reference in New Issue
openstack/openstack-ansible-os_nova
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.