Fetch_to_volume_format calls copy_volume using wrong parameter
When creating a volume from an image, if qemu-img is not installed,
fetch_to_volume_format will call volume_utils.copy_volume to copy
image to volume. Copy_volume need the size of image in megabyte,
but fetch_to_volume_format call it using size in bytes.
Reviewed: https:/ /review. openstack. org/150232 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=549144f754a 8b3adb9d7fdfa8f 8f9ee186a52f1e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 549144f754a8b3a db9d7fdfa8f8f9e e186a52f1e
Author: wuyuting <email address hidden>
Date: Tue Jan 27 02:50:28 2015 +0800
Fetch_ to_volume_ format calls copy_volume using wrong parameter
When creating a volume from an image, if qemu-img is not installed, to_volume_ format will call volume_ utils.copy_ volume to copy volume_ format call it using size in bytes.
fetch_
image to volume. Copy_volume need the size of image in megabyte,
but fetch_to_
Change-Id: Ia3b0f9168235a9 77a12232e27a575 5ad11ec18f5
Closes-Bug: #1414867