Modify cinder/volume/driver.py method copy_volume_data
to pass size in MB when calling cinder/volume/utils/copy_volume.py
Closes-Bug #
1218054
Change-Id: I5430f015ef0f0077b4794f1ff458e3f54cc4dc06
force=True)
try:
+ size_in_mb = int(src_vol['size']) * 1024 # vol size is in GB
volume_utils.copy_volume(src_attach_info['device']['path'],
dest_attach_info['device']['path'],
- src_vol['size'])
+ size_in_mb)
copy_error = False
except Exception:
with excutils.save_and_reraise_exception():