Return request Id to caller
Most of the OpenStack RESTful API returns X-Openstack-
We are proposing to add 'request_ids' as attribute to the response objects returned from python-
For more details on how request_id will be returned to the caller, please refer to the approved blueprint [1] discussed with the cross-project team.
[1] : https:/
For example:
from cinderclient import client
cinder = client.Client('2', 'demo', 'admin', 'demo', 'http://
vols = cinder.
# Get request id from vols resource object
vols['request_ids']
'req-1784a36c-
Blueprint information
- Status:
- Complete
- Approver:
- Sean McGinnis
- Priority:
- Undefined
- Drafter:
- Abhishek Kekane
- Direction:
- Needs approval
- Assignee:
- Ankit Agrawal
- Definition:
- Approved
- Series goal:
- Accepted for mitaka
- Implementation:
-
Implemented
- Milestone target:
- None
- Started by
- Abhishek Kekane
- Completed by
- Abhishek Kekane
Related branches
Related bugs
Sprints
Whiteboard
We are planning to break changes in smaller patches as below:
patch 1: containing common changes in cinderclient/
patch 2: changes in volume, volume_snapshot, volume_types and volume_types_access
patch 3: changes in volume_backups, volume_
patch 4: changes in qos_specs, consistencygroup, cgsnapshots, services, quotas, quota_classes
Gerrit topic: https:/
Addressed by: https:/
Add Wrapper classes for list, dict, tuple
Addressed by: https:/
Return wrapper classes with request_ids attribute
Addressed by: https:/
Add request_ids attribute to resource objects
Addressed by: https:/
Add request_ids attribute to resource objects
Addressed by: https:/
Add request_ids attribute to resource objects
Addressed by: https:/
Add release notes for return-
Addressed by: https:/
Provide consistency for Wrapper classes
Work Items
Work items:
Add a wrapper class around response: DONE
Modify v2 api to return request-id: DONE
Unit test cases: DONE