Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Glance image uploading authorization failed

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/dist-packages/ovft/engine/package_lock.py:114

Please find the configuration file used for the service.

[DEFAULT]
deferred_auth_method = trusts
use_syslog = True
debug = True
auth_encryption_key = f56b44465a95abf86382ea570e682b47
rabbit_password = openstack
rabbit_hosts = 127.0.0.1
rpc_backend = ovft.openstack.common.rpc.impl_kombu


[auth_password]

[clients]

[database]
connection = mysql://root:openstack@127.0.0.1/ovft?charset=utf8


[ec2authtoken]
keystone_ec2_uri = http://127.0.0.1:5000/v2.0/ec2tokens
auth_uri = http://127.0.0.1:5000/v2.0

[ovft_api]
bind_port = 8888

[keystone_authtoken]
signing_dir = /var/cache/ovft
admin_password = openstack
admin_user = ovft
admin_tenant_name = service
cafile =
auth_uri = http://127.0.0.1:5000/v2.0
auth_protocol = http
auth_port = 35357
auth_host = 127.0.0.1
identity_uri = http://127.0.0.1:5000

I already tried deleting /var/cache and restarting the service and tried commenting out deferred_auth_method, auth_host and auth_port. None of them worked.

I had a similar issue in creating a stack using heat service bouncing with Authorization failure and it got resolved at this Question.

Tried everything suggested over there, but in vain.

Please help.

Regards, Bharath

Glance image uploading authorization failed

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/dist-packages/ovft/engine/package_lock.py:114

Please find the configuration file used for the service.

[DEFAULT]
deferred_auth_method = trusts
use_syslog = True
debug = True
auth_encryption_key = f56b44465a95abf86382ea570e682b47
rabbit_password = openstack
rabbit_hosts = 127.0.0.1
rpc_backend = ovft.openstack.common.rpc.impl_kombu


[auth_password]

[clients]

[database]
connection = mysql://root:openstack@127.0.0.1/ovft?charset=utf8


[ec2authtoken]
keystone_ec2_uri = http://127.0.0.1:5000/v2.0/ec2tokens
auth_uri = http://127.0.0.1:5000/v2.0

[ovft_api]
bind_port = 8888

[keystone_authtoken]
signing_dir = /var/cache/ovft
admin_password = openstack
admin_user = ovft
admin_tenant_name = service
cafile =
auth_uri = http://127.0.0.1:5000/v2.0
auth_protocol = http
auth_port = 35357
auth_host = 127.0.0.1
identity_uri = http://127.0.0.1:5000

I already tried deleting /var/cache and restarting the service and tried commenting out deferred_auth_method, auth_host and auth_port. None of them worked.

I had a similar issue in creating a stack using heat service bouncing with Authorization failure and it got resolved at this Question.

Tried everything suggested over there, but in vain.

Please help.

Regards, Bharath