← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1711362] Re: import-info should return 404 when import is not enabled

 

Reviewed:  https://review.openstack.org/494544
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=692dc040872e04d27469570a508018c44f8d88ef
Submitter: Jenkins
Branch:    master

commit 692dc040872e04d27469570a508018c44f8d88ef
Author: Brian Rosmaita <rosmaita.fossdev@xxxxxxxxx>
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: Ib56b600dbf53672bcaa4fd959adb736de4cdff50
    Closes-bug: #1711362


** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1711362

Title:
  import-info should return 404 when import is not enabled

Status in Glance:
  Fix Released

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/{image_id}/stage
  POST v2/images/{image_id}/import

  and, with enable_image_import = False, the OpenStack-image-import-
  methods header is NOT returned at all in a Pike RC-1 response (which
  is correct).

  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_image_import = False, you're
  running 2.5, this should return a 404 in Pike.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1711362/+subscriptions


References