From b8ea3ae0854e0d37e4f95930ac7d2c99d7a2b5e6 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Thu, 7 Aug 2025 10:11:35 +0000 Subject: [PATCH] Enable pci.report_in_placement We previously had some issues with SR-IOV devices and placement reporting. Nova docs also made it seem like this scenario is unsupported. Those issues were addressed by explicitly whitelisting VFs instead of PFs Sample: https://paste.ubuntu.com/p/vTg3GZVKz6/plain/ VFs that have an associated physnet will not be reported to the placement service, however they can still be attached, leveraging the old Nova PCI tracker. Snap PR: https://github.com/canonical/snap-openstack-hypervisor/pull/105 Change-Id: I61bfba7d710de289346660e1498129db4f41d7ba Signed-off-by: Lucian Petrut --- charms/nova-k8s/src/templates/nova.conf.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/charms/nova-k8s/src/templates/nova.conf.j2 b/charms/nova-k8s/src/templates/nova.conf.j2 index 94246ae3..a529420c 100644 --- a/charms/nova-k8s/src/templates/nova.conf.j2 +++ b/charms/nova-k8s/src/templates/nova.conf.j2 @@ -51,10 +51,8 @@ alias = {{ alias }} [filter_scheduler] enabled_filters = ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, ServerGroupAntiAffinityFilter, ServerGroupAffinityFilter, PciPassthroughFilter, NUMATopologyFilter available_filters = nova.scheduler.filters.all_filters -# TODO: consider enabling the following once Nova supports -# tracking SR-IOV ports consumed by Neutron. # https://docs.openstack.org/nova/latest/admin/pci-passthrough.html -pci_in_placement = False +pci_in_placement = True [scheduler] # NOTE(jamespage): perform automatic host cell mapping