73e631862a
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 To avoid the conflicts and make the new functional test execute, following changes are performed in the new test case - Passing hostname as argument to self._get_connection() is not supported in stable/stein and hence dropped the argument. - Compute nodes cannot be retreived by host and nodename should also be included in stable/stein. So modified the function call to use objects.ComputeNode.get_by_host_and_nodename instead. Change-Id: Id4ebb06e634a612c8be4be6c678d8265e0b99730 Closes-Bug: #1892361 (cherry picked from commit |
||
---|---|---|
.. | ||
__init__.py | ||
devspec.py | ||
manager.py | ||
request.py | ||
stats.py | ||
utils.py | ||
whitelist.py |