Latest version of python-keystoneclient break debug

Bug #1124084 reported by Chmouel Boudjnah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
High
Chmouel Boudjnah

Bug Description

chmouel@vm:/opt/stack/python-swiftclient$ swift --debug list [review/clifford_baeseman/bp/client-versioning]
Traceback (most recent call last):
  File "/usr/local/bin/swift", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/python-swiftclient/bin/swift", line 1220, in <module>
    error_queue)
  File "/opt/stack/python-swiftclient/bin/swift", line 541, in st_list
    conn.get_account(marker=marker, prefix=options.prefix)[1]
  File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1043, in get_account
    prefix=prefix, full_listing=full_listing)
  File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1003, in _retry
    self.url, self.token = self.get_auth()
  File "/opt/stack/python-swiftclient/swiftclient/client.py", line 991, in get_auth
    insecure=self.insecure)
  File "/opt/stack/python-swiftclient/swiftclient/client.py", line 328, in get_auth
    insecure=insecure)
  File "/opt/stack/python-swiftclient/swiftclient/client.py", line 260, in get_keystoneclient_2_0
    auth_url=auth_url, insecure=insecure)
  File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 123, in __init__
    super(Client, self).__init__(**kwargs)
  File "/opt/stack/python-keystoneclient/keystoneclient/client.py", line 120, in __init__
    if hasattr(requests, logging):
TypeError: hasattr(): attribute name must be string

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

This affect not just swiftclient but all keystoneclient (and other clients using --debug) as well.

summary: - Latest version of python-keystoneclient break debug with swiftclient
+ Latest version of python-keystoneclient break debug
Changed in python-keystoneclient:
assignee: nobody → Chmouel Boudjnah (chmouel)
no longer affects: python-swiftclient
Changed in python-keystoneclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/21874
Committed: http://github.com/openstack/python-keystoneclient/commit/1ba04810e99fd917454c2f354bd6e67e958b417f
Submitter: Jenkins
Branch: master

commit 1ba04810e99fd917454c2f354bd6e67e958b417f
Author: Chmouel Boudjnah <email address hidden>
Date: Sat Feb 9 03:22:00 2013 +0100

    Fix debug with requests.

    - From http://docs.python.org/2/library/functions.html#hasattr :
       hasattr(object, name) -- The arguments are an object and a string.
    - Fixes bug 1124084.

    Change-Id: I47283abff440abdf827598c2497519f3de510baf

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.2.3
status: Fix Committed → Fix Released
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.