Hi Irina

 

Code review: https://review.openstack.org/#/c/618976/

 

I’m working of upstreaming this patch. Could you please help to address one doubt: why image is converted in the same location with image itself? This patch is to create a volume from image, right?

 

I take a look of related code, the destination location would be the newly created volume and the source location is configured in cinder.conf, something like:

image_conversion_dir = /mnt/d100m/image_conversion_dir

 

I did an experiment, in the latest master branch of cinder upstream repo:

-          If image_conversion_dir has no space to store the downloading image, the exception ImageTooBig will be caught in the beginning of _create_from_image_cache_or_download().

-          If has space to store the image, but dest volume size is smaller than image’s virtual size, an exception “ImageUnacceptable” will raised by check_virtual_size.

So it seems no chance to go to the situation this patch aimed to solve.

 

Could you please help to give more background of this patch? Or if you think this patch is invalid now, please just tell me, I will mark this patch as abandoned.

 

Thanks

Liang