From d9f9431456b0cfc85bf0433fb8f5608579c9e55f Mon Sep 17 00:00:00 2001 From: Seyeong Kim Date: Mon, 20 Nov 2017 15:38:20 +0900 Subject: [PATCH] Adding http_proxy_to_wsgi support to mitaka. nova mitaka doesn't have http_proxy_to_wsgi but mitaka nova has issue related to this. I backported commit 6051f30a, b609a3b32 to api-paste.ini. Change-Id: Ibeb8f655504ecfc1763743faa52f7e3aa552c3c4 Related-Bug: #1573766 --- templates/mitaka/api-paste.ini | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/mitaka/api-paste.ini b/templates/mitaka/api-paste.ini index e84aa2b1..2aaf207b 100644 --- a/templates/mitaka/api-paste.ini +++ b/templates/mitaka/api-paste.ini @@ -44,13 +44,13 @@ keystone_nolimit = cors compute_req_id faultwrap sizelimit authtoken keystonecon [composite:openstack_compute_api_v21] use = call:nova.api.auth:pipeline_factory_v21 -noauth2 = cors compute_req_id faultwrap sizelimit noauth2 osapi_compute_app_v21 -keystone = cors compute_req_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_v21 +noauth2 = cors http_proxy_to_wsgi compute_req_id faultwrap sizelimit noauth2 osapi_compute_app_v21 +keystone = cors http_proxy_to_wsgi compute_req_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_v21 [composite:openstack_compute_api_v21_legacy_v2_compatible] use = call:nova.api.auth:pipeline_factory_v21 -noauth2 = cors compute_req_id faultwrap sizelimit noauth2 legacy_v2_compatible osapi_compute_app_v21 -keystone = cors compute_req_id faultwrap sizelimit authtoken keystonecontext legacy_v2_compatible osapi_compute_app_v21 +noauth2 = cors http_proxy_to_wsgi compute_req_id faultwrap sizelimit noauth2 legacy_v2_compatible osapi_compute_app_v21 +keystone = cors http_proxy_to_wsgi compute_req_id faultwrap sizelimit authtoken keystonecontext legacy_v2_compatible osapi_compute_app_v21 [filter:request_id] paste.filter_factory = oslo_middleware:RequestId.factory @@ -73,6 +73,9 @@ limits = {{ api_rate_limit_rules }} [filter:sizelimit] paste.filter_factory = oslo_middleware:RequestBodySizeLimiter.factory +[filter:http_proxy_to_wsgi] +paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory + [filter:legacy_v2_compatible] paste.filter_factory = nova.api.openstack:LegacyV2CompatibleWrapper.factory @@ -83,7 +86,7 @@ paste.app_factory = nova.api.openstack.compute:APIRouter.factory paste.app_factory = nova.api.openstack.compute:APIRouterV21.factory [pipeline:oscomputeversions] -pipeline = faultwrap oscomputeversionapp +pipeline = faultwrap http_proxy_to_wsgi oscomputeversionapp [app:oscomputeversionapp] paste.app_factory = nova.api.openstack.compute.versions:Versions.factory