From cb701071a1ec49d9aaf5892f1a86ff5c705712a9 Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Mon, 2 Jun 2025 11:12:14 +0200 Subject: [PATCH] [doc]Clarify where to set pci_in_placement The doc is now clarifying that [filter_scheduler]pci_in_placement needs to be set to nova-api, nova-scheduler, and nova-conductor config as well. Closes-Bug: #2112303 Change-Id: I3c7be2f109a97ef5cc4b2dc76cb7c58ef8c68afa (cherry picked from commit a1c47fc242b6002d2be60fc41176ce29d19d924e) --- doc/source/admin/pci-passthrough.rst | 9 +++++---- nova/conf/scheduler.py | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/source/admin/pci-passthrough.rst b/doc/source/admin/pci-passthrough.rst index 0f82a227a8a7..9c3a21e0f751 100644 --- a/doc/source/admin/pci-passthrough.rst +++ b/doc/source/admin/pci-passthrough.rst @@ -458,10 +458,11 @@ the PF and its VFs are made available for consumption. Since nova 27.0.0 (2023.1 Antelope) scheduling and allocation of PCI devices in Placement can also be enabled via -:oslo.config:option:`filter_scheduler.pci_in_placement`. Please note that this -should only be enabled after all the computes in the system is configured to -report PCI inventory in Placement via -enabling :oslo.config:option:`pci.report_in_placement`. In Antelope flavor +:oslo.config:option:`filter_scheduler.pci_in_placement` config option set in +the nova-api, nova-scheduler, and nova-conductor configuration. Please note +that this should only be enabled after all the computes in the system is +configured to report PCI inventory in Placement via enabling +:oslo.config:option:`pci.report_in_placement`. In Antelope flavor based PCI requests are support but Neutron port base PCI requests are not handled in Placement. diff --git a/nova/conf/scheduler.py b/nova/conf/scheduler.py index c47170e40075..a5f0c5c15e3e 100644 --- a/nova/conf/scheduler.py +++ b/nova/conf/scheduler.py @@ -905,7 +905,9 @@ compute hosts. When enabled the scheduler queries Placement about the PCI device availability to select destination for a server with PCI request. The scheduler also allocates the selected PCI devices in Placement. Note that this logic -does not replace the PCIPassthroughFilter but extends it. +does not replace the PCIPassthroughFilter but extends it. Note that this +config option needs to be set in the configuration of nova-api, nova-scheduler, +and all nova-conductor services. * ``[pci] report_in_placement`` * ``[pci] alias``