]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Fix missing target resource pool
authorJohnson koil raj <johnson.raj@hp.com>
Sat, 31 Jan 2015 09:54:57 +0000 (15:24 +0530)
committerJohnson koil raj <johnson.raj@hp.com>
Mon, 2 Feb 2015 13:25:48 +0000 (18:55 +0530)
commit0df929e60c9053240b792dea7ed7e2c10de69fc1
tree2136d4080d6989bcf251b97f201566d056f0bab2
parent9e712de6f57d5dbc998444c327f0c2c7825f4827
VMware: Fix missing target resource pool

The volume is cloned while creating it from another volume, snapshot
or image. Currently, the target resource pool is unset while calling
vCenter CloneVM_Task API.

So when a clone happens across clusters in a vCenter clone fails.
This patch fixes the problem by setting the target resource pool
(returned by datastore selection logic) while invoking clone.

Closes-Bug: #1416456

Change-Id: Ib1023efe6fd19d604af89f7e4b4f67640d778d39
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py