glance client needs to support multiple backends
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.
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