Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImageCopyFailure: Failed to copy image to volume: 'tuple' object has no attribute 'find'

Hello.I am trying to create a VM on the block device and get this error in the log:

2015-11-19 10:13:39.012 5803 ERROR oslo_messaging.rpc.dispatcher [req-69b451e3-cfa9-40dd-95ad-c141419002a4 6ff45a1be4b646299c7e51b295f760c8 84d5ff4c58e54c6081c047c3b71a7037 - - -] Exception during message handling: Failed to copy image to volume: 'tuple' object has no attribute 'find'
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 468, in create_volume
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     _run_flow()
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 456, in _run_flow
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     flow_engine.run()
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 96, in run
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     for _state in self.run_iter():
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 153, in run_iter
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     failure.Failure.reraise_if_any(failures.values())
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 244, in reraise_if_any
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     failures[0].reraise()
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 251, in reraise
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     six.reraise(*self._exc_info)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 67, in _execute_task
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     result = task.execute(**arguments)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 653, in execute
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     **volume_spec)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 605, in _create_from_image
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     image_id, image_location, image_service)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 516, in _copy_image_to_volume
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher     raise exception.ImageCopyFailure(reason=ex)
2015-11-19 10:13:39.012 5803 TRACE oslo_messaging.rpc.dispatcher ImageCopyFailure: Failed to copy image to volume: 'tuple' object has no attribute 'find'

what could be the problem? The image I have this:

# glance image-list
+--------------------------------------+-------------+
| ID                                   | Name        |
+--------------------------------------+-------------+
| 0d10cf8d-e254-4bb1-8fb5-9ff9e10df1ff | 123         |
| f9904cec-98d0-4350-bbc8-3e51d2a1fdb2 | 213         |
| ef0e6817-7b84-4f24-bd58-acafcbc839a7 | 456         |
| 87608b5c-ff6d-4848-9eb5-8a774d6b663c | 654         |
| 67b933e3-6163-4351-bc33-3152d50fe820 | 987         |
| a16dd833-9d91-4e6a-8d85-ac0ce7ac4410 | asd         |
| 1ebd318c-4f36-47f4-b68f-97bc68468815 | cirros      |
| d1642c8a-f6b7-446a-af04-e2593712d40f | cirros-snap |
| 0aabf442-58c6-4453-8dbd-3f22d5a5911a | dsa         |
| 7cd3a156-d78f-4fbd-a5c5-ab7b0b893067 | rh7.1x86_64 |
| 0ed1ba28-c093-45b2-836d-e2edd0d1b27d | test        |
+--------------------------------------+-------------+

Use this command:

nova boot --flavor 2 --block-device source=image,id=0aabf442-58c6-4453-8dbd-3f22d5a5911a,dest=volume,size=10,shutdown=preserve,bootindex=0 --nic net-id=7483ffe2-9f10-4f16-8887-6a940b04e04e myInstanceFromVolume