← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1712684] Re: allocations not immediately removed when instance is deleted

 

** Also affects: nova/pike
   Importance: Undecided
       Status: New

** Changed in: nova/pike
       Status: New => Triaged

** Changed in: nova/pike
   Importance: Undecided => High

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

Title:
  allocations not immediately removed when instance is deleted

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) pike series:
  Triaged

Bug description:
  Based on code inspection and a discussion with mriedem on IRC, it
  appears that when deleting an instance in a pure-Pike cloud the
  allocations are not removed until the update_available_resource()
  periodic task calls ResourceTracker._update_usage_from_instances(),
  which calls _remove_deleted_instances_allocations().

  In a mixed Ocata/Pike cloud the allocation will be freed up
  immediately when _update_usage_from_instance() calls
  self.reportclient.update_instance_allocation().

  In the ServerMovingTests functional test we bypass this by forcing the
  periodic task to run before checking that the allocations have been
  removed.

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


References