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:
Reviewed: https:/ /review. opendev. org/729088 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=4413e9bf569 c46c1dadd8a729f 7fa7f47a948697
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 4413e9bf569c46c 1dadd8a729f7fa7 f47a948697
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:
Iaffb27bd 8c562ba120047c0 4bb62619c0864f5 94 d99a68ad8678e5f f62b343f3018b47 68
I3ff39d5e
Change-Id: I2e0d48e799e70d 550f912ad8a424c 86df3ade3a2 def7222a71cc0ad 6f92b10de7) b5a98c64a56a933 987f857903) a385dd28c96f94c 2b2cdb02cd)
(cherry picked from commit ab16946885e68cc
(cherry picked from commit fa2bfac862e9e1d
(cherry picked from commit 91160c423839fc8