Advertisement
Guest User

Untitled

a guest
Feb 8th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. root@server10326:/etc/keystone# curl -d '{"auth": {"tenantName": "Admin", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://109.200.204.5:35357/v2.0/tokens | python -mjson.tool
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 100 1056 100 948 100 108 18237 2077 --:--:-- --:--:-- --:--:-- 18588
  5. {
  6. "access": {
  7. "serviceCatalog": [
  8. {
  9. "endpoints": [
  10. {
  11. "adminURL": "http://109.200.204.5:8774/v1.1/2",
  12. "internalURL": "http://109.200.204.5:8774/v1.1/2",
  13. "publicURL": "http://109.200.204.5:8774/v1.1/2",
  14. "region": "RegionOne"
  15. }
  16. ],
  17. "name": "nova",
  18. "type": "compute"
  19. },
  20. {
  21. "endpoints": [
  22. {
  23. "adminURL": "http://109.200.204.5:9292/v1",
  24. "internalURL": "http://109.200.204.5:9292/v1",
  25. "publicURL": "http://109.200.204.5:9292/v1",
  26. "region": "RegionOne"
  27. }
  28. ],
  29. "name": "glance",
  30. "type": "image-service"
  31. },
  32. {
  33. "endpoints": [
  34. {
  35. "adminURL": "http://109.200.204.5:35357/v2.0",
  36. "internalURL": "http://109.200.204.5:5000/v2.0",
  37. "publicURL": "http://109.200.204.5:5000/v2.0",
  38. "region": "RegionOne"
  39. }
  40. ],
  41. "name": "keystone",
  42. "type": "identity"
  43. }
  44. ],
  45. "token": {
  46. "expires": "2015-02-05T00:00:00",
  47. "id": "11121314151617181920",
  48. "tenant": {
  49. "id": "2",
  50. "name": "Admin"
  51. }
  52. },
  53. "user": {
  54. "id": "1",
  55. "name": "adminUser",
  56. "roles": [
  57. {
  58. "id": "1",
  59. "name": "Admin",
  60. "tenantId": "2"
  61. },
  62. {
  63. "id": "1",
  64. "name": "Admin"
  65. }
  66. ]
  67. }
  68. }
  69. }
  70. root@server10326:/etc/keystone# glance details -A 11121314151617181920
  71. Failed to show details. Got error:
  72. Internal Server error: Traceback (most recent call last):
  73. File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
  74. result = self.application(self.environ, start_response)
  75. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
  76. resp = self.call_func(req, *args, **self.kwargs)
  77. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
  78. return self.func(req, *args, **kwargs)
  79. File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 113, in __call__
  80. response = req.get_response(self.application)
  81. File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
  82. application, catch_exc_info=False)
  83. File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
  84. app_iter = application(self.environ, start_response)
  85. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
  86. resp = self.call_func(req, *args, **self.kwargs)
  87. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
  88. return self.func(req, *args, **kwargs)
  89. File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 110, in __call__
  90. response = self.process_request(req)
  91. File "/usr/lib/python2.7/dist-packages/glance/common/context.py", line 104, in process_request
  92. raise exception.NotAuthorized()
  93. NotAuthorized: None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement