tempest rest_client _error_checker fails while parsing response

Bug #1280767 reported by Evgeny Fedoruk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Valeriy Ponomaryov

Bug Description

Running tempest test on devstack (happens also on jenkins gate)
    nosetests -sv tempest.api.network.test_load_balancer.py

create_vip failes and returns:
<?xml version='1.0' encoding='UTF-8'?>
<NeutronError xmlns="http://openstack.org/quantum/api/v2.0" xmlns:quantum="http://openstack.org/quantum/api/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Request Failed: internal server error while processing your request.</NeutronError>

tempest/common/rest_client.py:RestClient._error_checker (line 484: message = resp_body['error']['message']) fails.

....
  File "/home/radware/tempest/tempest/common/rest_client.py", line 448, in _error_checker
    message = resp_body['error']['message']
TypeError: string indices must be integers, not str

Tags: tempest
Evgeny Fedoruk (evgenyf)
affects: neutron → tempest
Evgeny Fedoruk (evgenyf)
summary: - tempest rest_client _error_checker fails while parsing resoponse
+ tempest rest_client _error_checker fails while parsing response
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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

Changed in tempest:
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/76475
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=6cb6d190f4eb45ad9958be5e4a80e727e850304f
Submitter: Jenkins
Branch: master

commit 6cb6d190f4eb45ad9958be5e4a80e727e850304f
Author: vponomaryov <email address hidden>
Date: Fri Mar 7 09:39:05 2014 +0200

    Fixed _error_checker in rest client

    Restclient's method '_error_checker' for response codes 500 and 501 gets key
    error exception when 'resp_body' is a string and passes conditions for
    containing of keys.
    Also added fix to rarely raised Exceptions after separation main and base
    exceptions for two modules.

    Closes-Bug: #1280767
    Closes-Bug: #1289190
    Partially-implements: bp unit-tests
    Change-Id: I4b909d008940f8a96efc922daac64a086819c78a

Changed in tempest:
status: In Progress → 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.