The fix https://review.openstack.org/639805 fixes the /v1/ endpoint from
returning the right "API versions" information. However, version discovery
with the root endpoint (/) is still broken, ex:
Notice that I did not request the API version 2.0 (X-OpenStack-Manila-API-Version), but the server returns the header "X-OpenStack-Manila-API-Version" set to 2.0. This is wrong, and does not occur with manila configured without a reverse proxy:
$ curl -i -X GET http://10.10.10.10:8786/
HTTP/1.1 300 Multiple Choices
Date: Wed, 13 Mar 2019 23:46:55 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 746
Connection: close
Content-Type: application/json
The fix https:/ /review. openstack. org/639805 fixes the /v1/ endpoint from
returning the right "API versions" information. However, version discovery
with the root endpoint (/) is still broken, ex:
$ curl -i -X GET http:// 10.10.10. 10/share/
HTTP/1.1 300 Multiple Choices Manila- API-Version: 2.0 Manila- API-Version
Date: Wed, 13 Mar 2019 23:45:25 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Type: application/json
Content-Length: 748
X-OpenStack-
Vary: X-OpenStack-
Connection: close
{"versions": [{"status": "DEPRECATED", "updated": "2015-08- 27T11:33: 21Z", "links": [{"href": "http:// docs.openstack. org/", "type": "text/html", "rel": "describedby"}, {"href": "http:// 10.10.10. 10/share/ v1/", "rel": "self"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/ vnd.openstack. share+json; version= 1"}], "id": "v1.0"}, {"status": "CURRENT", "updated": "2015-08- 27T11:33: 21Z", "links": [{"href": "http:// docs.openstack. org/", "type": "text/html", "rel": "describedby"}, {"href": "http:// 10.10.10. 10/share/ v2/", "rel": "self"}], "min_version": "2.0", "version": "2.49", "media-types": [{"base": "application/json", "type": "application/ vnd.openstack. share+json; version= 1"}], "id": "v2.0"}]}
Notice that I did not request the API version 2.0 (X-OpenStack- Manila- API-Version) , but the server returns the header "X-OpenStack- Manila- API-Version" set to 2.0. This is wrong, and does not occur with manila configured without a reverse proxy:
$ curl -i -X GET http:// 10.10.10. 10:8786/
HTTP/1.1 300 Multiple Choices
Date: Wed, 13 Mar 2019 23:46:55 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 746
Connection: close
Content-Type: application/json
{"versions": [{"status": "DEPRECATED", "updated": "2015-08- 27T11:33: 21Z", "links": [{"href": "http:// docs.openstack. org/", "type": "text/html", "rel": "describedby"}, {"href": "http:// 10.10.10. 10:8786/ v1/", "rel": "self"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/ vnd.openstack. share+json; version= 1"}], "id": "v1.0"}, {"status": "CURRENT", "updated": "2015-08- 27T11:33: 21Z", "links": [{"href": "http:// docs.openstack. org/", "type": "text/html", "rel": "describedby"}, {"href": "http:// 10.10.10. 10:8786/ v2/", "rel": "self"}], "min_version": "2.0", "version": "2.49", "media-types": [{"base": "application/json", "type": "application/ vnd.openstack. share+json; version= 1"}], "id": "v2.0"}]}
So I'm re-opening this bug.