"list API versions" API returns wrong version number in media-types

Bug #1675112 reported by Ken'ichi Ohmichi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Ken'ichi Ohmichi

Bug Description

Now Cinder returns the following response on "list API versions" and "version=" is always "1" on v2 and v3 APIs also.
On the other projects, Nova returns version numbers like "2.1" on the same format, and Keystone also returns version numbers with different format like "application/vnd.openstack.identity-v3+json", "application/vnd.openstack.identity-v2.0+json".
So it would be better to change the version numbers into accurate numbers.

{
        "versions": [
            {
                "status": "DEPRECATED", "updated": "2016-05-02T20:25:19Z",
                "links": [
                    {"href": "http://docs.openstack.org/", "type": "text/html",
                     "rel": "describedby"},
                    {"href": "https://10.30.197.39:8776/v1/", "rel": "self"}
                ],
                "min_version": "",
                "version": "",
                "media-types": [
                    {"base": "application/json",
                     "type": "application/vnd.openstack.volume+json;version=1"}
                ],
                "id": "v1.0"
            },
            {
                "status": "DEPRECATED", "updated": "2017-02-25T12:00:00Z",
                "links": [
                    {"href": "http://docs.openstack.org/", "type": "text/html",
                     "rel": "describedby"},
                    {"href": "https://10.30.197.39:8776/v2/", "rel": "self"}
                ],
                "min_version": "",
                "version": "",
                "media-types": [
                    {"base": "application/json",
                     "type": "application/vnd.openstack.volume+json;version=1"}
                ],
                "id": "v2.0"
            },
            {
                "status": "CURRENT", "updated": "2016-02-08T12:20:21Z",
                "links": [
                    {"href": "http://docs.openstack.org/", "type": "text/html",
                     "rel": "describedby"},
                    {"href": "https://10.30.197.39:8776/v3/", "rel": "self"}
                ],
                "min_version": "3.0",
                "version": "3.28",
                "media-types": [
                    {"base": "application/json",
                     "type": "application/vnd.openstack.volume+json;version=1"}
                ],
                "id": "v3.0"
            }
        ]
    }

Changed in cinder:
assignee: nobody → Ken'ichi Ohmichi (oomichi)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/448312
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=678a77a905f3561e5223ee19446c3d44c6f11572
Submitter: Jenkins
Branch: master

commit 678a77a905f3561e5223ee19446c3d44c6f11572
Author: Ken'ichi Ohmichi <email address hidden>
Date: Tue Mar 21 16:44:47 2017 -0700

    Fix version numbers on media-types

    On "list API versions", 'media-types' type needed to show the version
    number as "version=". However all versions represent "1" always.
    It is confusing, so this patch fixes them for accurate ones.

    Closes-Bug: #1675112
    Change-Id: I43ee2661b5412e24f225c6a272702b42d779667a

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.0.0.0b1

This issue was fixed in the openstack/cinder 11.0.0.0b1 development milestone.

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.