OpenStack Networking (Neutron)
Go to file
Slawek Kaplonski 51d1899bac Handle properly InvalidScope exceptions to not return error 500
When new default policy rules and scope enforcement are enabled, Neutron
needs to handle properly not only PolicyNotAuthorized exception from
oslo_policy module but also InvalidScope exception.
This patch adds handling of that exception to the neutron policy
modules.

In the check() method from the neutron.policy module we are calling
ENFORCER.enforce() method with do_raise=False which means that
PolicyNotAuthorized isn't rasised. Unfortunately it seems that there is
bug in oslo.policy module and InvalidScope is raised even with
do_raise=False.
For now, lets workaround it in Neutron by properly handling InvalidScope
exception in the check() method.
This workaround can be cleaned when bug [1] will be fixed in
oslo.policy.

[1] https://bugs.launchpad.net/oslo.policy/+bug/1965315

Partial-Bug: #1959333
Change-Id: I973f8896248c8222031c53343bb53ce48254da74
2022-03-30 14:52:37 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
devstack Merge "Add ndp_proxy to devstack plugin" 2022-03-12 04:07:14 +00:00
doc Merge "ovn migration: Remove usage of tripleo-ansible-inventory" 2022-03-25 18:50:49 +00:00
etc Sync rootwrap.conf from oslo.rootwrap 2022-01-03 09:17:04 +09:00
neutron Handle properly InvalidScope exceptions to not return error 500 2022-03-30 14:52:37 +00:00
playbooks Run configure_for_func_testing script after enable fips 2022-03-11 16:02:22 +01:00
rally-jobs [ci] Fix several rally task arguments 2020-05-06 14:56:27 +03:00
releasenotes [OVN] Implement router gateway IP QoS 2022-03-17 12:37:13 +00:00
roles Make configure_for_func_testing compatible with e.g. Centos 2022-01-17 12:32:04 +01:00
tools Merge "ovn migration: Remove usage of tripleo-ansible-inventory" 2022-03-25 18:50:49 +00:00
vagrant/ovn Fix local neutron folder path in ovn/sparse/Vagrantfile 2020-11-03 17:02:34 +01:00
zuul.d Merge "Add grenade-skip-level (tick-tick) job" 2022-03-16 00:12:56 +00:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore Add etc/neutron/*.sample files to be ignored by git 2019-12-12 12:38:24 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:38:27 +00:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Remove "six" library 2020-07-28 16:55:52 +00:00
.stestr.conf Fix post gate hook to accommodate for new os-testr 2017-09-12 14:20:12 -06:00
bindep.txt Merge "Add some packages to the bindep list" 2022-03-16 01:07:31 +00:00
CONTRIBUTING.rst [Community goal] Add contributor and PTL guide 2020-03-03 04:43:26 +01:00
HACKING.rst Follow up for replacing assertItemsEqual 2021-06-03 16:04:07 +00:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
lower-constraints.txt Bump python-neutronclient version to 7.8.0 2022-02-23 08:55:49 +08:00
plugin.spec Add OVN migration OSP 16.2 option 2021-01-24 17:18:55 +02:00
README.rst Start README.rst with a better title 2019-11-19 17:42:57 +01:00
requirements.txt Bump python-neutronclient version to 7.8.0 2022-02-23 08:55:49 +08:00
setup.cfg [Agent Side] L3 router support ndp proxy 2022-02-25 12:42:13 +08:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Follow-up: Move linters dependencies to tox.ini 2021-01-07 04:26:07 +09:00
TESTING.rst Fix links for Source code references 2021-12-02 20:12:34 +05:30
tox.ini [FT] Run all .*MySQL tests in an isolated thread 2022-03-23 15:24:51 +00:00

OpenStack Neutron

image

Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute, please read the CONTRIBUTING.rst file.