cannot create cinder volume with image

asked 2016-02-17 05:35:15 -0500

junaid gravatar image

updated 2016-02-18 15:16:22 -0500

The logs of /var/log/cinder/volume.log of cinder storage node is given below:

2016-02-17 15:26:20.366 27795 ERROR oslo_messaging.rpc.dispatcher [req-1fc7d34a-741f-4f3a-a77b-29fa04ad2579 d3c8ca761c7b4080b7fd7b0f11910442 6d0b505282044bdaa9ed203af1f50586 - - -] Exception during message handling: Failed to copy image to volume: Image 1edc015c-38e3-45d1-94cb-0d9d5b5213dc could not be found.
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 468, in create_volume
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     _run_flow()
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 456, in _run_flow
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     flow_engine.run()
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 96, in run
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     for _state in self.run_iter():
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 153, in run_iter
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     failure.Failure.reraise_if_any(failures.values())
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 244, in reraise_if_any
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     failures[0].reraise()
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 251, in reraise
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     six.reraise(*self._exc_info)
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 67, in _execute_task
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher     result = task.execute(**arguments)
2016-02-17 15:26:20.366 27795 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 653, in execute
2016-02-17 15:26:20.366 ...
(more)
edit retag flag offensive close merge delete

Comments

Does the image exists in glance in active state? cinder config file has glance_host option configured with a resolvable hostname/IP from storage node?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-18 15:19:13 -0500 )edit

Instance launch with glance image is working fine. glance_host parameter is set with proper ip address. I'm using haproxy for high availability.

junaid gravatar imagejunaid ( 2016-02-19 00:22:27 -0500 )edit