Advertisement
omgomg

Untitled

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