GET /tenants returning auto-inc PK for admins

Bug #905604 reported by Dolph Mathews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Critical
Dolph Mathews

Bug Description

Calling GET /tenants for an admin token is returning the old SQL auto-incremented primary keys instead of the new UUID values, like the rest of the API returns.

The response looks like this:

{
    "tenants_links": [],
    "tenants": [
        {
            "enabled": false,
            "description": "None",
            "name": "project-y",
            "id": "3"
        }
    ]
}

Instead of:

{
    "tenants_links": [],
    "tenants": [
        {
            "enabled": false,
            "description": "None",
            "name": "project-y",
            "id": "05e8aaffd42b4548a9472896ff0b51dc"
        }
    ]
}

Applies to both JSON and XML responses.

Changed in keystone:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/2440
Committed: http://github.com/openstack/keystone/commit/23383b2aeb23b9ca686a49928913c0ef695e11b1
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 23383b2aeb23b9ca686a49928913c0ef695e11b1
Author: Dolph Mathews <email address hidden>
Date: Fri Dec 16 21:32:09 2011 -0600

    Tenants - asserted all the things (bug 887844)

    - Fixed: GET /tenants returning backend ID instead of UID
      (post-e2 bug 905604)
    - Added LDAP backend test

    Change-Id: I37f3441c769a7ce6f7a16eb39c4a0d848aa8d404

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-3 → 2012.1
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.