yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66897
[Bug 1712684] Re: allocations not immediately removed when instance is deleted
Fix proposed to branch: stable/pike
Review: https://review.openstack.org/496997
** Changed in: nova/pike
Status: Triaged => In Progress
** Changed in: nova/pike
Assignee: (unassigned) => Matt Riedemann (mriedem)
** Changed in: nova
Status: In Progress => Fix Released
--
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):
Fix Released
Status in OpenStack Compute (nova) pike series:
In Progress
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