← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1490581] [NEW] the items will never be deleted from metering_info

 

Public bug reported:

The function _purge_metering_info of MeteringAgent class has a bug. The items of metering_info dictionary will never be deleted:
            if info['last_update'] > ts + report_interval:
                del self.metering_info[label_id]
I this situation last_update will always be less than current timestamp.
Also this function is not covered by the unit tests.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: metering

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1490581

Title:
  the items will never be deleted from metering_info

Status in neutron:
  New

Bug description:
  The function _purge_metering_info of MeteringAgent class has a bug. The items of metering_info dictionary will never be deleted:
              if info['last_update'] > ts + report_interval:
                  del self.metering_info[label_id]
  I this situation last_update will always be less than current timestamp.
  Also this function is not covered by the unit tests.

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


Follow ups