]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Fix volume copy across vCenter datacenters
authorVipin Balachandran <vbala@vmware.com>
Tue, 15 Dec 2015 13:40:37 +0000 (05:40 -0800)
committerVipin Balachandran <vbala@vmware.com>
Wed, 16 Dec 2015 11:05:22 +0000 (03:05 -0800)
commit3509b5374d0006a3f77c1b59d0aa3d70a1914e3b
tree0507fa18a6cf7241f20da73068626e6dc8a9fec9
parente8efa5b364a0a473866cf5ded0d8c6f42568d301
VMware: Fix volume copy across vCenter datacenters

Currently volume creation from another volume or snapshot fails
if the source volume/snapshot and the destination volume are in
different vCenter datacenters. This is because we are always
passing the source datacenter folder as the location of the
destination volume while calling vCenter clone API. This patch
fixes the problem by passing the correct datacenter folder while
copying volume or snapshot.

Change-Id: I3bfbc149fc75fbff303b9c9b1c833b499fa2814e
Closes-bug: #1521991
cinder/tests/unit/test_vmware_vmdk.py
cinder/tests/unit/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py