Savannaclient raises poor ApiException

Bug #1282969 reported by Alexander Ignatov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Sahara
Fix Released
High
Nikita Konovalov

Bug Description

ApiException raised from savanna client contains only "error_message" but savanna-api returns responses with 'error_code' and 'error-name':
https://github.com/openstack/savanna/blob/master/savanna/utils/api.py#L208-L212

It would be better to expand ApiException with those fields too.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-savannaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/75361

Changed in python-savannaclient:
status: Triaged → In Progress
Revision history for this message
Sergey Lukjanov (slukjanov) wrote :

It'll be very useful for Heat and Tempest integration. I'm missing it in my basic Tempest scenarios.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-savannaclient (master)

Reviewed: https://review.openstack.org/75361
Committed: https://git.openstack.org/cgit/openstack/python-savannaclient/commit/?id=23f9c7e8a57c02e812fdb2278f8d0657f63b1f19
Submitter: Jenkins
Branch: master

commit 23f9c7e8a57c02e812fdb2278f8d0657f63b1f19
Author: Nikita Konovalov <email address hidden>
Date: Fri Feb 21 14:37:40 2014 +0400

    Api Exception improvement

    ApiException now provides fields with:
    * error_code
    * error_name
    * error_message

    Change-Id: I0b8a642eb96835710f62ebf3cca3a5fce071a3fc
    Fixes: bug #1282969

Changed in python-savannaclient:
status: In Progress → Fix Committed
Changed in python-savannaclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.