a stack trace is reported when the keystone client attempts to list endpoints

Bug #1093006 reported by John Bresnahan
This bug report is a duplicate of:  Bug #1150930: keystone commands failing. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
John Bresnahan

Bug Description

When running the following command the service logs a stack trace and the client reports and error:

keystone endpoint-list
Failed to load keyring modules.
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. 'legacy_endpoint_id'", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)

The error logged by the service is:

(root): 2012-12-21 13:12:05,911 ERROR wsgi __call__ 'legacy_endpoint_id' wsgi.py:224
Traceback (most recent call last):
  File "/home/jbresnah/Dev/OpenStack/keystone/keystone/common/wsgi.py", line 215, in __call__
    result = method(context, **params)
  File "/home/jbresnah/Dev/OpenStack/keystone/keystone/catalog/controllers.py", line 64, in get_endpoints
    if not endpoint['legacy_endpoint_id']:
KeyError: 'legacy_endpoint_id'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/18569

Changed in keystone:
assignee: nobody → John Bresnahan (jbresnah)
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

Not sure this is a bug; did you run db_sync? It looks like you're just missing one or more migrations.

Changed in keystone:
status: In Progress → Incomplete
Revision history for this message
John Bresnahan (jbresnah) wrote :

I did do: keystone-manage db_sync and it did not help. However, I then deleted the sqlite database and then did the same command and it did seem to solve the problem.

Revision history for this message
Dolph Mathews (dolph) wrote :

This ended up being a valid bug and was fixed in https://github.com/openstack/keystone/commit/31df378f as part of bug 1150930 where the same issue produced slightly different symptoms.

Changed in keystone:
importance: Undecided → Medium
status: Incomplete → Fix Released
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.