nova/nova/pci
Sean Mooney 26c41eccad PCI: do not force remove allocated devices
In the ocata release the pci_passthrough_whitelist
was moved from the [DEFAULT] section of the nova.conf
to the [pci] section and renamed to passthrough_whitelist.

On upgrading if the operator chooses to migrate the config
value to the new section it is not uncommon
to forget to rename the config value.
Similarly if an operator is updateing the whitelist and
mistypes the value it can also lead to the whitelist
being ignored.

As a result of either error the nova compute agent
would delete all database entries for a host regardless of
if the pci device was in use by an instance. If this occurs
the only recorse for an operator is to delete and recreate
the guest on that host after correcting the error or manually
restore the database to backup or otherwise consistent state.

This change alters the _set_hvdevs function to not force
remove allocated or claimed devices if they are no longer
present in the pci whitelist.

Closes-Bug: #1633120
Change-Id: I6e871311a0fa10beaf601ca6912b4a33ba4094e0
2019-02-01 16:57:51 +00:00
..
__init__.py PCI utils 2013-08-23 14:21:12 +08:00
devspec.py [Trivial] docstrings, typos, minor refactoring 2017-08-28 08:33:58 -05:00
manager.py PCI: do not force remove allocated devices 2019-02-01 16:57:51 +00:00
request.py network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
stats.py Address nits in I46d483f9de6776db1b025f925890624e5e682ada 2018-01-02 15:57:50 +00:00
utils.py pci: don't consider case when match tags specs 2018-05-30 11:13:03 +02:00
whitelist.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00