commit d6de0e57c21472b99cbe71ec62b3967ef7282dec
Author: Matt Riedemann <email address hidden>
Date: Wed Aug 23 17:39:51 2017 -0400
Delete instance allocations when the instance is deleted
In a deployment that still has Ocata computes, the resource
tracker will delete the allocations for an instance when it
is deleted, but in an all-Pike+ computes deployment, the
allocations will only be removed for a deleted instance
during the update_available_resource periodic task.
The capacity on the node should be freed as soon as the
instance is deleted, like when we shelve offload an
instance, so this does that.
The ServerMovingTests functional tests were glossing over
this by forcing the run of the update_available_resource
periodic task code after the instance was deleted but
before checking the allocations were gone from Placement.
So this change removes that part of the tests to show
this fixes the problem.
Reviewed: https:/ /review. openstack. org/496942 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d6de0e57c21 472b99cbe71ec62 b3967ef7282dec
Committed: https:/
Submitter: Jenkins
Branch: master
commit d6de0e57c21472b 99cbe71ec62b396 7ef7282dec
Author: Matt Riedemann <email address hidden>
Date: Wed Aug 23 17:39:51 2017 -0400
Delete instance allocations when the instance is deleted
In a deployment that still has Ocata computes, the resource available_ resource periodic task.
tracker will delete the allocations for an instance when it
is deleted, but in an all-Pike+ computes deployment, the
allocations will only be removed for a deleted instance
during the update_
The capacity on the node should be freed as soon as the
instance is deleted, like when we shelve offload an
instance, so this does that.
The ServerMovingTests functional tests were glossing over available_ resource
this by forcing the run of the update_
periodic task code after the instance was deleted but
before checking the allocations were gone from Placement.
So this change removes that part of the tests to show
this fixes the problem.
Change-Id: I0f57b4ba8e4c39 31b70bd737de5b7 c8ae47f033d
Closes-Bug: #1712684