From 0b3c1b876581c070d2ddda911aed617012e99e46 Mon Sep 17 00:00:00 2001 From: Bjoern Teipel Date: Tue, 3 Jan 2017 23:14:54 -0600 Subject: [PATCH] Implementation Neutron SR-IOV This fix adds the override `nova_pci_passthrough_whitelist` necessary to configure passtrough of virtual, SR-IOV provided, PCI devices. Co-Authored-By: James Denton Closes-Bug: #1653283 Depends-On: I7b580db0496ff009a2f64c71447b2977f22d6bf6 Depends-On: Ia62725e2369f75000157e0ab2c3f858e61fef10d Depends-On: I343f25a615840907168b0fa7d64fc61c01e0b49b Change-Id: I77e717947ae201812274a3b9cf1ec0450e556e67 --- defaults/main.yml | 7 +++++++ templates/nova.conf.j2 | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 84e58938..5171ef87 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -511,7 +511,14 @@ lxd_bind_port: 8443 lxd_storage_backend: dir # This needs to be set in the user_secrets.yml file. #lxd_trust_password: + # This variable should be used with lxd when using a # storage backend that utilizes storage pools #lxd_storage_pool: +# PCI devices passthrough to nova +# For SR-IOV please use: +# nova_pci_passthrough_whitelist: '{ "physical_network": "", "devname": "" }' +# Example: +# nova_pci_passthrough_whitelist: '{ "physical_network": "physnet1", "devname": "p1p1" }' +nova_pci_passthrough_whitelist: {} diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index baf191ea..24bdb637 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -103,6 +103,11 @@ 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