nova/nova/pci
Hemanth Nakkina 73e631862a Update pci stat pools based on PCI device changes
At start up of nova-compute service, the PCI stat pools are
populated based on information in pci_devices table in Nova
database. The pools are updated only when new device is added
or removed but not on any device changes like device type.

If an existing device is configured as SRIOV and nova-compute
is restarted, the pci_devices table gets updated but the device
is still listed under the old pool in pci_tracker.stats.pool
(in-memory object).

This patch looks for device type updates in existing devices
and updates the pools accordingly.

Conflicts:
      nova/tests/functional/libvirt/test_pci_sriov_servers.py

To avoid the conflicts and make the new functional test execute,
following changes are performed in the new test case
- Passing hostname as argument to self._get_connection() is not
  supported in stable/stein and hence dropped the argument.
- Compute nodes cannot be retreived by host and nodename should
  also be included in stable/stein. So modified the function call
  to use objects.ComputeNode.get_by_host_and_nodename instead.

Change-Id: Id4ebb06e634a612c8be4be6c678d8265e0b99730
Closes-Bug: #1892361
(cherry picked from commit b8695de6da)
(cherry picked from commit d8b8a8193b)
(cherry picked from commit f58399cf49)
(cherry picked from commit 8378785f99)
2021-01-21 10:08:15 +05:30
..
__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 Update pci stat pools based on PCI device changes 2021-01-21 10:08:15 +05:30
request.py Add get_instance_pci_request_from_vif 2019-03-07 11:37:53 +02:00
stats.py Update pci stat pools based on PCI device changes 2021-01-21 10:08:15 +05:30
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