import-info should return 404 when import is not enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Brian Rosmaita |
Bug Description
The 2.5 API is going to remain CURRENT in Pike, with the 2.6 API (with image import refactor) as EXPERIMENTAL. With Pike RC-1, if you make these calls with enable_image_import = False, you get a 404, just as you do with stable/ocata:
PUT v2/images/
POST v2/images/
and, with enable_image_import = False, the OpenStack-
The GET v2/info/import call, however, in Pike RC-1 with enable_image_import = False returns a 200 with this body:
{"import-methods": {"type": "array", "description": "Import methods available.", "value": []}}
The content is correct, but stable/ocata returns a 404 for this. In order to make the claim that with enabled_
Changed in glance: | |
assignee: | nobody → Brian Rosmaita (brian-rosmaita) |
description: | updated |
Changed in glance: | |
status: | Triaged → In Progress |
Reviewed: https:/ /review. openstack. org/494544 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=692dc040872 e04d27469570a50 8018c44f8d88ef
Committed: https:/
Submitter: Jenkins
Branch: master
commit 692dc040872e04d 27469570a508018 c44f8d88ef
Author: Brian Rosmaita <email address hidden>
Date: Thu Aug 17 09:18:20 2017 -0400
Return 404 for import-info call
Change the response to GET v2/info/import to be a 404 when Glance is
configured with enable_image_import = False so that the response is
consistent with the v2.5 API. See the bug for details.
Change-Id: Ib56b600dbf5367 2bcaa4fd959adb7 36de4cdff50
Closes-bug: #1711362