Comment 11 for bug 1773542

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

Reviewed: https://review.openstack.org/579093
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=58538ace357d97bd9a06ce042aadc2928b1ff5bc
Submitter: Zuul
Branch: stable/queens

commit 58538ace357d97bd9a06ce042aadc2928b1ff5bc
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