Advertisement
Guest User

Untitled

a guest
Nov 30th, 2016
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.19 KB | None | 0 0
  1. heat --debug stack-create -f single-instance.yaml single-12
  2. DEBUG (session) REQ: curl -g -i -X GET http://test-keystone-controller.net-10-66-0-0.tt3.com:35357 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  3. INFO (connectionpool) Starting new HTTP connection (1): test-keystone-controller.net-10-66-0-0.tt3.com
  4. DEBUG (connectionpool) "GET / HTTP/1.1" 300 301
  5. DEBUG (session) RESP: [300] Date: Wed, 30 Nov 2016 12:16:55 GMT Server: Apache/2.4.6 (CentOS) Vary: X-Auth-Token Content-Length: 301 Connection: close Content-Type: application/json
  6. RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://test-keystone-controller.net-10-66-0-0.tt3.com:35357/v3/", "rel": "self"}]}]}}
  7.  
  8. DEBUG (base) Making authentication request to http://test-keystone-controller.net-10-66-0-0.tt3.com:35357/v3/auth/tokens
  9. INFO (connectionpool) Resetting dropped connection: test-keystone-controller.net-10-66-0-0.tt3.com
  10. DEBUG (connectionpool) "POST /v3/auth/tokens HTTP/1.1" 201 6193
  11. DEBUG (session) REQ: curl -g -i -X POST http://test-keystone-controller.net-10-66-0-0.tt3.com:8004/v1/10c17b4ed09e435999d70d1864507d5f/stacks -H "User-Agent: python-heatclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a161f0249ae54b070f0e2ac2fe3950954811c710" -d '{"files": {}, "disable_rollback": true, "parameters": {}, "stack_name": "single-12", "environment": {}, "template": {"outputs": {"instance_name": {"description": "Name of the instance", "value": {"get_attr": ["my_instance", "name"]}}, "instance_ip": {"description": "IP address of the instance", "value": {"get_attr": ["my_instance", "first_address"]}}}, "heat_template_version": "2013-05-23", "description": "Simple template to deploy a single compute instance", "parameters": {"private_network": {"default": "test", "type": "string", "description": "Network to attach instance to.", "label": "Private network name or ID"}, "image": {"default": "cirros", "type": "string", "description": "Image to be used for compute instance", "label": "Image name or ID"}, "flavor": {"default": "m1.small", "type": "string", "description": "Type of instance (flavor) to be used", "label": "Flavor"}, "key": {"default": "testkey", "type": "string", "description": "Name of key-pair to be used for compute instance", "label": "Key name"}}, "resources": {"my_instance": {"type": "OS::Nova::Server", "properties": {"user_data_format": "RAW", "key_name": {"get_param": "key"}, "image": {"get_param": "image"}, "user_data": "#!/bin/sh\necho \"Hello, World!\"\n", "flavor": {"get_param": "flavor"}, "networks": [{"network": {"get_param": "private_network"}}]}}}}}'
  12. INFO (connectionpool) Starting new HTTP connection (1): test-keystone-controller.net-10-66-0-0.tt3.com
  13. DEBUG (connectionpool) "POST /v1/10c17b4ed09e435999d70d1864507d5f/stacks HTTP/1.1" 500 2946
  14. DEBUG (session) RESP: [500] Content-Type: application/json; charset=UTF-8 Content-Length: 2946 X-Openstack-Request-Id: req-39edc23b-d23b-42d0-a8f5-6840c6291bf1 Date: Wed, 30 Nov 2016 12:16:55 GMT Connection: keep-alive
  15. RESP BODY: {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "Remote error: BadRequest Expecting to find id or name in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-587b5657-390f-4fcd-958f-b4573c547b3d)\n[u'", "traceback": "Traceback (most recent call last):\\n', u' File \"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py\", line 142, in _dispatch_and_reply\\n executor_callback))\\n', u' File \"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py\", line 186, in _dispatch\\n executor_callback)\\n', u' File \"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py\", line 129, in _do_dispatch\\n result = func(ctxt, **new_args)\\n', u' File \"/usr/lib/python2.7/site-packages/osprofiler/profiler.py\", line 105, in wrapper\\n return f(*args, **kwargs)\\n', u' File \"/usr/lib/python2.7/site-packages/heat/common/context.py\", line 308, in wrapped\\n return func(self, ctx, *args, **kwargs)\\n', u' File \"/usr/lib/python2.7/site-packages/heat/engine/service.py\", line 729, in create_stack\\n stack_id = stack.store()\\n', u' File \"/usr/lib/python2.7/site-packages/osprofiler/profiler.py\", line 105, in wrapper\\n return f(*args, **kwargs)\\n', u' File \"/usr/lib/python2.7/site-packages/heat/engine/stack.py\", line 524, in store\\n trust_ctx = keystone.create_trust_context()\\n', u' File \"/usr/lib/python2.7/site-packages/heat/common/heat_keystoneclient.py\", line 210, in create_trust_context\\n self.session)\\n', u' File \"/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py\", line 352, in get_user_id\\n return self.get_access(session).user_id\\n', u' File \"/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py\", line 240, in get_access\\n self.auth_ref = self.get_auth_ref(session)\\n', u' File \"/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/base.py\", line 190, in get_auth_ref\\n authenticated=False, log=False, **rkwargs)\\n', u' File \"/usr/lib/python2.7/site-packages/keystoneclient/session.py\", line 501, in post\\n return self.request(url, \\'POST\\', **kwargs)\\n', u' File \"/usr/lib/python2.7/site-packages/keystoneclient/utils.py\", line 337, in inner\\n return func(*args, **kwargs)\\n', u' File \"/usr/lib/python2.7/site-packages/keystoneclient/session.py\", line 401, in request\\n raise exceptions.from_response(resp, method, url)\\n', u'BadRequest: Expecting to find id or name in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-587b5657-390f-4fcd-958f-b4573c547b3d)\\n'].", "type": "RemoteError"}, "title": "Internal Server Error"}
  16.  
  17. Traceback (most recent call last):
  18. File "/bin/heat", line 10, in <module>
  19. sys.exit(main())
  20. File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 705, in main
  21. HeatShell().main(args)
  22. File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 655, in main
  23. args.func(client, args)
  24. File "/usr/lib/python2.7/site-packages/heatclient/v1/shell.py", line 140, in do_stack_create
  25. hc.stacks.create(**fields)
  26. File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 136, in create
  27. data=kwargs, headers=headers)
  28. File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in post
  29. return self.request(url, 'POST', **kwargs)
  30. File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 317, in request
  31. raise exc.from_response(resp)
  32. heatclient.exc.HTTPInternalServerError: ERROR: Remote error: BadRequest Expecting to find id or name in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-587b5657-390f-4fcd-958f-b4573c547b3d)
  33. [u'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement