From 473b429c861d26b927772b2efb828839821250e3 Mon Sep 17 00:00:00 2001 From: Bill Owen Date: Wed, 28 Aug 2013 15:54:54 -0700 Subject: [PATCH] Pass MB size on copy_volume_data call copy_volume 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 --- cinder/volume/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/volume/driver.py b/cinder/volume/driver.py index 9dbf3778e..83d172933 100644 --- a/cinder/volume/driver.py +++ b/cinder/volume/driver.py @@ -271,9 +271,10 @@ class VolumeDriver(object): 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(): -- 2.45.2