From a383124336dfc74b4d652be594f7bba0197c24b1 Mon Sep 17 00:00:00 2001 From: Adrien Cunin Date: Fri, 20 Jul 2018 16:13:12 +0200 Subject: [PATCH] Put passthrough_whitelist in the [pci] section pci_passthrough_whitelist is now deprecated. https://docs.openstack.org/nova/latest/configuration/config.html#pci.alias Change-Id: I2a3e266e3066d6c271a29038e814ff8e3090fafb --- templates/nova.conf.j2 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 0c5f081e..e3c5213c 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -59,11 +59,6 @@ libvirt_vif_type = ethernet vif_plugging_timeout = 10 vif_plugging_is_fatal = False -{% if nova_pci_passthrough_whitelist %} -# PCI Passthrough -pci_passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}" -{% endif %} - # Hypervisor default_ephemeral_format = ext4 @@ -301,6 +296,12 @@ auth_url = {{ keystone_service_adminurl }} insecure = {{ keystone_service_adminuri_insecure | bool }} {% endif %} +{% if nova_pci_passthrough_whitelist %} +# PCI Passthrough +[pci] +passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}" +{% endif %} + [wsgi] api_paste_config = /etc/nova/api-paste.ini {% if nova_external_ssl | bool %}