Return request id to caller
Most of the OpenStack Restful API returns X-Openstack-
We are proposing to add 'request-id' as attribute to resource objects in python-
Design:
When a caller make a call and get a response from the OpenStack service, it will extract X-Openstack-
Also need to add 'request-id' as attribute to exception object which will be raised from openstacksdk.
Example:
>>>from openstack import connection
>>>conn = connection.
>>>
>>>flavor = conn.compute.
>>>
>>>flavor
openstack.
u'https:/
'request-id': 'req-1784a36c-
u'rxtx_factor': 1.0, u'OS-FLV-
>>>
>>># Get request id from flavor resource object
>>>flavor[
'req-1784a36c-
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Abhijeet Malawade
- Direction:
- Needs approval
- Assignee:
- Abhijeet Malawade
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Return request ID to caller (openstack-spec) : https:/