VMWARE : unable to create a volume from 'vmware_disktype: preallocated' image - fails with exception " ImageCopyFailure: Failed to copy image to volume Cannot complete file creation operation."

Bug #1371484 reported by satyadev svn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

Create a volume from 'preallocated" image.
At virtual center level 'during clone opeartion' failure observed. [please see attache zip for reference]

Flow 'volume_create_manager' (38ed0c07-2b49-4d23-bab2-520ef2e03b1e) transitioned into state 'REVERTED' from state 'RUNNING'
2014-09-19 11:50:33.350 ERROR oslo.messaging.rpc.dispatcher [req-cef04a64-6019-453b-a6fc-dfe9a3e2d496 730896f0708946ee90d8b264e41ecd6c 8ec28f9a98fd45bab37cddad4607f629] Exception during message handling: Failed to copy image to volume: Cannot complete file creation operation.
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  incoming.message))
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  return self._do_dispatch(endpoint, method, ctxt, args)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  result = getattr(endpoint, method)(ctxt, **new_args)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  return f(*args, **kwargs)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/manager.py", line 380, in create_volume
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  _run_flow()
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/manager.py", line 373, in _run_flow
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  flow_engine.run()
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/engines/action_engine/engine.py", line 98, in run
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  for _state in self.run_iter():
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/engines/action_engine/engine.py", line 155, in run_iter
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  misc.Failure.reraise_if_any(failures.values())
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/utils/misc.py", line 670, in reraise_if_any
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  failures[0].reraise()
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/utils/misc.py", line 677, in reraise
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  six.reraise(*self._exc_info)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/engines/action_engine/executor.py", line 35, in _execute_task
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  result = task.execute(**arguments)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 638, in execute
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  **volume_spec)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 590, in _create_from_image
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  image_id, image_location, image_service)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 504, in _copy_image_to_volume
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher  raise exception.ImageCopyFailure(reason=ex)
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher ImageCopyFailure: Failed to copy image to volume: Cannot complete file creation operation.
2014-09-19 11:50:33.350 TRACE oslo.messaging.rpc.dispatcher 
2014-09-19 11:50:50.128 DEBUG cinder.openstack.common.periodic_task

Tags: drivers vmware
Revision history for this message
satyadev svn (svnsatya) wrote :
satyadev svn (svnsatya)
summary: - unable to create a volume from 'vmware_disktype: preallocated' image -
- fails with exception " ImageCopyFailure: Failed to copy image to volume
- Cannot complete file creation operation."
+ VMWARE : unable to create a volume from 'vmware_disktype: preallocated'
+ image - fails with exception " ImageCopyFailure: Failed to copy image
+ to volume Cannot complete file creation operation."
Revision history for this message
satyadev svn (svnsatya) wrote :

Issue is similar to 'https://bugs.launchpad.net/cinder/+bug/1301943' .

 '1301943' - is related to 'vmware_disktype=sparse' image type but this bug is related to 'vmware_disktype=preallocated'

However as per comment 2 of respective bug : for all Non-StreamOptimized images cinder driver logic should not select destination as vsan datastore. once bug 1301943 get fixed we should not see this issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.