1. curl -i -X GET -H 'X-Auth-Token: ec97da81151546ec89de2cef439a77a5' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://10.176.4.2:9292/v1/images/detail?limit=20
  2. HTTP/1.1 500 Internal Server Error
  3. date: Wed, 17 Oct 2012 16:48:10 GMT
  4. content-length: 4028
  5. content-type: text/plain
  6. connection: close
  7. Traceback (most recent call last):
  8. File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, in handle_one_response
  9. result = self.application(self.environ, start_response)
  10. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
  11. resp = self.call_func(req, *args, **self.kwargs)
  12. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
  13. return self.func(req, *args, **kwargs)
  14. File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
  15. response = req.get_response(self.application)
  16. File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
  17. application, catch_exc_info=False)
  18. File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
  19. app_iter = application(self.environ, start_response)
  20. File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 278, in __call__
  21. return self.app(env, start_response)
  22. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
  23. resp = self.call_func(req, *args, **self.kwargs)
  24. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
  25. return self.func(req, *args, **kwargs)
  26. File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
  27. response = req.get_response(self.application)
  28. File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
  29. application, catch_exc_info=False)
  30. File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
  31. app_iter = application(self.environ, start_response)
  32. File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
  33. return app(environ, start_response)
  34. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  35. return resp(environ, start_response)
  36. File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
  37. response = self.app(environ, start_response)
  38. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
  39. return resp(environ, start_response)
  40. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
  41. resp = self.call_func(req, *args, **self.kwargs)
  42. File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
  43. return self.func(req, *args, **kwargs)
  44. File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 532, in __call__
  45. request, **action_args)
  46. File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 549, in dispatch
  47. return method(*args, **kwargs)
  48. File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 203, in detail
  49. images = registry.get_images_detail(req.context, **params)
  50. File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py", line 128, in get_images_detail
  51. return c.get_images_detailed(**kwargs)
  52. File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 113, in get_images_detailed
  53. res = self.do_request("GET", "/images/detail", params=params)
  54. File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 89, in do_request
  55. action, **kwargs)
  56. File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 66, in wrapped
  57. return func(self, *args, **kwargs)
  58. File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 444, in do_request
  59. headers=headers)
  60. File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 80, in wrapped
  61. return func(self, method, url, body, headers)
  62. File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 566, in _do_request
  63. raise exception.NotAuthenticated(res.read())
  64. NotAuthenticated: 401 Unauthorized
  65. This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
  66. Authentication required
  67. Request returned failure status.
  68. None
  69. HTTPInternalServerError (HTTP 500)