Fix available space checking for image conversion
Cinder checks if there is enough free space to convert image from qcow
to raw format before uploading it into the volume. This patch fixes
the issue when we try to compare GiB to KiB.
Closes-Bug:
@@ -448,7 +448,7 @@ def fetch_to_volume_format(context, image_service,
# NOTE(e0ne): check for free space in destination directory before
# image conversion.
- check_available_space(dest, virt_size, image_id)
+ check_available_space(dest, data.virtual_size, image_id)
# NOTE(jdg): I'm using qemu-img convert to write
# to the volume regardless if it *needs* conversion or not
