Comment 5 for bug 1982962

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/851915
Committed: https://opendev.org/openstack/neutron/commit/ca96555e8168548f7c19e853f2242f501c945ff2
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit ca96555e8168548f7c19e853f2242f501c945ff2
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Jul 27 17:55:48 2022 +0200

    Implement specific tracked resource count method per quota driver

    This patch implements a new method specific for each quota driver
    class. This method, "get_resource_count", returns the current number
    of resources created in a project of a tracked resource. A tracked
    resource is an instance of ``neutron.quota.resource.TrackedResource``.
    This method does not count the current reservations, just the actual
    resources created.

    This new method, "get_resource_count", will be added to the abstract
    class ``neutron_lib.db.quota_api.QuotaDriverAPI``.

    This patch also fixes ``TestDbQuotaDriverNoLock``, that was using a
    plugin inheriting from ``DbQuotaDriver`` instead of
    ``DbQuotaNoLockDriver``.

    Closes-Bug: #1982962

    Conflicts:
      neutron/db/quota/driver_null.py

    Change-Id: I2707506468cb60d93a4459ea364f1e79faa83838
    (cherry picked from commit bd60f0833bb439192140b7d04e0b01a5d63f0bb5)