Comment 0 for bug 1314008

Revision history for this message
Ding Xiao (xiaoding1) wrote :

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"