Public bug reported:

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.

** Affects: nova
     Importance: High
         Status: Triaged


** Tags: compute pike-rc-potential placement scheduler

** Summary changed:

- allocations not immediately removed when instance deleted
+ allocations not immediately removed when instance is deleted

-- 
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):
  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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to