glance client needs to support multiple backends

Bug #1665208 reported by Ed Balduf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Won't Fix
Undecided
Unassigned

Bug Description

The ability is in glance to support multiple backend types (Swift, file, ceph, cinder, http) for storage of images. The client previously had the ability to direct the storage of images to different backends (aka stores) via a --store flag. That option was removed with the V2 API. This removes functionality which was useful and needed.

For now one can work around it by forcing the client into V1 api mode, but once V1 api goes away there is no way to accomplish this any more.

$ glance --os-image-api 2 help image-create | grep "\-\-store"
# No option
$ glance --os-image-api 1 help image-create | grep "\-\-store"
usage: glance image-create [--id <IMAGE_ID>] [--name <NAME>] [--store <STORE>]
  --store <STORE> Store to upload image to.

Revision history for this message
Ian Cordasco (icordasc) wrote :

Hi Ed!

Thanks for reporting this. The reality of the matter is that Glance V2 is a *significantly* different API than V1 and this behaviour doesn't exist in it. I wasn't around for that decision so I can't speak directly to why it was removed, but I suspect it was for good reasons (probably including security reasons).

I'm going to mark this as Won't Fix, but I've asked others to help explain some of the historical context behind the decision.

Cheers!
Ian

Changed in python-glanceclient:
status: New → Won't Fix
Revision history for this message
Ed Balduf (ebalduf) wrote :

Very disappointing that one can't direct their images to certain backends, and kinda makes one wonder why there are all the capabilities in Glance to support multiple backends. It sounds like the v2 API has a way to support multiple backends, but I haven't investigated.

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.