Glance image uploading authorization failed

asked 2014-12-15 01:10:40 -0600

Bharath gravatar image

updated 2014-12-30 18:54:08 -0600

smaffulli gravatar image

I am trying to deploy stack using a service specific to our environment and I am facing the below error:

I am able to create images directly from glance image-create but while trying to upload through this service it gets failed.

2014-12-12 16:23:01.661 ERROR ovft.engine.pre_deploy [-] Glance Image Uploading Failed
2014-12-12 16:23:01.662 ERROR ovft.engine.pre_deploy [-] Authorization failed: Internal Server Error (HTTP 500)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy Traceback (most recent call last):
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/engine/pre_deploy.py", line 128, in predeploy_functionality
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     image_id = image_create(req, extract_path, image_file)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/engine/pre_deploy.py", line 284, in image_create
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     glance_client_obj = obj.glance()
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/engine/clients.py", line 113, in glance
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     endpoint_type=endpoint_type)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/engine/clients.py", line 63, in url_for
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     return self.keystone().url_for(**kwargs)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/common/ovft_keystoneclient.py", line 502, in url_for
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     return self.client.service_catalog.url_for(**kwargs)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/common/ovft_keystoneclient.py", line 94, in client
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     self._client = self._v3_client_init()
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/ovft/common/ovft_keystoneclient.py", line 153, in _v3_client_init
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     client.authenticate()
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     return func(*args, **kwargs)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 425, in authenticate
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     resp = self.get_raw_token_from_identity_service(**kwargs)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy   File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/client.py", line 275, in get_raw_token_from_identity_service
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy     '%s' % e)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy AuthorizationFailure: Authorization failed: Internal Server Error (HTTP 500)
2014-12-12 16:23:01.662 TRACE ovft.engine.pre_deploy 
2014-12-12 16:23:02.062 DEBUG ovft.engine.package_lock [-] Engine aad000b4-0524-4e3d-9a5f-4ff50c83ef59 released lock on package a5279389-8702-45fe-abeb-2f03170bdb94 from (pid=6388) release /usr/local/lib/python2.7 ...
(more)
edit retag flag offensive close merge delete

Comments

check whether the keystone and glance services are up and running

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-12-15 01:58:13 -0600 )edit

both are running and as I already said, I am able to upload image through glance service with out any issue

Bharath gravatar imageBharath ( 2014-12-15 02:37:08 -0600 )edit

can you pastebin your local.conf file

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-12-15 04:03:40 -0600 )edit

May I know what local.conf you are referring to? My service /etc/xxx/xxx.conf? If that is the one, I already pasted it in the question.

Bharath gravatar imageBharath ( 2014-12-16 05:54:30 -0600 )edit