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

Bug #2054575 reported by Rajat Dhasmana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
In Progress
Undecided
Unassigned

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.

Changed in glance:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.