nova/releasenotes
Hemanth Nakkina 8378785f99 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
      nova/tests/unit/virt/libvirt/fakelibvirt.py
      nova/tests/functional/libvirt/base.py

To avoid the conflicts and make the new functional test execute,
following changes are performed
- Modified the test case to use flavor extra spec pci_passthrough
  :alias to create a server with sriov port instead of creating a
  sriov port and passing port information during server creation.
- Removed changes in nova/tests/functional/libvirt/base.py as they
  are required only if neutron sriov port is created in the test
  case.

Change-Id: Id4ebb06e634a612c8be4be6c678d8265e0b99730
Closes-Bug: #1892361
(cherry picked from commit b8695de6da)
(cherry picked from commit d8b8a8193b)
(cherry picked from commit f58399cf49)
2021-01-11 13:06:24 +05:30
..
notes Update pci stat pools based on PCI device changes 2021-01-11 13:06:24 +05:30
source Imported Translations from Zanata 2019-10-02 07:19:10 +00:00