Public bug reported: Whether there is only one or multiple version available, the dict key is expected to be "versions" per the version discovery guidelines [1].
$ curl -i -H "X-Auth-Token: $OS_TOKEN" http://192.168.1.8/compute/v2.1/ HTTP/1.1 200 OK Date: Wed, 18 Jul 2018 04:05:48 GMT Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5 Content-Length: 388 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-7469810f-ecd4-40fa-84ba-65a5d73756ec x-compute-request-id: req-7469810f-ecd4-40fa-84ba-65a5d73756ec Connection: close {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://192.168.1.8/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"}} Tested with devstack (commit 3b5477d6356a62d7d64a519a4b1ac99309d251c0). [1] https://github.com/openstack/api- wg/blob/master/guidelines/microversion_specification.rst#version- discovery ** Affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1782284 Title: GET "/" returns "version" instead of expected "versions" Status in OpenStack Compute (nova): New Bug description: Whether there is only one or multiple version available, the dict key is expected to be "versions" per the version discovery guidelines [1]. $ curl -i -H "X-Auth-Token: $OS_TOKEN" http://192.168.1.8/compute/v2.1/ HTTP/1.1 200 OK Date: Wed, 18 Jul 2018 04:05:48 GMT Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5 Content-Length: 388 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-7469810f-ecd4-40fa-84ba-65a5d73756ec x-compute-request-id: req-7469810f-ecd4-40fa-84ba-65a5d73756ec Connection: close {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://192.168.1.8/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"}} Tested with devstack (commit 3b5477d6356a62d7d64a519a4b1ac99309d251c0). [1] https://github.com/openstack/api- wg/blob/master/guidelines/microversion_specification.rst#version- discovery To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1782284/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

