]> 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)
committerVipin Balachandran <vbala@vmware.com>
Fri, 29 May 2015 06:02:34 +0000 (11:32 +0530)
commitc56bbb74f196b43baabcd949109643b4bff3b65e
tree37c7b6b7dbd68e80b183dfebf14b71a44fea9eb9
parent03562c362cfa217ec794dd98f197f623c1ffe45d
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
(cherry picked from commit 0df929e60c9053240b792dea7ed7e2c10de69fc1)
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py