nova/nova/tests/unit/virt
Hemanth Nakkina d8b8a8193b 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.

Change-Id: Id4ebb06e634a612c8be4be6c678d8265e0b99730
Closes-Bug: #1892361
(cherry picked from commit b8695de6da)
2020-11-06 05:44:38 +00:00
..
disk lxc: make use of filter python3 compatible 2019-08-13 22:29:57 +00:00
hyperv objects: Introduce 'pcpuset' field for InstanceNUMACell 2020-07-14 00:38:34 +08:00
image
ironic virt: Add 'context', drop 'network_info' parameters for 'unrescue' 2020-07-08 11:56:01 +01:00
libvirt Update pci stat pools based on PCI device changes 2020-11-06 05:44:38 +00:00
powervm Remove future imports 2020-03-24 15:05:36 +00:00
vmwareapi tests: Remove '_FakeImageService' 2020-09-16 11:31:23 +01:00
zvm set default value to 0 instead of '' 2020-02-11 10:01:37 +00:00
__init__.py
fakelibosinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_block_device.py block_device: Copy original volume_type when missing for snapshot based volumes 2019-11-21 18:13:04 +00:00
test_configdrive.py Skip existing VMs when hosts apply force_config_drive 2019-05-22 21:02:16 +00:00
test_events.py
test_fake.py
test_hardware.py hardware: Reject requests for no hyperthreads on hosts with HT 2020-07-31 13:30:17 +01:00
test_imagecache.py Consolidate [image_cache] conf options 2019-11-13 11:09:03 -06:00
test_images.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
test_netutils.py
test_osinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_virt.py We no longer need rootwrap. 2019-02-27 05:06:31 +00:00
test_virt_drivers.py tests: Remove '_FakeImageService' 2020-09-16 11:31:23 +01:00