Only display versions info of running API versions

Bug #1158470 reported by Dan Prince on 2013-03-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Medium
Dan Prince

Bug Description

I recently got bit by an issue in the integration between Keystone and python-keystoneclient's auth_token middleware where auth_token tried to connect to the v3 API because a request to '/' (versions) returned information that contained both the v3 and v2.0 API's even though I was only running v2.0.

We should update our versions controllers so that keystone only displays versions responses for API versions that are running as part of the keystone API. This will provide a better mechanism for deployers to select which API versions they expose (should they choose to expose only a single version).

Dan Prince (dan-prince) on 2013-03-21
Changed in keystone:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → Medium

Reviewed: https://review.openstack.org/25045
Committed: http://github.com/openstack/keystone/commit/620e6e37803ca94a9708413c35039e5097f6d9d4
Submitter: Jenkins
Branch: master

commit 620e6e37803ca94a9708413c35039e5097f6d9d4
Author: Dan Prince <email address hidden>
Date: Thu Mar 14 13:29:47 2013 -0400

    Make versions aware of enabled pipelines.

    Updates to make our versions controller a bit smarter so
    that it only returns information on API versions which are
    actually running.

    With these changes a user can disable the v2.0 or v3 API
    versions in their pipeline, restart keystone, and then have
    versions return information only for the versions which
    are actually running.

    This is important because auth_token now uses info from the
    keystone versions controller (in some cases) to dynamically
    select an API version.

    Fixes LP Bug #1158470.
    Change-Id: I0fa8a82f08e7247c44fb7f4ff8dbb7d4ad58b9cc

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2013-05-29
Changed in keystone:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in keystone:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers