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 ...