Comment 8 for bug 1878979

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

Reviewed: https://review.opendev.org/729088
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=4413e9bf569c46c1dadd8a729f7fa7f47a948697
Submitter: Zuul
Branch: stable/stein

commit 4413e9bf569c46c1dadd8a729f7fa7f47a948697
Author: Mohammed Naser <email address hidden>
Date: Fri May 15 16:49:12 2020 -0400

    Make quotas respect instance_list_per_project_cells

    This option was introduced in order to limit queries to cells which only
    belong to the project we're interacting with. However, The nova quota
    code was not respecting it and therefore it was always trying to get the
    cells assigned to a project even with that option disabled.

    This patch makes the quota code respect that option and adds testing to
    ensure that enabling the option does make sure it doesn't search all
    cells but only the ones for this project.

    Closes-Bug: #1878979

     Conflicts:
        nova/tests/functional/db/test_quota.py

    NOTE(melwitt): The conflict and difference (import mock) from the
    cherry-picked change are because of the following changes not in Stein:

      Iaffb27bd8c562ba120047c04bb62619c0864f594
      I3ff39d5ed99a68ad8678e5ff62b343f3018b4768

    Change-Id: I2e0d48e799e70d550f912ad8a424c86df3ade3a2
    (cherry picked from commit ab16946885e68ccdef7222a71cc0ad6f92b10de7)
    (cherry picked from commit fa2bfac862e9e1db5a98c64a56a933987f857903)
    (cherry picked from commit 91160c423839fc8a385dd28c96f94c2b2cdb02cd)