LVM: Pass volume size in MiB to copy_volume() during volume migration
Currently migrate_volume() in lvm.py does not pass volume size in
MiB but passes volume size in GiB to copy_volume(). The size argument
of copy_volume() requires MiB value. As a result, if the volume size
is 1GiB, copy_volume() copies only 1MiB head of 1GiB volume to the
destination volume, and then the volume data is corrupted.
This patch fixes to pass volume size in MiB.
(cherry picked from commit
a5da4c353a1df17341c1e745796e00a4ec1afd21)
Conflicts:
cinder/tests/test_volume.py
(Added mock for create_export.)
Closes-bug: #
1454835
Change-Id: I8e06195dc3625ef07bc9858d844541e37a231b73