python-keystoneclient conflicts with python-requests

Bug #1122146 reported by Ondergetekende
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Python-keystoneclient uses python-requests, but the current keystoneclient (1:0.2.2-0ubuntu1) is incompatible with requests (1.1.0-1), as explained in bug #1116740.
An upgrade to a more recent python-keystoneclient would fix this.

Symptoms:
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1072, in put_object
    headers=headers)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 969, in _retry
    self.url, self.token = self.get_auth()
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 957, in get_auth
    os_options=self.os_options)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 302, in get_auth
    key, kwargs['os_options'])
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 244, in get_keystoneclient_2_0
    auth_url=auth_url)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 135, in __init__
    self.authenticate()
  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 178, in authenticate
    token)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 182, in get_raw_token_from_identity_service
    "%s" % e)
keystoneclient.exceptions.AuthorizationFailure: Authorization Failed: request() got an unexpected keyword argument 'config'

Tags: raring
Revision history for this message
Ondergetekende (kvdveer) wrote :

Version 1:0.2.2.28.gff24716+git201302071635~raring-0ubuntu1 from grizzly ppa works fine.

Revision history for this message
Scott Moser (smoser) wrote :

stock raring as of today:

$ dpkg-query --show python-keystoneclient
python-keystoneclient 1:0.2.2-0ubuntu1

$ keystone
Traceback (most recent call last):
  File "/usr/bin/keystone", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2807, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=0.8.8,<1.0

Changed in python-keystoneclient (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Chuck Short (zulcss) wrote :

This has been fixed in the upload I just did.

Changed in python-keystoneclient (Ubuntu):
status: Confirmed → Fix Committed
Chuck Short (zulcss)
Changed in python-keystoneclient (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Pedro Jiménez (lordpiotr) wrote :

I have encountered the same error in Folsom yesterday. I tried to install and use the newest packages but my whole infraestructure failed. I make a rollback and applied another patch.

PACKAGES:
root@controller:~# dpkg -l | grep keystone
ii keystone 2012.2.1-0ubuntu1.2~cloud0 OpenStack identity service - Daemons
ii python-keystone 2012.2.1-0ubuntu1.2~cloud0 OpenStack identity service - Python library
ii python-keystoneclient 1:0.1.3-0ubuntu1.1~cloud0 Client libary for Openstack Keystone API

I changed the requeriments of PYTHON-KEYSTONECLIENT (0.2.2 to 0.1.3) in this file: /usr/bin/keystone

from:
__requires__ = 'python-keystoneclient==0.2.2'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('python-keystoneclient==0.2.2', 'console_scripts', 'keystone')()
    )

to:
__requires__ = 'python-keystoneclient==0.1.3'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('python-keystoneclient==0.1.3', 'console_scripts', 'keystone')()
    )

It works like a charm now. I found a paralel MySQL error if someone could need:
http://pedrojimenez.github.com/blog/2013/03/12/new-rrrors-on-fresh-openstack-installations-mysql-and-keystone/

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.