nova/nova/tests/unit/virt/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
..
storage Merge "Leave brackets on Ceph IP addresses for libguestfs" 2019-10-14 20:56:14 +00:00
volume workarounds: Add option to locally attach RBD volumes on compute hosts 2020-04-06 21:59:08 +01:00
__init__.py
fake_imagebackend.py libvirt: Add support for stable device rescue 2020-04-09 08:39:35 +01:00
fake_libvirt_data.py Also enable iommu for virtio controllers and video in libvirt 2019-12-10 11:01:08 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Update pci stat pools based on PCI device changes 2020-12-01 10:42:09 +05:30
test_blockinfo.py fup: Combine SUPPORTED_DEVICE_BUS and SUPPORTED_STORAGE_BUSES 2020-04-09 09:05:13 +01:00
test_config.py libvirt: Use domain capabilities to get supported device models 2020-03-24 17:28:09 +00:00
test_designer.py Create a controller for qga when SEV is used 2019-12-10 11:01:08 +00:00
test_driver.py Merge "replace the "hide_hypervisor_id" to "hw:hide_hypervisor_id"" into stable/ussuri 2020-11-13 21:27:53 +00:00
test_fakelibvirt.py libvirt: Get the CPU model, not 'arch' from get_capabilities() 2019-09-20 16:04:46 +00:00
test_guest.py Merge "libvirt: Do not reference VIR_ERR_DEVICE_MISSING when libvirt is < v4.1.0" into stable/ussuri 2020-08-26 11:49:58 +00:00
test_host.py Correct reported system memory 2020-07-13 11:07:59 +00:00
test_imagebackend.py Make RBD imagebackend flatten method idempotent 2020-01-28 14:30:40 +01:00
test_imagecache.py Guard against missing image cache directory 2020-06-25 12:19:00 +00:00
test_migration.py Handle multiple 'vcpusched' elements during live migrate 2020-07-29 18:00:43 +01:00
test_utils.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
test_vif.py Allow tap interface with multiqueue 2020-10-01 14:29:01 +02:00