nova/nova/scheduler
Balazs Gibizer 9268bc36a3 Handle PCI dev reconf with allocations
PCI devices which are allocated to instances can be removed from the
[pci]device_spec configuration or can be removed from the hypervisor
directly. The existing PciTracker code handle this cases by keeping the
PciDevice in the nova DB exists and allocated and issue a warning in the
logs during the compute service startup that nova is in an inconsistent
state. Similar behavior is now added to the PCI placement tracking code
so the PCI inventories and allocations in placement is kept in such
situation.

There is one case where we cannot simply accept the PCI device
reconfiguration by keeping the existing allocations and applying the new
config. It is when a PF that is configured and allocated is removed and
VFs from this PF is now configured in the [pci]device_spec. And vice
versa when VFs are removed and its parent PF is configured. In this case
keeping the existing inventory and allocations and adding the new inventory
to placement would result in placement model where a single PCI device
would provide both PF and VF inventories. This dependent device
configuration is not supported as it could lead to double consumption.
In such situation the compute service will refuse to start.

blueprint: pci-device-tracking-in-placement
Change-Id: Id130893de650cc2d38953cea7cf9f53af71ced93
2022-08-26 19:05:45 +02:00
..
client Handle PCI dev reconf with allocations 2022-08-26 19:05:45 +02:00
filters Merge "Deprecate filters that have been replaced by placement filters" 2021-08-21 02:51:28 +00:00
weights Add CrossCellWeigher 2019-12-12 12:40:29 -05:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
host_manager.py Remove Python 2-specific imports 2022-01-28 12:27:06 +00:00
manager.py Unify placement client singleton implementations 2022-08-18 07:22:37 -07:00
request_filter.py Merge "scheduler: Add an ephemeral encryption pre filter" 2022-08-19 03:47:53 +00:00
rpcapi.py Remove return from rpc cast 2022-06-18 16:23:26 +05:30
utils.py Tell oslo.limit how to count nova resources 2022-02-24 16:21:02 +00:00