Running 5ae43a0e15d8cdb0f217e5dd143834915c7d8fe6, I get the following when doing a nova image-list.
2011-10-20 22:03:36 DEBUG [routes.middleware] Matched GET /images/detail
2011-10-20 22:03:36 DEBUG [routes.middleware] Route path: '/images/detail', defaults: {'action': u'detail', 'controller': <glance.common.wsgi.Resource object at 0x1ad0450>}
2011-10-20 22:03:36 DEBUG [routes.middleware] Match dict: {'action': u'detail', 'controller': <glance.common.wsgi.Resource object at 0x1ad0450>}
2011-10-20 22:03:37 DEBUG [glance.api.middleware.cache] Tee'ing image 'detail' into cache
2011-10-20 22:03:37 DEBUG [eventlet.wsgi.server] Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/glance/common/wsgi.py", line 169, in __call__
response = req.get_response(self.application)
File "/usr/lib/pymodules/python2.6/webob/request.py", line 919, in get_response
application, catch_exc_info=False)
File "/usr/lib/pymodules/python2.6/webob/request.py", line 887, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/python2.6/dist-packages/keystone/middleware/auth_token.py", line 189, in __call__
return self._forward_request(env, start_response, proxy_headers)
File "/usr/lib/python2.6/dist-packages/keystone/middleware/auth_token.py", line 321, in _forward_request
return self.app(env, start_response)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/glance/common/wsgi.py", line 169, in __call__
response = req.get_response(self.application)
File "/usr/lib/pymodules/python2.6/webob/request.py", line 919, in get_response
application, catch_exc_info=False)
File "/usr/lib/pymodules/python2.6/webob/request.py", line 887, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/glance/common/wsgi.py", line 170, in __call__
return self.process_response(response)
File "/usr/lib/pymodules/python2.6/glance/api/middleware/cache.py", line 141, in process_response
image_id)
File "/usr/lib/pymodules/python2.6/glance/registry/__init__.py", line 87, in get_image_metadata
return c.get_image(image_id)
File "/usr/lib/pymodules/python2.6/glance/registry/client.py", line 69, in get_image
data = json.loads(res.read())['image']
KeyError: 'image'
Problem is the regex is matching /images/detail and thinking "detail" is an image id...