Created
August 8, 2013 20:41
-
-
Save rupakg/6188502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template I am trying to use: | |
https://github.com/rupakg/heat-hpcloud/blob/master/templates/simple_single_instance_only.template | |
Call I am making: | |
heat -d stack-create teststack \ | |
-f ~/heat-hpcloud/templates/simple_single_instance_only.template \ | |
-P "InstanceType=standard.large;KeyName=heat_key;ImageId=U1204-HeatCfn" | |
Error I get: | |
HTTP/1.1 400 Bad Request | |
date: Thu, 08 Aug 2013 20:35:59 GMT | |
content-length: 1080 | |
content-type: application/json; charset=UTF-8 | |
{"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "{'Error': 'Provided KeyName is not registered with nova'}", "traceback": "Traceback (most recent call last):\n\n File \"/home/ubuntu/heat-hpcloud/heat/heat/openstack/common/rpc/amqp.py\", line 424, in _process_data\n **args)\n\n File \"/home/ubuntu/heat-hpcloud/heat/heat/openstack/common/rpc/dispatcher.py\", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n\n File \"/home/ubuntu/heat-hpcloud/heat/heat/engine/service.py\", line 54, in wrapped\n return func(self, ctx, *args, **kwargs)\n\n File \"/home/ubuntu/heat-hpcloud/heat/heat/engine/service.py\", line 247, in create_stack\n stack.validate()\n\n File \"/home/ubuntu/heat-hpcloud/heat/heat/engine/parser.py\", line 263, in validate\n raise StackValidationFailed(message=result)\n\nStackValidationFailed: {'Error': 'Provided KeyName is not registered with nova'}\n", "type": "StackValidationFailed"}, "title": "Bad Request"} | |
ERROR: {'Error': 'Provided KeyName is not registered with nova'} | |
I have checked the heat engine log and I see this error: | |
2013-08-08 20:35:57.659 26080 INFO heat.engine.resource [-] Validating Instance "Instance" | |
2013-08-08 20:35:57.661 26080 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTPS connection (1): region-b.geo-1.identity.hpcloudsvc.com | |
2013-08-08 20:35:58.022 26080 DEBUG requests.packages.urllib3.connectionpool [-] "POST /v2.0/tokens HTTP/1.1" 200 14379 _make_request /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:296 | |
2013-08-08 20:35:58.026 26080 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTPS connection (1): region-b.geo-1.identity.hpcloudsvc.com | |
2013-08-08 20:35:58.581 26080 DEBUG requests.packages.urllib3.connectionpool [-] "POST /v2.0/tokens HTTP/1.1" 200 14379 _make_request /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:296 | |
2013-08-08 20:35:58.585 26080 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTPS connection (1): az-1.region-a.geo-1.compute.hpcloudsvc.com | |
2013-08-08 20:35:59.194 26080 DEBUG requests.packages.urllib3.connectionpool [-] "GET /v1.1/REDACTED/os-keypairs HTTP/1.1" 200 2225 _make_request /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:296 | |
2013-08-08 20:35:59.197 26080 ERROR heat.openstack.common.rpc.amqp [-] Exception during message handling | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp Traceback (most recent call last): | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp File "/home/ubuntu/heat-hpcloud/heat/heat/openstack/common/rpc/amqp.py", line 424, in _process_data | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp **args) | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp File "/home/ubuntu/heat-hpcloud/heat/heat/openstack/common/rpc/dispatcher.py", line 172, in dispatch | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs) | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp File "/home/ubuntu/heat-hpcloud/heat/heat/engine/service.py", line 54, in wrapped | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp return func(self, ctx, *args, **kwargs) | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp File "/home/ubuntu/heat-hpcloud/heat/heat/engine/service.py", line 247, in create_stack | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp stack.validate() | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp File "/home/ubuntu/heat-hpcloud/heat/heat/engine/parser.py", line 263, in validate | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp raise StackValidationFailed(message=result) | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp StackValidationFailed: {'Error': 'Provided KeyName is not registered with nova'} | |
2013-08-08 20:35:59.197 26080 TRACE heat.openstack.common.rpc.amqp | |
2013-08-08 20:35:59.198 26080 ERROR heat.openstack.common.rpc.common [-] Returning exception {'Error': 'Provided KeyName is not registered with nova'} to caller | |
2013-08-08 20:35:59.198 26080 ERROR heat.openstack.common.rpc.common [-] ['Traceback (most recent call last):\n', ' File "/home/ubuntu/heat-hpcloud/heat/heat/openstack/common/rpc/amqp.py", line 424, in _process_data\n **args)\n', ' File "/home/ubuntu/heat-hpcloud/heat/heat/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n', ' File "/home/ubuntu/heat-hpcloud/heat/heat/engine/service.py", line 54, in wrapped\n return func(self, ctx, *args, **kwargs)\n', ' File "/home/ubuntu/heat-hpcloud/heat/heat/engine/service.py", line 247, in create_stack\n stack.validate()\n', ' File "/home/ubuntu/heat-hpcloud/heat/heat/engine/parser.py", line 263, in validate\n raise StackValidationFailed(message=result)\n', "StackValidationFailed: {'Error': 'Provided KeyName is not registered with nova'}\n"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment