Description of problem: Recent virt-v2v versions can upload converted OS images to Glance [1] but in some cases they are images from which one wants to run the OS from instead of creating several instances, it would be more optimal if Cinder would allow uploading them into it directly. Quoting Richard W.M. Jones: I was chatting to people on #openstack-cinder about this. There doesn't appear to be any philosophical reason not to do it, although some concerns over whether the current API could handle large images being uploaded. 1) http://libguestfs.org/virt-v2v.1.html#convert-disk-image-to-openstack-glance
For reference, virt-v2v uploads to *glance* presently by running the 'glance image-upload' command. See: https://github.com/libguestfs/libguestfs/blob/master/v2v/output_glance.ml#L63
Sergey: I think you are involved in Cinder? Any comments on how hard it would be to add support for a way to upload directly?
(In reply to Richard W.M. Jones from comment #2) > For reference, virt-v2v uploads to *glance* presently by running > the 'glance image-upload' command. See: Bleah, I mean 'glance image-create'.
We had an off-bug discussion about this, which I'll briefly summarize here: - Glance had a Cinder backend, which would have meant that we could just use Glance to access Cinder, however it was deprecated and removed upstream: https://review.openstack.org/#/c/137296/ - Having Glance write to Cinder is fragile. - Upstream opposition to changing the Cinder API to allow direct uploads, because the API is not designed for this. - Can create images in Glance and then transfer them to Cinder [we knew this already -- it's slow and requires redundant storage]
Can't move on this one until Cinder adds support.
I have included this documentation patch in RHEL 7.3: https://github.com/libguestfs/libguestfs/commit/68fc25e1d54bfeff8d7a7d40ae9b061f800406d7 However we're not any closer to fixing this properly, so I will move this to 7.4.
Moving to RHEL 7.5 per comment 12.
There's now a project to add openstack support to virt-v2v which will solve this. Please follow the upstream mailing list and openstack development branch. I am closing this bug because uploading images to Cinder will not be required as a separate step and tracking it in this bug is not useful. See: https://www.redhat.com/archives/libguestfs/2018-July/msg00068.html