summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMitsuru Kanabuchi <kanabuchi.mitsuru@po.ntts.co.jp>2014-06-16 21:40:36 +0900
committerMitsuru Kanabuchi <kanabuchi.mitsuru@po.ntts.co.jp>2014-06-17 10:11:24 +0000
commitf6deffa73f244867b6a0cac6708f423d992700d9 (patch)
tree58b5832f652abf1026bc5dacfe450086c0060e91 /etc
parent31604c71a1f9a0a27b295e5450f063ffd2b0edba (diff)
downloadheat-f6deffa73f244867b6a0cac6708f423d992700d9.tar.gz
Support x-openstack-request-id for Heat
This patch aims to support "x-openstack-request-id" for Heat. Nova, Cinder and Neutron have realized "x-openstack-request-id" functionality by using oslo-incubator.middleware. This functionality will enable effective log tracing between Heat and Heat caller. Change-Id: Ida2f3d33b02557c2117aade27ccac7d9351886c9 Closes-bug: #1324065
Diffstat (limited to 'etc')
-rw-r--r--etc/heat/api-paste.ini10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/heat/api-paste.ini b/etc/heat/api-paste.ini
index bd5af18a4..488c5293d 100644
--- a/etc/heat/api-paste.ini
+++ b/etc/heat/api-paste.ini
@@ -1,7 +1,7 @@
# heat-api pipeline
[pipeline:heat-api]
-pipeline = faultwrap ssl versionnegotiation authurl authtoken context apiv1app
+pipeline = request_id faultwrap ssl versionnegotiation authurl authtoken context apiv1app
# heat-api pipeline for standalone heat
# ie. uses alternative auth backend that authenticates users against keystone
@@ -12,7 +12,7 @@ pipeline = faultwrap ssl versionnegotiation authurl authtoken context apiv1app
# flavor = standalone
#
[pipeline:heat-api-standalone]
-pipeline = faultwrap ssl versionnegotiation authurl authpassword context apiv1app
+pipeline = request_id faultwrap ssl versionnegotiation authurl authpassword context apiv1app
# heat-api pipeline for custom cloud backends
# i.e. in heat.conf:
@@ -20,7 +20,7 @@ pipeline = faultwrap ssl versionnegotiation authurl authpassword context apiv1ap
# flavor = custombackend
#
[pipeline:heat-api-custombackend]
-pipeline = faultwrap versionnegotiation context custombackendauth apiv1app
+pipeline = request_id faultwrap versionnegotiation context custombackendauth apiv1app
# heat-api-cfn pipeline
[pipeline:heat-api-cfn]
@@ -93,3 +93,7 @@ paste.filter_factory = heat.common.auth_password:filter_factory
# Auth middleware that validates against custom backend
[filter:custombackendauth]
paste.filter_factory = heat.common.custom_backend_auth:filter_factory
+
+# Middleware to set x-openstack-request-id in http response header
+[filter:request_id]
+paste.filter_factory = heat.openstack.common.middleware.request_id:RequestIdMiddleware.factory