Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ERROR: Authorization Failed: The resource could not be found. (HTTP 404)

Hi,

While creating a stack through heat we are getting this error (we are getting the same error from admin and demo users . The command is -

heat stack-create mystack --template-file=my.template

and this is my.template , just to create a single instance -

cat my.template

heat_template_version: 2013-05-23

description: Simple template to deploy a single compute instance

resources: my_instance: type: OS::Nova::Server properties: key_name: heat_key image: F17 flavor: m1.small

Below is our heat-engine.log -

2013-11-08 11:57:57.918 6896 INFO heat.engine.service [-] template is {u'heat_template_version': u'2013-05-23', u'description': u'Simple template to deploy a single compute instance', u'resources': {u'my_instance': {u'type': u'OS::Nova::Server', u'properties': {u'key_name': u'heat_key', u'image': u'F17', u'flavor': u'm1.small'}}}} 2013-11-08 11:57:57.944 6896 INFO heat.engine.resource [-] Validating Server "my_instance" 2013-11-08 11:57:57.986 6896 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.2.5 2013-11-08 11:57:57.990 6896 ERROR heat.engine.parser [-] Authorization Failed: The resource could not be found. (HTTP 404) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser Traceback (most recent call last): 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/engine/parser.py", line 308, in validate 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser result = res.validate() 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/engine/resources/server.py", line 371, in validate 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser nova_utils.get_keypair(self.nova(), key_name) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 315, in nova 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser return self.stack.clients.nova(service_type) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/engine/clients.py", line 111, in nova 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser management_url = self.url_for(service_type=service_type) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/engine/clients.py", line 86, in url_for 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser return self.keystone().url_for(kwargs) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/common/heat_keystoneclient.py", line 309, in url_for 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser return self.client_v2.service_catalog.url_for(kwargs) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/common/heat_keystoneclient.py", line 73, in client_v2 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser self._client_v2 = self._v2_client_init() 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/heat/common/heat_keystoneclient.py", line 103, in _v2_client_init 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser client_v2 = kc.Client(kwargs) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 139, in __init__ 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser self.authenticate() 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 458, in authenticate 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser resp, body = self.get_raw_token_from_identity_service(kwargs) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 166, in get_raw_token_from_identity_service 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser "%s" % e) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser AuthorizationFailure: Authorization Failed: The resource could not be found. (HTTP 404) 2013-11-08 11:57:57.990 6896 TRACE heat.engine.parser 2013-11-08 11:57:57.990 6896 ERROR heat.openstack.common.rpc.amqp [-] Exception during message handling 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp Traceback (most recent call last): 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/amqp.py", line 461, in _process_data 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp *args) 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/dispatcher.py", line 172, in dispatch 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, *kwargs) 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 60, in wrapped 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp return func(self, ctx, args, *kwargs) 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 281, in create_stack 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp stack.validate() 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/heat/engine/parser.py", line 314, in validate 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp raise StackValidationFailed(message=str(ex)) 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp StackValidationFailed: Authorization Failed: The resource could not be found. (HTTP 404) 2013-11-08 11:57:57.990 6896 TRACE heat.openstack.common.rpc.amqp 2013-11-08 11:57:57.991 6896 ERROR heat.openstack.common.rpc.common [-] Returning exception Authorization Failed: The resource could not be found. (HTTP 404) to caller 2013-11-08 11:57:57.991 6896 ERROR heat.openstack.common.rpc.common [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/amqp.py", line 461, in _process_data\n *args)\n', ' File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, *kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 60, in wrapped\n return func(self, ctx, args, *kwargs)\n', ' File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 281, in create_stack\n stack.validate()\n', ' File "/usr/lib/python2.7/dist-packages/heat/engine/parser.py", line 314, in validate\n raise StackValidationFailed(message=str(ex))\n', 'StackValidationFailed: Authorization Failed: The resource could not be found. (HTTP 404)\n']

Any help is appreciated.

Regards,

Tapash