]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fetch_to_volume_format calls copy_volume using wrong parameter
authorwuyuting <wytdahu@gmail.com>
Mon, 26 Jan 2015 18:50:28 +0000 (02:50 +0800)
committerwuyuting <wytdahu@gmail.com>
Mon, 26 Jan 2015 22:30:23 +0000 (06:30 +0800)
commit549144f754a8b3adb9d7fdfa8f8f9ee186a52f1e
treef963cad0e645ebe1c97b5304436fa8219a60d6b2
parenta36100bd34a22ddc3b620947809a41d328b1e949
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.

Change-Id: Ia3b0f9168235a977a12232e27a5755ad11ec18f5
Closes-Bug: #1414867
cinder/image/image_utils.py
cinder/tests/test_image_utils.py