Return request id to caller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
In Progress
|
Undecided
|
Bhagyashri Shewale |
Bug Description
Most of the OpenStack Restful API returns X-Openstack-
We are proposing to add 'request_ids' as an 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_ids' as attribute to exception object which will be raised from openstacksdk.
Example:
>>> from openstack import connection
>>>
>>> auth_args = {
... 'auth_url': 'http://
... 'project_name': 'admin',
... 'username': 'admin',
... 'password': 'admin',
... }
>>>
>>> conn = connection.
>>> server = conn.compute.
>>> type(server)
<class 'openstack.
>>>
>>># Get request id from server resource object
>>> server.request_ids
['req-02232f93-
NOTE: As openstacksdk is not an "official" project and currently does not accept blueprints so this launchpad bug will help to track the efforts made in order to complete this feature.
Changed in python-openstacksdk: | |
assignee: | nobody → Ankit Agrawal (ankitagrawal) |
status: | New → In Progress |
Changed in python-openstacksdk: | |
assignee: | Ankit Agrawal (ankitagrawal) → Abhishek Kekane (abhishek-kekane) |
Changed in python-openstacksdk: | |
assignee: | Abhishek Kekane (abhishek-kekane) → Bhagyashri Shewale (bhagyashri-shewale) |
If you're going to add this, it has to go in the Resource class in openstack/ resource2. py,*not* resource.py. We're transitioning to the one in the second module.