commit ab03100bcbd5afe5702b760057fc19e25300cd89
Author: huanhongda <email address hidden>
Date: Sat May 26 22:40:27 2018 +0800
[Stable Only] Remove soft-deleted instances from quota_usages
The resources in quota_usages table will minus 1 while
soft deleting an instance. But the soft-deleted instances
are counted when synchronizing quota_usages using command
"nova-manage project quota_usage_refresh". So we filter
out soft-deleted instances when synchronizing quota_usage.
We didn't need to do this on master as the quota_usage_refresh
command has been removed in 17.0.0 (Queens). And the
_instance_data_get_for_user function is already removed
in commit c881e77819f1b8ca48c0dfd0ebfb75daaabf1033. https://review.openstack.org/#/c/570865/
Change-Id: I8dcbe1e5f3f70ddd7067fed1125ef3379044ab0f
Closes-bug: #1773542
(cherry picked from commit 58538ace357d97bd9a06ce042aadc2928b1ff5bc)
Reviewed: https:/ /review. openstack. org/602459 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ab03100bcbd 5afe5702b760057 fc19e25300cd89
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit ab03100bcbd5afe 5702b760057fc19 e25300cd89
Author: huanhongda <email address hidden>
Date: Sat May 26 22:40:27 2018 +0800
[Stable Only] Remove soft-deleted instances from quota_usages
The resources in quota_usages table will minus 1 while refresh" . So we filter
soft deleting an instance. But the soft-deleted instances
are counted when synchronizing quota_usages using command
"nova-manage project quota_usage_
out soft-deleted instances when synchronizing quota_usage.
We didn't need to do this on master as the quota_usage_refresh data_get_ for_user function is already removed a48c0dfd0ebfb75 daaabf1033. /review. openstack. org/#/c/ 570865/
command has been removed in 17.0.0 (Queens). And the
_instance_
in commit c881e77819f1b8c
https:/
Change-Id: I8dcbe1e5f3f70d dd7067fed1125ef 3379044ab0f d9a06ce042aadc2 928b1ff5bc)
Closes-bug: #1773542
(cherry picked from commit 58538ace357d97b