Advertisement
omgomg

Untitled

May 10th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. [root@openstack-01 keystone]# cinder --debug create --display_name test 1
  2. connect: (127.0.0.1, 5000) ************
  3. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 101\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n'
  4. send: '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
  5. reply: 'HTTP/1.1 200 OK\r\n'
  6. header: Vary: X-Auth-Token
  7. header: Content-Type: application/json
  8. header: Content-Length: 2372
  9. header: Date: Fri, 10 May 2013 15:53:32 GMT
  10. connect: (localhost, 8776) ************
  11. connect fail: (localhost, 8776)
  12. connect: (localhost, 8776) ************
  13. send: u'POST /v1/219aa20bbaee4291a73ab5476bfbc1b0/volumes HTTP/1.1\r\nHost: localhost:8776\r\nContent-Length: 267\r\nx-auth-project-id: demo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 2e27300af7af4e0796387e07d3b7460c\r\nuser-agent: python-cinderclient\r\ncontent-type: application/json\r\n\r\n'
  14. send: '{"volume": {"status": "creating", "availability_zone": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "test", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'
  15. reply: 'HTTP/1.1 401 Unauthorized\r\n'
  16. header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
  17. header: Content-Length: 276
  18. header: Content-Type: text/plain; charset=UTF-8
  19. header: Date: Fri, 10 May 2013 15:53:32 GMT
  20. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 101\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n'
  21. send: '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
  22. reply: 'HTTP/1.1 200 OK\r\n'
  23. header: Vary: X-Auth-Token
  24. header: Content-Type: application/json
  25. header: Content-Length: 2372
  26. header: Date: Fri, 10 May 2013 15:53:32 GMT
  27. send: u'POST /v1/219aa20bbaee4291a73ab5476bfbc1b0/volumes HTTP/1.1\r\nHost: localhost:8776\r\nContent-Length: 267\r\nx-auth-project-id: demo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 2e27300af7af4e0796387e07d3b7460c\r\nuser-agent: python-cinderclient\r\ncontent-type: application/json\r\n\r\n'
  28. send: '{"volume": {"status": "creating", "availability_zone": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "test", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'
  29. reply: 'HTTP/1.1 401 Unauthorized\r\n'
  30. header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
  31. header: Content-Length: 276
  32. header: Content-Type: text/plain; charset=UTF-8
  33. header: Date: Fri, 10 May 2013 15:53:32 GMT
  34. DEBUG (shell:473) n/a (HTTP 401)
  35. Traceback (most recent call last):
  36. File "/usr/lib/python2.6/site-packages/cinderclient/shell.py", line 470, in main
  37. OpenStackCinderShell().main(sys.argv[1:])
  38. File "/usr/lib/python2.6/site-packages/cinderclient/shell.py", line 421, in main
  39. args.func(self.cs, args)
  40. File "/usr/lib/python2.6/site-packages/cinderclient/v1/shell.py", line 231, in do_create
  41. metadata=volume_metadata)
  42. File "/usr/lib/python2.6/site-packages/cinderclient/v1/volumes.py", line 138, in create
  43. return self._create('/volumes', body, 'volume')
  44. File "/usr/lib/python2.6/site-packages/cinderclient/base.py", line 149, in _create
  45. resp, body = self.api.client.post(url, body=body)
  46. File "/usr/lib/python2.6/site-packages/cinderclient/client.py", line 141, in post
  47. return self._cs_request(url, 'POST', **kwargs)
  48. File "/usr/lib/python2.6/site-packages/cinderclient/client.py", line 135, in _cs_request
  49. raise ex
  50. Unauthorized: n/a (HTTP 401)
  51. ERROR: n/a (HTTP 401)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement