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.
Reviewed: https:/ /review. opendev. org/749175 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b8695de6da5 6db42b83b9d9d4c 330148766644be
Committed: https:/
Submitter: Zuul
Branch: master
commit b8695de6da56db4 2b83b9d9d4c3301 48766644be
Author: Hemanth Nakkina <email address hidden>
Date: Tue Sep 1 09:36:51 2020 +0530
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 stats.pool
is restarted, the pci_devices table gets updated but the device
is still listed under the old pool in pci_tracker.
(in-memory object).
This patch looks for device type updates in existing devices
and updates the pools accordingly.
Change-Id: Id4ebb06e634a61 2c8be4be6c678d8 265e0b99730
Closes-Bug: #1892361