summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-05-30 08:12:20 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-05-30 08:12:20 +0300
commit6051f30a7e61c32833667d3079744b2d4fd1ce7c (patch)
tree35ff964e3ae93ab5761421ca0a9ef2f9a0b7521c /etc
parentd77807bfc2ac252a2a4574bd2478d0a416d999e3 (diff)
downloadnova-6051f30a7e61c32833667d3079744b2d4fd1ce7c.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/api-paste.ini8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini
index 744d7e952a..13c8499170 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