2014-04-29 07:03:03 |
Ding Xiao |
description |
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'])
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"
https://review.openstack.org/#/c/90671/ |
|