Glance to Cinder optimization
Is there a way to skip the image conversion when cinder grabs an image from glance? I'm currently using the smb2 backend and have uploaded my images as vhdx.
Hi,
Not at the moment. There's been an inline TODO since forever but it never got implemented: https://github.com/openstack/cinder/b...
At the moment, cinder is downloading the image to a temporary location and then uses qemu-img to do the conversion and write to the final location (can be a file or an actual block device).
One step would be to skip the conversion if the image already has the right format and then do a simple copy. The next step might be to add a config option, saying if the image should be downloaded directly to the final location in this case (you may want to avoid writing small chunks directly to the final location and stick to a temporary file instead).
We can raise this matter again at one of the Cinder meetings, should be a simple thing to do.
Thanks,
Lucian
Asked: 2020-01-07 17:35:48 +0200
Seen: 205 times
Last updated: Jan 08 '20