api version details return 302 Found

Bug #1802247 reported by liuyamin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
liuyamin

Bug Description

root@devstack:~# curl -g -i -X GET http://192.168.8.224/compute/v2.1 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: gAAAAABb4-LOwiNGGwBibstVEC2uuq193Z28_Lqn1FL8P8DsONxukCoQyYqbDgriNsgm3vQMJJ_2Itpqlc4K9jenpfCsEzSF6b3xpkpwFQtH5yEcLPIRGmRZBcsnEBe1hfxGeTANvu4g70oXgdvIn7FoVLpPPQ4nFSnji-YAE8JRLYztcNnqntA"
HTTP/1.1 302 Found
Date: Thu, 08 Nov 2018 07:16:47 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Type: text/plain; charset=utf8
Location: http://192.168.8.224/compute/v2.1/
x-openstack-request-id: req-3daa9ace-c345-44a4-9f14-832cba27093f
x-compute-request-id: req-3daa9ace-c345-44a4-9f14-832cba27093f
Connection: close
Transfer-Encoding: chunked

root@devstack:~# curl -g -i -X GET http://192.168.8.224/compute/v2.1/ -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: gAAAAABb4-LOwiNGGwBibstVEC2uuq193Z28_Lqn1FL8P8DsONxukCoQyYqbDgriNsgm3vQMJJ_2Itpqlc4K9jenpfCsEzSF6b3xpkpwFQtH5yEcLPIRGmRZBcsnEBe1hfxGeTANvu4g70oXgdvIn7FoVLpPPQ4nFSnji-YAE8JRLYztcNnqntA"
HTTP/1.1 200 OK
Date: Thu, 08 Nov 2018 07:16:56 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 390
Content-Type: application/json
OpenStack-API-Version: compute 2.1
X-OpenStack-Nova-API-Version: 2.1
Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version
x-openstack-request-id: req-cef9113d-d3ff-4c9b-9893-a552cf8d646a
x-compute-request-id: req-cef9113d-d3ff-4c9b-9893-a552cf8d646a
Connection: close

{"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://192.168.8.224/compute/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.63", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}

Tags: api api-ref
liuyamin (liuyamin)
Changed in nova:
assignee: nobody → liuyamin (liuyamin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
tags: added: api-ref
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/616444
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8ad11697f95400d6453d502c5a04b9f3f05827c1
Submitter: Zuul
Branch: master

commit 8ad11697f95400d6453d502c5a04b9f3f05827c1
Author: liuyamin <email address hidden>
Date: Thu Nov 8 16:00:12 2018 +0800

    Fix version details API does not return 200 OK

    When use version details api http://ip/compute/v2 to get api details,
    it does not return 200 OK, and the return value is empty.

    This change is to correct the version details API URL.

    Change-Id: I6befb4df6b688ae8c59671781c4e7b338a16462c
    Closes-Bug: #1802247

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

This issue was fixed in the openstack/nova 19.0.0.0rc1 release candidate.

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.