← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1314008] [NEW] "free pci" in log message never record

 

Public bug reported:

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"

** Affects: nova
     Importance: Undecided
     Assignee: Ding Xiao (xiaoding1)
         Status: In Progress

** Changed in: nova
     Assignee: (unassigned) => Ding Xiao (xiaoding1)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1314008

Title:
  "free pci" in log message  never record

Status in OpenStack Compute (Nova):
  In Progress

Bug 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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1314008/+subscriptions


Follow ups

References