nova/nova/tests/functional/libvirt
Hemanth Nakkina f58399cf49 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

To avoid the conflicts and make the new functional test execute,
following changes are performed
- Modified the Neutron fixture to use LibvirtNeutron fixture.
- nova/tests/functional/libvirt/base.py is modified to include
tenant_id in the port body.

Change-Id: Id4ebb06e634a612c8be4be6c678d8265e0b99730
Closes-Bug: #1892361
(cherry picked from commit b8695de6da)
(cherry picked from commit d8b8a8193b)
2020-12-01 10:42:09 +05:30
..
__init__.py tests: introduce a NUMAServersTest class 2015-04-16 11:43:53 -04:00
base.py Update pci stat pools based on PCI device changes 2020-12-01 10:42:09 +05:30
integrated_helpers.py Extract new base class for provider usage functional tests 2019-08-21 15:06:20 +01:00
test_evacuate.py libvirt: Don't delete disks on shared storage during evacuate 2020-06-10 00:05:07 +00:00
test_numa_servers.py Don't unset Instance.old_flavor, new_flavor until necessary 2020-09-11 17:23:07 +01:00
test_pci_sriov_servers.py Update pci stat pools based on PCI device changes 2020-12-01 10:42:09 +05:30
test_report_cpu_traits.py libvirt: Use domain capabilities to get supported device models 2020-03-24 17:28:09 +00:00
test_reshape.py Functional test with pGPUs 2020-04-09 17:54:31 +02:00
test_rt_servers.py functional: Add '_create_server' helper 2020-01-20 14:32:43 +00:00
test_shared_resource_provider.py functional: Add '_create_server' helper 2020-01-20 14:32:43 +00:00
test_vgpu.py Allocate mdevs when resizing or reverting resize 2020-04-20 14:48:16 +02:00
test_vpmem.py functional: Add '_create_server' helper 2020-01-20 14:32:43 +00:00