VMware : Creating volume from streamOptimized image in ova container fails with ImageCopyFailure exception

Bug #1371478 reported by satyadev svn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Vipin Balachandran

Bug Description

create a volume from streamOptimized image.
At virtual center level ' during extend operation' fails with following logs at screen-c-vol.log

2014-09-19 13:06:06.376 WARNING cinder.volume.manager [req-f8e88928-5e09-4df9-b500-653dd36bd164 730896f0708946ee90d8b264e41ecd6c 8ec28f9a98fd45bab37cddad4607f629] Flow 'volume_create_manager' (1a37516b-31e3-4625-98ef-f6aeb3b602fd) transitioned into state 'REVERTED' from state 'RUNNING'
2014-09-19 13:06:06.376 ERROR oslo.messaging.rpc.dispatcher [req-f8e88928-5e09-4df9-b500-653dd36bd164 730896f0708946ee90d8b264e41ecd6c 8ec28f9a98fd45bab37cddad4607f629] Exception during message handling: Failed to copy image to volume: File [nfs0-1] volume-920b6440-12e2-4543-9f54-54adf2c0b724/volume-920b6440-12e2-4543-9f54-54adf2c0b724.vmdk was not found
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-09-19 13:06:06.376 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 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  incoming.message))
2014-09-19 13:06:06.376 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 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  return self._do_dispatch(endpoint, method, ctxt, args)
2014-09-19 13:06:06.376 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 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  result = getattr(endpoint, method)(ctxt, **new_args)
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  return f(*args, **kwargs)
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/manager.py", line 380, in create_volume
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  _run_flow()
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/manager.py", line 373, in _run_flow
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  flow_engine.run()
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/engines/action_engine/engine.py", line 98, in run
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  for _state in self.run_iter():
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/engines/action_engine/engine.py", line 155, in run_iter
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  misc.Failure.reraise_if_any(failures.values())
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/utils/misc.py", line 670, in reraise_if_any
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  failures[0].reraise()
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/utils/misc.py", line 677, in reraise
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  six.reraise(*self._exc_info)
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/taskflow/taskflow/engines/action_engine/executor.py", line 35, in _execute_task
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  result = task.execute(**arguments)
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 638, in execute
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  **volume_spec)
2014-09-19 13:06:06.376 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 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  image_id, image_location, image_service)
2014-09-19 13:06:06.376 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 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher  raise exception.ImageCopyFailure(reason=ex)
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher ImageCopyFailure: Failed to copy image to volume: File [nfs0-1] volume-920b6440-12e2-4543-9f54-54adf2c0b724/volume-920b6440-12e2-4543-9f54-54adf2c0b724.vmdk was not found
2014-09-19 13:06:06.376 TRACE oslo.messaging.rpc.dispatcher 

Tags: drivers vmware
Revision history for this message
satyadev svn (svnsatya) wrote :
satyadev svn (svnsatya)
summary: - unable to create a volume from 'streamOptimized' image - fails with
- exception " ImageCopyFailure: Failed to copy image to volume "
+ VMWARE : unable to create a volume from 'streamOptimized' image - fails
+ with exception " ImageCopyFailure: Failed to copy image to volume "
Revision history for this message
satyadev svn (svnsatya) wrote : Re: VMWARE : unable to create a volume from 'streamOptimized' image - fails with exception " ImageCopyFailure: Failed to copy image to volume "
Download full text (3.2 KiB)

Reason for failure , I uploaded 'ova' as container format to glance
when cinder try to create volume from a image based on ova, it is not finding vmdk in ova and creating volume with zero size vmdk and hence extend volume fails.

ssatya@juno-devstack:~/images$ glance image-list
+--------------------------------------+------------------------+-------------+------------------+------------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+------------------------+-------------+------------------+------------+--------+
| b8e73860-eb54-4da1-a120-f622b98a1754 | cirros-0.3.2-i386-disk | vmdk | bare | 17104896 | active |
| edc5b28b-0669-4a12-b256-b25d83e430b5 | debian | vmdk | bare | 1073741824 | active |
| 11c516c0-76fe-45ae-9b37-ea4ce225330e | debianthin | vmdk | bare | 1073741824 | active |
| a3190c34-26c3-48ce-9aca-a8e8ac1576c5 | dsl | vmdk | ova | 60579328 | active |
| b1ea55b6-3f74-4eb8-9c9c-bb415e6bed9f | dsl_vmdk | vmdk | ova | 60570624 | active |
| 9ab9fe8e-6d76-4d66-a165-b5c7387fcde5 | img-1 | vmdk | bare | 69120 | active |
+--------------------------------------+------------------------+-------------+------------------+------------+--------+

ssatya@juno-devstack:~/images$ glance image-show a3190c34-26c3-48ce-9aca-a8e8ac1576c5
+-------------------------------+--------------------------------------+
| Property | Value |
+-------------------------------+--------------------------------------+
| Property 'vmware_adaptertype' | ide |
| Property 'vmware_disktype' | streamOptimized |
| checksum | 5afedb26f84bf37508b5eec97ce79b90 |
| container_format | ova |
| created_at | 2014-09-23T05:08:56 |
| deleted | False |
| disk_format | vmdk |
| id | a3190c34-26c3-48ce-9aca-a8e8ac1576c5 |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | dsl |
| owner | 49a3a5eb4c854a0bb9a2d9ad5d7d9715 |
| protected | False |
| size | 60579328 |
| status | active |
| updated_at | 2014-09-23T05:08:58 |

Expected : while creating volume we either we should throw error saying vmdk not found or equivalent valid exception by cinder driver. Else find out vmdk ...

Read more...

Changed in cinder:
importance: Undecided → Low
status: New → Confirmed
summary: - VMWARE : unable to create a volume from 'streamOptimized' image - fails
- with exception " ImageCopyFailure: Failed to copy image to volume "
+ VMware : Creating volume from streamOptimized image in ova container
+ fails with ImageCopyFailure exception
Changed in cinder:
assignee: nobody → Vipin Balachandran (vbala)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/163170

Changed in cinder:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/163170
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=869e71c31a6e2c1753796625b060fa39848af683
Submitter: Jenkins
Branch: master

commit 869e71c31a6e2c1753796625b060fa39848af683
Author: Vipin Balachandran <email address hidden>
Date: Thu Jan 15 00:33:52 2015 +0530

    VMware: Fail immediately for images in a container

    Currently VMDK driver doesn't support images within
    a container such as OVA. Instead of throwing an error
    immediately, the driver tries to create a backing
    using the container as its vmdk. This will eventually
    fail with vCenter error. This patch fixes it.

    Change-Id: Ie97a3a63807d00880310f2a7e5f6d32ee89d2cd7
    Closes-Bug: #1371478

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-3 → 2015.1.0
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.