"cinder credentials" returns error

Bug #1631142 reported by Eric Harney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
New
Undecided
Unassigned

Bug Description

$ cinder credentials
ERROR: list indices must be integers, not str

A more useful traceback (only available by modifying cinderclient, currently):

$ CINDERCLIENT_DEBUG=1 cinder credentials
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://192.168.122.152:5000/v2.0 -H "Accept: application/json" -H "User-Agent: cinder keystoneauth1/2.11.0 python-requests/2.11.0 CPython/2.7.12"
DEBUG:keystoneauth.session:RESP: [200] Date: Thu, 06 Oct 2016 20:39:10 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token x-openstack-request-id: req-8847593c-a25d-40c7-95fe-c0ffd5df331d Content-Length: 345 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.122.152/identity/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG:keystoneauth.identity.v2:Making authentication request to http://192.168.122.152/identity/v2.0/tokens
Traceback (most recent call last):
  File "/opt/stack/python-cinderclient/cinderclient/shell.py", line 955, in main
    sys.argv[1:]))
  File "/opt/stack/python-cinderclient/cinderclient/shell.py", line 772, in main
    args.func(self.cs, args)
  File "/opt/stack/python-cinderclient/cinderclient/v3/shell.py", line 1243, in do_credentials
    utils.print_dict(catalog['user'], "User Credentials",
TypeError: list indices must be integers, not str
ERROR: list indices must be integers, not str

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-cinderclient (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/383449

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/383449
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=268f50270da55bf29a2d10ae442d58aee2a8ba53
Submitter: Jenkins
Branch: master

commit 268f50270da55bf29a2d10ae442d58aee2a8ba53
Author: Eric Harney <email address hidden>
Date: Thu Oct 6 16:33:19 2016 -0400

    Print backtrace for exception when in debug mode

    If the cinder shell is run in debug mode
    (CINDERCLIENT_DEBUG is set in the environment or
    with --debug), print a traceback for unhandled
    exceptions.

    This makes it possible to debug issues like this:
      $ cinder credentials
      ERROR: list indices must be integers, not str

    Related-Bug: #1631142

    Co-Authored-By: Gorka Eguileor <email address hidden>
    Change-Id: I5e9b3283602d404ab43494f15d57ec5abbcd77dc

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.