From bc8a91dea05b62b8ce0c9e83f539a0f321b9b1b4 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Tue, 31 Jul 2018 06:43:11 +0200 Subject: [PATCH] Update `api-paste.ini` for Rocky Removal of entrypoint `neutron.api.versions:Versions.factory` mandates a new version of the `api-paste.ini` file for Rocky. Reference: https://github.com/openstack/neutron/blob/master/releasenotes/notes/noneutronversions-fbbdb98f350767d8.yaml Change-Id: I0405c698190c84b521e52ba02e6fb1c5396be9be Closes-Bug: #1784405 --- templates/rocky/api-paste.ini | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 templates/rocky/api-paste.ini diff --git a/templates/rocky/api-paste.ini b/templates/rocky/api-paste.ini new file mode 100644 index 00000000..5ff3da0d --- /dev/null +++ b/templates/rocky/api-paste.ini @@ -0,0 +1,53 @@ +[composite:neutron] +use = egg:Paste#urlmap +/: neutronversions_composite +/v2.0: neutronapi_v2_0 + +[composite:neutronapi_v2_0] +use = call:neutron.auth:pipeline_factory +noauth = cors http_proxy_to_wsgi request_id catch_errors extensions neutronapiapp_v2_0 +keystone = cors http_proxy_to_wsgi request_id catch_errors authtoken keystonecontext extensions neutronapiapp_v2_0 +keystone = {% for m in extra_middleware %}{{ m.name }} {% endfor %}cors http_proxy_to_wsgi request_id catch_errors authtoken keystonecontext extensions neutronapiapp_v2_0 + +{% for m in extra_middleware -%} +[{{ m.type }}:{{ m.name }}] +{% for k, v in m.config.items() -%} +{{ k }} = {{ v }} +{% endfor %} +{% endfor -%} + +[composite:neutronversions_composite] +use = call:neutron.auth:pipeline_factory +noauth = cors http_proxy_to_wsgi neutronversions +keystone = cors http_proxy_to_wsgi neutronversions + +[filter:request_id] +paste.filter_factory = oslo_middleware:RequestId.factory + +[filter:catch_errors] +paste.filter_factory = oslo_middleware:CatchErrors.factory + +[filter:cors] +paste.filter_factory = oslo_middleware.cors:filter_factory +oslo_config_project = neutron + +[filter:http_proxy_to_wsgi] +paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory + +[filter:keystonecontext] +paste.filter_factory = neutron.auth:NeutronKeystoneContext.factory + +[filter:authtoken] +paste.filter_factory = keystonemiddleware.auth_token:filter_factory + +[filter:extensions] +paste.filter_factory = neutron.api.extensions:plugin_aware_extension_middleware_factory + +[app:neutronversions] +paste.app_factory = neutron.pecan_wsgi.app:versions_factory + +[app:neutronapiapp_v2_0] +paste.app_factory = neutron.api.v2.router:APIRouter.factory + +[filter:osprofiler] +paste.filter_factory = osprofiler.web:WsgiMiddleware.factory