ceilometerclient handles exceptions from session object in wrong way
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-ceilometerclient |
Fix Released
|
Undecided
|
Andriy Kurilin |
Bug Description
Way to initialize ceilometerclient: transmit keystone session object
Context: something went wrong and request returns status_code >= 400
Expected behaviour: raise user friendly error
Actual behaviour: AttributeError: 'Response' object has no attribute 'status'
This bug was detected by porting Rally to initialize ceilometerclient with keystone session(unified way to initialize all clients).
What actually happens in the ceilometerclient code:
1) if error occurs, ceilometerclient checks status_code and raise_exc argument(Defaults to True) and calls from_response method to find the proper exception - https:/
2) from_response method expects httplib response object, so it checks "status" property which is wrong in case of response from SessionClient
https:/
Changed in python-ceilometerclient: | |
assignee: | nobody → Andrey Kurilin (andreykurilin) |
Fix proposed to branch: master /review. openstack. org/366633
Review: https:/