26c41eccad
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 |
||
---|---|---|
.. | ||
__init__.py | ||
devspec.py | ||
manager.py | ||
request.py | ||
stats.py | ||
utils.py | ||
whitelist.py |