Incorrect version information if enable_image_import is false

Bug #1748117 reported by Abhishek Kekane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
High
Unassigned

Bug Description

If enable_image_import is false then 2.6 API should not be listed in the response.

curl -g -i -X GET http://192.168.0.9/image/versions/ -H "Content-Type: application/octet-stream" -H "X-Auth-Token: 6f54401ade9a44c7ab8e91e5587c9e8f"

Actual response:
{"versions": [{"status": "CURRENT", "id": "v2.6", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.5", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.4", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.3", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.2", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.1", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.0", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}]}

Expected response:
{"versions": [{"status": "SUPPORTED", "id": "v2.5", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.4", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.3", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.2", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.1", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.0", "links": [{"href": "http://192.168.0.9/image/v2/", "rel": "self"}]}]}

Changed in glance:
importance: Undecided → High
assignee: nobody → Abhishek Kekane (abhishek-kekane)
milestone: none → queens-rc1
Changed in glance:
milestone: queens-rc1 → none
Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

It turns out that the release note describing this behavior was incorrect, so the release note was changed.

Changed in glance:
status: New → Invalid
assignee: Abhishek Kekane (abhishek-kekane) → nobody
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.