← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1784874] [NEW] ResourceTracker doesn't clean up compute_nodes or stats entries

 

Public bug reported:

This was noted in review:

https://review.openstack.org/#/c/587636/4/nova/compute/resource_tracker.py@141

That the ResourceTracker.compute_nodes and ResourceTracker.stats (and
old_resources) entries only grow and are never cleaned up as we
rebalance nodes or nodes are deleted, which means it just takes up
memory over time.

When we cleanup compute nodes here:

https://github.com/openstack/nova/blob/47ef500f4492c731ebfa33a12822ef6b5db4e7e2/nova/compute/manager.py#L7759

We should probably call a cleanup hook into the ResourceTracker to
cleanup those entries as well.

** Affects: nova
     Importance: Low
         Status: Triaged


** Tags: ironic performance resource-tracker

-- 
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/1784874

Title:
  ResourceTracker doesn't clean up compute_nodes or stats entries

Status in OpenStack Compute (nova):
  Triaged

Bug description:
  This was noted in review:

  https://review.openstack.org/#/c/587636/4/nova/compute/resource_tracker.py@141

  That the ResourceTracker.compute_nodes and ResourceTracker.stats (and
  old_resources) entries only grow and are never cleaned up as we
  rebalance nodes or nodes are deleted, which means it just takes up
  memory over time.

  When we cleanup compute nodes here:

  https://github.com/openstack/nova/blob/47ef500f4492c731ebfa33a12822ef6b5db4e7e2/nova/compute/manager.py#L7759

  We should probably call a cleanup hook into the ResourceTracker to
  cleanup those entries as well.

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


Follow ups