1fb4cc03e3
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 The functional test requires to skip the capabilities of pci device. This can be done by getting capability template out of pci_dev_template [1] which is introduced by commit |
||
---|---|---|
.. | ||
__init__.py | ||
fakes.py | ||
test_devspec.py | ||
test_manager.py | ||
test_request.py | ||
test_stats.py | ||
test_utils.py | ||
test_whitelist.py |