Return X-OpenStack-Request-Id header in response
It is very useful for debugging purpose, because it allows operators to identify logs which is related to a specific client request. Change-Id: Ib89ac298b18fcb2109e6ec8349046f21d20c9d3f Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -11,16 +11,16 @@ use = call:manila.api:root_app_factory
|
||||
|
||||
[composite:openstack_share_api]
|
||||
use = call:manila.api.middleware.auth:pipeline_factory
|
||||
noauth = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler noauth api
|
||||
keystone = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext api
|
||||
keystone_nolimit = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext api
|
||||
noauth = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler noauth api
|
||||
keystone = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext api
|
||||
keystone_nolimit = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext api
|
||||
|
||||
[composite:openstack_share_api_v2]
|
||||
use = call:manila.api.middleware.auth:pipeline_factory
|
||||
noauth = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler noauth apiv2
|
||||
noauthv2 = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler noauthv2 apiv2
|
||||
keystone = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext apiv2
|
||||
keystone_nolimit = cors faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext apiv2
|
||||
noauth = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler noauth apiv2
|
||||
noauthv2 = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler noauthv2 apiv2
|
||||
keystone = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext apiv2
|
||||
keystone_nolimit = cors request_id faultwrap http_proxy_to_wsgi sizelimit osprofiler authtoken keystonecontext apiv2
|
||||
|
||||
[filter:faultwrap]
|
||||
paste.filter_factory = manila.api.middleware.fault:FaultWrapper.factory
|
||||
@@ -47,7 +47,7 @@ paste.app_factory = manila.api.v1.router:APIRouter.factory
|
||||
paste.app_factory = manila.api.v2.router:APIRouter.factory
|
||||
|
||||
[pipeline:apiversions]
|
||||
pipeline = cors faultwrap http_proxy_to_wsgi osshareversionapp
|
||||
pipeline = cors request_id faultwrap http_proxy_to_wsgi osshareversionapp
|
||||
|
||||
[app:osshareversionapp]
|
||||
paste.app_factory = manila.api.versions:VersionsRouter.factory
|
||||
@@ -66,6 +66,9 @@ paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
||||
paste.filter_factory = oslo_middleware.cors:filter_factory
|
||||
oslo_config_project = manila
|
||||
|
||||
[filter:request_id]
|
||||
paste.filter_factory = oslo_middleware.request_id:RequestId.factory
|
||||
|
||||
[app:healthcheck]
|
||||
paste.app_factory = oslo_middleware:Healthcheck.app_factory
|
||||
backends = disable_by_file
|
||||
|
Reference in New Issue
Block a user