Return request ID to caller

Registered by Chris Buccella

This blueprint is part of a larger effort to log request ID mappings across service boundaries to allow for easier debugging.

Currently, calls into the python client do not see the request ID value that is returned by cinder. In order to log the request ID mapping of both cinderclient and the caller, the x-openstack-request-id header value returned in cinder's response is needed on the server side. The x-openstack-request-id header was added to cinder responses during Icehouse with the blueprint add-standard-req-id-header

One consideration here is that not all services using the python client will be expecting the request ID to be returned. Therefore, it is proposed that an optional list parameter, return_req_id, be considered. If this param is passed in, cinderclient will append the request ID it receives from cinder.

This blueprint will affect both v1 and v2.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Chris Buccella
Direction:
Needs approval
Assignee:
Abhishek Kekane
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Abhishek Kekane

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/return-req-id,n,z

Addressed by: https://review.openstack.org/104482
    Return request ID to caller

Spec submitted to openstack-specs (cross-project)
https://review.openstack.org/#/c/156508/

Addressed by: https://review.openstack.org/152075
    Return tuple containing header and body from client

Addressed by: https://review.openstack.org/173199
    Add support to return request_id of last request

Marking as Obsolete against https://blueprints.launchpad.net/python-cinderclient/+spec/return-request-id-to-caller

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.