commit 1b2f3c7bb25667527e7e1d2afd84d5d5533e7751
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.
Change-Id: I0f57b4ba8e4c3931b70bd737de5b7c8ae47f033d
Closes-Bug: #1712684
(cherry picked from commit d6de0e57c21472b99cbe71ec62b3967ef7282dec)
Reviewed: https:/ /review. openstack. org/496997 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1b2f3c7bb25 667527e7e1d2afd 84d5d5533e7751
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit 1b2f3c7bb256675 27e7e1d2afd84d5 d5533e7751
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 99cbe71ec62b396 7ef7282dec)
Closes-Bug: #1712684
(cherry picked from commit d6de0e57c21472b