← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1711829] [NEW] Pike 'versions' response includes 2.6 even when image import is not enabled

 

Public bug reported:

The bug is that the 'versions' response shows the EXPERIMENTAL 2.6
version even when enable_image_import=False.

This is why it's a bug.  There are a series of changes [0] in RC-2 to
make sure that when image import is not enabled, the /v2 responses to
v2.6 calls are the same as what you'd see in v2.5, that is, 404 for:

/v2/images/{image_id}/stage
/v2/images/{image_id}/import
/v2/info/import

and the OpenStack-image-import-methods header is not included on POST
/v2/images .

That being the case, we should not advertise the availability of 2.6 for
a Glance in the default configuration (that is, configured with
enable_image_import=False).  The calls won't 500 or anything, but
showing 2.6 as available will confuse consumers (and possibly deployers
testing their API nodes).


[0] These patches:
https://review.openstack.org/#/c/491249/
https://review.openstack.org/#/c/494544/
https://review.openstack.org/#/c/494036/

** Affects: glance
     Importance: Critical
     Assignee: Brian Rosmaita (brian-rosmaita)
         Status: Triaged

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

Title:
  Pike 'versions' response includes 2.6 even when image import is not
  enabled

Status in Glance:
  Triaged

Bug description:
  The bug is that the 'versions' response shows the EXPERIMENTAL 2.6
  version even when enable_image_import=False.

  This is why it's a bug.  There are a series of changes [0] in RC-2 to
  make sure that when image import is not enabled, the /v2 responses to
  v2.6 calls are the same as what you'd see in v2.5, that is, 404 for:

  /v2/images/{image_id}/stage
  /v2/images/{image_id}/import
  /v2/info/import

  and the OpenStack-image-import-methods header is not included on POST
  /v2/images .

  That being the case, we should not advertise the availability of 2.6
  for a Glance in the default configuration (that is, configured with
  enable_image_import=False).  The calls won't 500 or anything, but
  showing 2.6 as available will confuse consumers (and possibly
  deployers testing their API nodes).


  [0] These patches:
  https://review.openstack.org/#/c/491249/
  https://review.openstack.org/#/c/494544/
  https://review.openstack.org/#/c/494036/

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


Follow ups