Config has changed for pci passthrough.
updating the config for pci devices since the old config is deprecated. https://docs.openstack.org/nova/latest/configuration/config.html#pci.device_spec Change-Id: Id2da29464359b4845c7d05e3bec53759341f4bad
This commit is contained in:
parent
6873b7d8a1
commit
9d2924fa80
@ -591,10 +591,11 @@ nova_enabled_mdev_types: "{{ nova_enabled_vgpu_types | default({}) }}"
|
||||
|
||||
# PCI devices passthrough to nova
|
||||
# For SR-IOV please use:
|
||||
# nova_pci_passthrough_whitelist: '{ "physical_network": "<ml2 network name>", "devname": "<physical nic>" }'
|
||||
# nova_device_spec: '{ "physical_network": "<ml2 network name>", "devname": "<physical nic>" }'
|
||||
# Example:
|
||||
# nova_pci_passthrough_whitelist: '{ "physical_network": "physnet1", "devname": "p1p1" }'
|
||||
nova_pci_passthrough_whitelist: {}
|
||||
# nova_device_spec: '{ "physical_network": "physnet1", "devname": "p1p1" }'
|
||||
nova_device_spec: "{{ nova_pci_passthrough_whitelist | default({}) }}"
|
||||
|
||||
# PCI alias,
|
||||
# Example:
|
||||
# nova_pci_alias:
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
`nova_pci_passthrough_whitelist` is now deprecated in favor of `nova_device_spec`.
|
@ -330,11 +330,11 @@ device_addresses = {{ (record.address is string) | ternary(record.address, recor
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if nova_pci_passthrough_whitelist or nova_pci_alias %}
|
||||
{% if nova_device_spec or nova_pci_alias %}
|
||||
[pci]
|
||||
{% if nova_pci_passthrough_whitelist %}
|
||||
{% if nova_device_spec %}
|
||||
# White list of PCI devices available to VMs.
|
||||
passthrough_whitelist = {{ nova_pci_passthrough_whitelist }}
|
||||
device_spec = {{ nova_device_spec }}
|
||||
{% endif %}
|
||||
{% if nova_pci_alias %}
|
||||
# PCI Alias
|
||||
|
Loading…
Reference in New Issue
Block a user