yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70994
[Bug 1748117] [NEW] Incorrect version information if enable_image_import is false
Public bug reported:
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"}]}]}
** Affects: glance
Importance: High
Assignee: Abhishek Kekane (abhishek-kekane)
Status: New
** Changed in: glance
Importance: Undecided => High
** Changed in: glance
Assignee: (unassigned) => Abhishek Kekane (abhishek-kekane)
** Changed in: glance
Milestone: None => queens-rc1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1748117
Title:
Incorrect version information if enable_image_import is false
Status in Glance:
New
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"}]}]}
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1748117/+subscriptions
Follow ups