Steps to reproduce:
Setup info
VC1
Cluster1
Host1
Cluster2
Host2
1. Spawn a instance in Cluster1
2. Create a volume and attach to instance.
3. Now detach and take snapshot
4. Create a volume from the snapshot
5. Cinder driver should select a datastore from Cluster2
vCenter expects 'Resource pool' information in the clone spec which is not currently provided.
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 126, in _do_dispatch
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/manager.py", line 383, in create_volume
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher _run_flow_locked()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/openstack/common/lockutils.py", line 233, in inner
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher retval = f(*args, **kwargs)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/manager.py", line 378, in _run_flow_locked
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher _run_flow()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/manager.py", line 374, in _run_flow
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher flow_engine.run()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 99, in run
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher for _state in self.run_iter():
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 156, in run_iter
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher misc.Failure.reraise_if_any(failures.values())
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/taskflow/utils/misc.py", line 733, in reraise_if_any
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher failures[0].reraise()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/taskflow/utils/misc.py", line 740, in reraise
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher six.reraise(*self._exc_info)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 35, in _execute_task
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher result = task.execute(**arguments)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 628, in execute
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher **volume_spec)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 407, in _create_from_snapshot
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher snapshot_ref)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/drivers/vmware/vmdk.py", line 2035, in create_volume_from_snapshot
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher self._create_volume_from_snapshot(volume, snapshot)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/drivers/vmware/vmdk.py", line 2027, in _create_volume_from_snapshot
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher snapshot['volume_size'])
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/drivers/vmware/vmdk.py", line 1988, in _clone_backing
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher snapshot, clone_type, datastore, host=host, rp=rp)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/drivers/vmware/volumeops.py", line 1075, in clone_backing
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher task_info = self._session.wait_for_task(task)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/drivers/vmware/api.py", line 288, in wait_for_task
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher return loop.start(self._task_poll_interval).wait()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher return hubs.get_hub().switch()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 293, in switch
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher return self.greenlet.switch()
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/openstack/common/loopingcall.py", line 81, in _inner
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher self.f(*self.args, **self.kw)
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/venvs/cinder/local/lib/python2.7/site-packages/cinder/volume/drivers/vmware/api.py", line 319, in _poll_task
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher raise excep
2015-01-30 15:36:40.598 30257 TRACE oslo.messaging.rpc.dispatcher VimFaultException: A specified parameter was not correct.
Fix proposed to branch: master /review. openstack. org/151872
Review: https:/