In _report_final_resource_view() method
if 'pci_devices' in resources: LOG.audit(_("Free PCI devices: %s") % resources['pci_devices']) but in update_available_resource() method
if self.pci_tracker: self.pci_tracker.clean_usage(instances, migrations, orphans) resources['pci_stats'] = jsonutils.dumps(self.pci_tracker.stats) else: resources['pci_stats'] = jsonutils.dumps([])
resources has key "pci_stats" not "pci_devices"
In _report_ final_resource_ view() method
if 'pci_devices' in resources:
LOG. audit(_ ("Free PCI devices: %s") % resources[ 'pci_devices' ]) available_ resource( ) method
but in update_
if self.pci_tracker:
self. pci_tracker. clean_usage( instances, migrations, orphans)
resources[ 'pci_stats' ] = jsonutils. dumps(self. pci_tracker. stats)
resources[ 'pci_stats' ] = jsonutils.dumps([])
else:
resources has key "pci_stats" not "pci_devices"