- 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
- HTTP/1.1 500 Internal Server Error
- date: Wed, 17 Oct 2012 16:48:10 GMT
- content-length: 4028
- content-type: text/plain
- connection: close
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, in handle_one_response
- result = self.application(self.environ, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
- resp = self.call_func(req, *args, **self.kwargs)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
- return self.func(req, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
- response = req.get_response(self.application)
- File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
- application, catch_exc_info=False)
- File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
- app_iter = application(self.environ, start_response)
- File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 278, in __call__
- return self.app(env, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
- resp = self.call_func(req, *args, **self.kwargs)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
- return self.func(req, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
- response = req.get_response(self.application)
- File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
- application, catch_exc_info=False)
- File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
- app_iter = application(self.environ, start_response)
- File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
- return app(environ, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
- return resp(environ, start_response)
- File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
- response = self.app(environ, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
- return resp(environ, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
- resp = self.call_func(req, *args, **self.kwargs)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
- return self.func(req, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 532, in __call__
- request, **action_args)
- File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 549, in dispatch
- return method(*args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 203, in detail
- images = registry.get_images_detail(req.context, **params)
- File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py", line 128, in get_images_detail
- return c.get_images_detailed(**kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 113, in get_images_detailed
- res = self.do_request("GET", "/images/detail", params=params)
- File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 89, in do_request
- action, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 66, in wrapped
- return func(self, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 444, in do_request
- headers=headers)
- File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 80, in wrapped
- return func(self, method, url, body, headers)
- File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 566, in _do_request
- raise exception.NotAuthenticated(res.read())
- NotAuthenticated: 401 Unauthorized
- 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.
- Authentication required
- Request returned failure status.
- None
- HTTPInternalServerError (HTTP 500)