]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Sync request_id, request_utils for cinder
authorChris Buccella <buccella@linux.vnet.ibm.com>
Sat, 15 Feb 2014 02:29:43 +0000 (02:29 +0000)
committerChris Buccella <buccella@linux.vnet.ibm.com>
Tue, 18 Feb 2014 17:05:09 +0000 (17:05 +0000)
commit7e3698417ad8ca0112a05969bcfd7aa60f5bcdd3
tree86457db9a22d74efe3bb73511fc411d5f6a513b3
parente96f3b513302cf2ddd362c39bf1b1e9680a1bc7e
Sync request_id, request_utils for cinder

This is in preparation for work being done on request ID tracing across
OpenStack services.

Per discussion in blueprint cross-service-request-id , the standard header
name for the request ID across OpenStack projects should be
x-openstack-request-id. The request_id middleware was created for just this
purpose, as oslo change Ic7967cd62e7b743343d70f751b9238339171e013 . Using the
same middleware allows for consistency across projects.

There is an additional oslo module, request_utils, introduced as
change Id085c4444fee2bb68b80738bfe77ccb0ba1908ec to allow uniform logging of
request IDs. Bring that in as well so we have it when necessary.

Implements: blueprint add-standard-req-id-header
Change-Id: If080df2a323347924c93a912538dab5ffeffe982
cinder/openstack/common/middleware/__init__.py [new file with mode: 0644]
cinder/openstack/common/middleware/base.py [new file with mode: 0644]
cinder/openstack/common/middleware/request_id.py [new file with mode: 0644]
cinder/openstack/common/request_utils.py [new file with mode: 0644]
openstack-common.conf