← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2054575] [NEW] cinder upload volume operation doesn't work with multiple cinder stores

 

Public bug reported:

Env: Glance is configured to use cinder as it's backend with multiple
stores enabled.

When we upload a volume from cinder to glance, we face the following
error and image never gets created.

glanceclient.exc.HTTPBadRequest: HTTP 400 Bad Request: Invalid location

This is because glance expected a location URI in the format
cinder://<store-id>/<vol-id>
instead cinder sends the URI
cinder://<vol-id>

Cinder cannot provide store-id since it doesn't have info about the glance stores and in which store the volume will be uploaded as an image.
Glance can handle this case by updating the location received from cinder (startswith("cinder://") and update it in the new format.

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  cinder upload volume operation doesn't work with multiple cinder
  stores

Status in Glance:
  New

Bug description:
  Env: Glance is configured to use cinder as it's backend with multiple
  stores enabled.

  When we upload a volume from cinder to glance, we face the following
  error and image never gets created.

  glanceclient.exc.HTTPBadRequest: HTTP 400 Bad Request: Invalid
  location

  This is because glance expected a location URI in the format
  cinder://<store-id>/<vol-id>
  instead cinder sends the URI
  cinder://<vol-id>

  Cinder cannot provide store-id since it doesn't have info about the glance stores and in which store the volume will be uploaded as an image.
  Glance can handle this case by updating the location received from cinder (startswith("cinder://") and update it in the new format.

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