Versionless GET on keystone gives different answer with port 5000 and 35357

Bug #1343579 reported by David Kranz
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Brant Knudson

Bug Description

On a system with both v2/v3 (devstack), using 35357 shows only v3.

5000:
<versions xmlns="http://docs.openstack.org/identity/api/v2.0">
<version status="stable" updated="2013-03-06T00:00:00Z" id="v3.0">
<media-types>
<media-type base="application/json" type="application/vnd.openstack.identity-v3+json"/>
<media-type base="application/xml" type="application/vnd.openstack.identity-v3+xml"/>
</media-types>
<links>
<link href="http://devstack-neutron:5000/v3/" rel="self"/>
</links>
</version>
<version status="stable" updated="2014-04-17T00:00:00Z" id="v2.0">
<media-types>
<media-type base="application/json" type="application/vnd.openstack.identity-v2.0+json"/>
<media-type base="application/xml" type="application/vnd.openstack.identity-v2.0+xml"/>
</media-types>
<links>
<link href="http://devstack-neutron:5000/v2.0/" rel="self"/>
<link href="http://docs.openstack.org/" type="text/html" rel="describedby"/>
</links>
<link href="http://devstack-neutron:5000/v2.0/" rel="self"/>
<link href="http://docs.openstack.org/" type="text/html" rel="describedby"/>
</version>
</versions>

35357:
<versions xmlns="http://docs.openstack.org/identity/api/v2.0">
<version status="stable" updated="2013-03-06T00:00:00Z" id="v3.0">
<media-types>
<media-type base="application/json" type="application/vnd.openstack.identity-v3+json"/>
<media-type base="application/xml" type="application/vnd.openstack.identity-v3+xml"/>
</media-types>
<links>
<link href="http://devstack-neutron:35357/v3/" rel="self"/>
</links>
</version>
</versions>

Revision history for this message
Adam Young (ayoung) wrote :

keystone/service.py: _VERSIONS is a global, and updated first with v3, and then with v3.

Changed in keystone:
assignee: nobody → Adam Young (ayoung)
Revision history for this message
Lance Bragstad (lbragstad) wrote :

Related blueprint that is approved in the keystone-specs repo:

https://github.com/openstack/keystone-specs/blob/master/specs/juno/json-home.rst

Dolph Mathews (dolph)
Changed in keystone:
status: New → Triaged
importance: Undecided → High
milestone: none → juno-3
Dolph Mathews (dolph)
Changed in keystone:
milestone: juno-3 → juno-rc1
Revision history for this message
Brant Knudson (blk-u) wrote :

I tried this running keystone-all and both versions were given.

Revision history for this message
Brant Knudson (blk-u) wrote :

It happens when running keystone in wsgi.

Revision history for this message
Brant Knudson (blk-u) wrote :

oh, I was just looking at this code, so know what the prob is... only one of the public / private functions registers v2 with controller.

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/118757

Changed in keystone:
assignee: Adam Young (ayoung) → Brant Knudson (blk-u)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Reviewed: https://review.openstack.org/118902
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=020f14deb30d3f6650e4d57a27ad56926f634b27
Submitter: Jenkins
Branch: master

commit 020f14deb30d3f6650e4d57a27ad56926f634b27
Author: Brant Knudson <email address hidden>
Date: Wed Sep 3 15:05:41 2014 -0500

    Add test for single app loaded version response

    There was no test that showed what the version response is when
    only a single application (public or admin) is loaded.

    The test shows that the response is incorrect for the admin
    application.

    Change-Id: I1fb1789c465d3f587077e3817a8eb2da54e28c63
    Partial-Bug: #1343579

Changed in keystone:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/118757
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=0ad8d079afa214dddfd9b9b30d64bc454801e95f
Submitter: Jenkins
Branch: master

commit 0ad8d079afa214dddfd9b9b30d64bc454801e95f
Author: Brant Knudson <email address hidden>
Date: Wed Sep 3 14:51:14 2014 -0500

    Fix admin server doesn't report v2 support in Apache httpd

    The Keystone server version response would only include v3 when
    Keystone was running in Apache httpd. It should have also included
    the v2.

    Change-Id: Ib471539beda746d085adae1e72ab0dc1e0fb41e0
    Closes-Bug: #1343579

Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-rc1 → 2014.2
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.