configdb test failed in auto acceptance due to incorrect list index

Bug #1637504 reported by ElenaRossokhina
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dmitry Belyaninov

Bug Description

Detailed bug description:
Found on CI:
https://product-ci.infra.mirantis.net/job/9.x.acceptance.ubuntu.tests_configdb_api/2/
Steps to reproduce:
n/a
Expected results:
Test group passed
Actual result:
Test failed in different places? but all of them are related with the same error:
***** 1 *****
File "/home/jenkins/workspace/9.x.acceptance.ubuntu.tests_configdb_api/fuelweb_test/tests/tests_configdb/test_configdb_cli.py", line 493, in merge_overrides_with_level
    comp_id = comp_res['id']
TypeError: list indices must be integers, not str
***** 2 *****
File "/home/jenkins/workspace/9.x.acceptance.ubuntu.tests_configdb_api/fuelweb_test/tests/tests_configdb/test_configdb_cli.py", line 419, in merge_overrides_without_level
    comp_id = comp_res['id']
TypeError: list indices must be integers, not str
***** 3 *****
File "/home/jenkins/workspace/9.x.acceptance.ubuntu.tests_configdb_api/fuelweb_test/tests/tests_configdb/test_configdb_cli.py", line 330, in resource_value_with_level
    comp_id = comp_res['id']
TypeError: list indices must be integers, not str
***** 4 *****
File "/home/jenkins/workspace/9.x.acceptance.ubuntu.tests_configdb_api/fuelweb_test/tests/tests_configdb/test_configdb_cli.py", line 257, in resource_value_without_level
    comp_id = comp_res['id']
TypeError: list indices must be integers, not str
***** 5 *****
File "/home/jenkins/workspace/9.x.acceptance.ubuntu.tests_configdb_api/fuelweb_test/tests/tests_configdb/test_configdb_cli.py", line 116, in validate_creation_of_component
    res_def = component['resource_definitions'][0]
TypeError: list indices must be integers, not str
***** 6 *****
File "/home/jenkins/workspace/9.x.acceptance.ubuntu.tests_configdb_api/fuelweb_test/tests/tests_configdb/test_configdb_cli.py", line 200, in validate_creation_of_env
    assert_equal(env_lvl_comp['components'], [res_id])
TypeError: list indices must be integers, not str

9.2 snapshot #442

Changed in fuel:
milestone: none → 9.2
assignee: nobody → Fuel QA Team (fuel-qa)
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Dmitry Belyaninov (dbelyaninov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/392678

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/mitaka)

Reviewed: https://review.openstack.org/392678
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=7d7d4cfa03ad4bf5ca0f62f4131110b9a8cd46a5
Submitter: Jenkins
Branch: stable/mitaka

commit 7d7d4cfa03ad4bf5ca0f62f4131110b9a8cd46a5
Author: Dmitry Belyaninov <email address hidden>
Date: Wed Nov 2 14:20:57 2016 +0000

    Add additional parser for json command output

    Some commands returns different format output.
    Like [{"Field": "name", "Value": "val"}, {...}]. So the
    simple parser was added to change output to
    {"name": "val", "name2": "val2"}

    Change-Id: I38c65beafae92b5ef18de72f003aacb31e02ea98
    Closes-Bug: 1637504

tags: added: in-stable-mitaka
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :
Changed in fuel:
status: New → Fix Released
Changed in fuel:
importance: Undecided → High
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.