Comment 15 for bug 1773542

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/ocata)

Reviewed: https://review.openstack.org/570653
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b4659017936d415c4395a57c52fad6cf3ffa5302
Submitter: Zuul
Branch: stable/ocata

commit b4659017936d415c4395a57c52fad6cf3ffa5302
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)
    (cherry picked from commit ab03100bcbd5afe5702b760057fc19e25300cd89)