From 6051f30a7e61c32833667d3079744b2d4fd1ce7c Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Mon, 30 May 2016 08:12:20 +0300 Subject: [PATCH] Add proxy middleware to application pipeline Recently the http_proxy_to_wsgi middleware was added before the versions resource; This correctly sets the URL scheme for keystone version discovery, however, this is missing the URL schemes for pagination URLs. So for this to work, the middleware needs to be added to the application pipelines. Note that a similar commit was done in cinder [1]. [1] If5aab9cc25a2e7c66a0bb13b5f7488a667b30309 Change-Id: I808469f24066d382decf55b9dad5312d6e068da7 Closes-Bug: #1573766 --- etc/nova/api-paste.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini index 744d7e952a1d..13c8499170f7 100644 --- a/etc/nova/api-paste.ini +++ b/etc/nova/api-paste.ini @@ -28,13 +28,13 @@ use = call:nova.api.openstack.urlmap:urlmap_factory [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