neutron/neutron/services
Slawek Kaplonski 062336e59b Set system_scope='all' in elevated context
In case when enforce_new_defaults is set to True and new policy rules
are used, context.is_admin flag isn't really working as it was with old
rules.
But in case when elevated context is needed, it means that we need
context which has full rights to the system. So we should also set
"system_scope" parameter to "all" to be sure that system scope queries
can be done with such elevated context always.

It is needed e.g. when elevated context is used to get some data from
db. In such case we need to have db query which will not be scoped to
the single project_id and with new defaults to achieve that system_scope
has to be set to "all".

Proper fix for that should be done in neutron-lib and it is proposed
in [1] already but as we are have frozen neutron-lib version for
stable/wallaby already this patch for neutron is temporary fix for that
issue.
We can revert that patch as soon as we will be in Xena development cycle
and [1] will be merged and released.

[1] https://review.opendev.org/c/openstack/neutron-lib/+/781625

Related-Bug: #1920001
Change-Id: I0068c1de09f5c6fae5bb5cd0d6f26f451e701939
2021-03-19 12:05:56 +01:00
..
auto_allocate Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
conntrack_helper Bump pylint version to support python 3.8 2020-08-06 16:00:30 +02:00
externaldns Treat Forbidden as NotFound in Designate 2020-10-22 12:48:23 +00:00
flavors use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
l3_router Remove left over code for admin_state_down_before_update 2020-11-09 12:48:53 +00:00
logapi [OVN] security group logging support (2 of 2) 2021-03-02 10:48:23 -05:00
loki use sqla functions from neutron-lib 2018-07-25 21:04:20 +00:00
metering Update requirements for recent pip failures 2020-12-09 13:17:51 +01:00
network_ip_availability use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
network_segment_range Remove "six" library 2020-07-28 16:55:52 +00:00
ovn_l3 Set system_scope='all' in elevated context 2021-03-19 12:05:56 +01:00
placement_report Locate RP-tree parent by hypervisor name 2019-12-10 10:21:53 +01:00
portforwarding Set system_scope='all' in elevated context 2021-03-19 12:05:56 +01:00
qos Set system_scope='all' in elevated context 2021-03-19 12:05:56 +01:00
rbac Neutron RBAC API and network support 2015-08-20 20:00:17 -07:00
revisions Check the revision number only once 2021-01-08 08:31:26 +00:00
segments Set system_scope='all' in elevated context 2021-03-19 12:05:56 +01:00
tag Implement tagging during bulk port creation 2020-01-28 18:23:37 -06:00
timestamp remove the neutron.db._model_query module 2019-01-25 08:55:25 -07:00
trunk Set system_scope='all' in elevated context 2021-03-19 12:05:56 +01:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
provider_configuration.py Merge "Select service_provider on the basis of service_module" 2018-11-15 12:47:09 +00:00
service_base.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00