Glance + keystone Exception: Unexpected response: 400

Bug #878927 reported by Roman Sokolkov
14
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Kevin L. Mitchell
Diablo
Fix Released
Undecided
Unassigned

Bug Description

Hi!

I use last keystone version.
Auth scheme recently changed in keystone.

Now

{"auth":
    {"tenantName": "service_usage", "passwordCredentials":
         {"username": "service_usage", "password": "P@ssword"}
    }
}

Old

{"passwordCredentials":
           {"username": "service_usage", "password": "P@ssword"}
}

I try

# glance --debug index
Traceback (most recent call last):
  File "/usr/bin/glance", line 1207, in <module>
    result = command(options, args)
  File "/usr/bin/glance", line 60, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/bin/glance", line 498, in images_index
    print_header=True)
  File "/usr/bin/glance", line 444, in _images_index
    images = client.get_images(**parameters)
  File "/usr/lib/python2.7/site-packages/glance/client.py", line 53, in get_images
    res = self.do_request("GET", "/images", params=params)
  File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 136, in do_request
    self._authenticate()
  File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 123, in _authenticate
    auth_plugin.authenticate()
  File "/usr/lib/python2.7/site-packages/glance/common/auth.py", line 103, in authenticate
    _authenticate(auth_url)
  File "/usr/lib/python2.7/site-packages/glance/common/auth.py", line 91, in _authenticate
    self._v2_auth(token_url)
  File "/usr/lib/python2.7/site-packages/glance/common/auth.py", line 180, in _v2_auth
    raise Exception(_('Unexpected response: %s') % resp.status)
Exception: Unexpected response: 400

I made small patch for a new scheme. And now all works good

Revision history for this message
Roman Sokolkov (rsokolkov) wrote :
Jay Pipes (jaypipes)
Changed in glance:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Kevin L. Mitchell (klmitch)
milestone: none → essex-1
Jay Pipes (jaypipes)
Changed in glance:
milestone: essex-1 → essex-2
Jay Pipes (jaypipes)
Changed in glance:
milestone: essex-2 → essex-1
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/1257
Committed: http://github.com/openstack/glance/commit/bc7aeb4a0a1295f90f7ea8824a1c8bf5313fafb7
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit bc7aeb4a0a1295f90f7ea8824a1c8bf5313fafb7
Author: Kevin L. Mitchell <email address hidden>
Date: Wed Nov 2 11:18:16 2011 -0500

    Fix Keystone API skew issue with Glance client.

    Fixes bug 878927 by applying Roman Sokolkov's patch.

    Change-Id: I9877131c7df65a58e75e6be47f29e9b0a0c2705e

Changed in glance:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to glance (stable/diablo)

Reviewed: https://review.openstack.org/1781
Committed: http://github.com/openstack/glance/commit/c810328bd3b47832c5e0f7863ce4391154ed1b1e
Submitter: Jenkins
Branch: stable/diablo

 tag in-stable-diablo
 done

commit c810328bd3b47832c5e0f7863ce4391154ed1b1e
Author: Kevin L. Mitchell <email address hidden>
Date: Wed Nov 2 11:18:16 2011 -0500

    Fix Keystone API skew issue with Glance client.

    Fixes bug 878927 by applying Roman Sokolkov's patch.

    (cherry picked from commit bc7aeb4a0a1295f90f7ea8824a1c8bf5313fafb7)

    Change-Id: I9877131c7df65a58e75e6be47f29e9b0a0c2705e

Thierry Carrez (ttx)
Changed in glance:
milestone: essex-1 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.