Hello List, I have following error while creating a new volume:
2016-04-08 12:08:35.940 3202 WARNING cinder.volume.manager [req-edb0c9fe-f697-4bbf-ba1c-dd8170ed267c 6848edd37e3f4d2aa507254a962c3c0e 24d9d646b6df4ff2bcf5aec3c34701df - - -] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeSpecTask;volume:create' (7a8024c3-bc4e-41d9-8395-149cbeee5f65) transitioned into state 'REVERTED' from state 'REVERTING' 2016-04-08 12:08:36.006 3202 WARNING cinder.volume.manager [req-edb0c9fe-f697-4bbf-ba1c-dd8170ed267c 6848edd37e3f4d2aa507254a962c3c0e 24d9d646b6df4ff2bcf5aec3c34701df - - -] Task 'cinder.volume.flows.manager.create_volume.OnFailureRescheduleTask;volume:create' (138eb45c-822b-4263-906f-cc0201be5e32) transitioned into state 'REVERTED' from state 'REVERTING' 2016-04-08 12:08:36.010 3202 WARNING cinder.volume.manager [req-edb0c9fe-f697-4bbf-ba1c-dd8170ed267c 6848edd37e3f4d2aa507254a962c3c0e 24d9d646b6df4ff2bcf5aec3c34701df - - -] Task 'cinder.volume.flows.manager.create_volume.ExtractVolumeRefTask;volume:create' (11eaf00d-1559-40a9-98ee-4a6793d2caf0) transitioned into state 'REVERTED' from state 'REVERTING' 2016-04-08 12:08:36.014 3202 WARNING cinder.volume.manager [req-edb0c9fe-f697-4bbf-ba1c-dd8170ed267c 6848edd37e3f4d2aa507254a962c3c0e 24d9d646b6df4ff2bcf5aec3c34701df - - -] Flow 'volume_create_manager' (f6e2c186-f2eb-4926-9c2d-0683ea3f35f4) transitioned into state 'REVERTED' from state 'RUNNING' 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher [req-edb0c9fe-f697-4bbf-ba1c-dd8170ed267c 6848edd37e3f4d2aa507254a962c3c0e 24d9d646b6df4ff2bcf5aec3c34701df - - -] Exception during message handling: Not authorized for image bce16217-d07c-49bc-83a3-acd66b51b192. 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last): 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher executor_callback)) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher executor_callback) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher return f(*args, **kwargs) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 547, in create_volume 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher _run_flow() 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 534, in _run_flow 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher flow_engine.run() 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 159, in run 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher for _state in self.run_iter(): 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 223, in run_iter 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher failure.Failure.reraise_if_any(it) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 308, in reraise_if_any 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher failures[0].reraise() 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 315, in reraise 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher six.reraise(*self._exc_info) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 82, in _execute_task 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher result = task.execute(**arguments) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 302, in execute 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher 'image_meta': image_service.show(context, image_id), 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 240, in show 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher _reraise_translated_image_exception(image_id) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 541, in _reraise_translated_image_exception 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher six.reraise(type(new_exc), new_exc, exc_trace) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 238, in show 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher image = self._client.call(context, 'get', image_id) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 177, in call 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher return getattr(controller, method)(*args, **kwargs) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 132, in get 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher % urlparse.quote(str(image_id))) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 277, in head 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher return self._request('HEAD', url, **kwargs) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 272, in _request 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher resp, body_iter = self._handle_response(resp) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 93, in _handle_response 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher raise exc.from_response(resp, resp.content) 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher ImageNotAuthorized: Not authorized for image bce16217-d07c-49bc-83a3-acd66b51b192. 2016-04-08 12:08:36.015 3202 ERROR oslo_messaging.rpc.dispatcher It is happening when I reference a image during creation, so following generates the above: "cinder create --availability-zone nova --image cirros --name cirros_test 1” but this creates the volume without problems: "cinder create --availability-zone nova --name cirros_test 1” So this leads me to believe that there is some misconfiguration in the cinder user permissions so that it cannot access glance API. Can anybody advise what might be the issue and how to troubleshoot it further? System: CentOS7 Openstack Liberty Regards, Krzysztof _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack