[Openstack] error when glance command

Jay Pipes jaypipes at gmail.com
Tue Oct 18 13:45:13 UTC 2011


Hi!

In the future, please use Launchpad's bug reporting area to report bugs :)

https://bugs.launchpad.net/glance/+filebug

It looks like from below, you have not set up your
glance-registry.conf correctly.

Please see here for information on setting up Glance servers with
Keystone support:

http://glance.openstack.org/authentication.html#configuring-glance-registry-to-use-keystone

Cheers!
-jay

2011/10/18 DeadSun <mwjpiero at gmail.com>:
> I use apt-get install nova, glance
> use git to install keystone
> now I use glance via keystone, for example upload image or delete image
> error show:
> Failed to show details. Got error:
> Internal Server error: Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, 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 208, in call_func
> return self.func(req, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 113, in
> __call__
> response = req.get_response(self.application)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in
> get_response
> application, catch_exc_info=False)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in
> call_application
> app_iter = application(self.environ, start_response)
> File
> "/usr/local/lib/python2.7/dist-packages/keystone-1.0-py2.7.egg/keystone/middleware/auth_token.py",
> line 186, in __call__
> return self._forward_request(env, start_response, proxy_headers)
> File
> "/usr/local/lib/python2.7/dist-packages/keystone-1.0-py2.7.egg/keystone/middleware/auth_token.py",
> line 312, in _forward_request
> 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 208, in call_func
> return self.func(req, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 113, in
> __call__
> response = req.get_response(self.application)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in
> get_response
> application, catch_exc_info=False)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in
> call_application
> app_iter = application(self.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/pymodules/python2.7/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 208, in call_func
> return self.func(req, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 311, in
> __call__
> request, **action_args)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 328, in
> dispatch
> return method(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 147,
> in detail
> **params)
> File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py", line
> 42, in get_images_detail
> return c.get_images_detailed(**kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 62,
> in get_images_detailed
> res = self.do_request("GET", "/images/detail", params=params)
> File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 140,
> in do_request
> method, action, body=body, headers=headers, params=params)
> File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 232,
> in _do_request
> raise Exception("Internal Server error: %s" % res.read())
> Exception: Internal Server error: Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in
> handle_one_response
> result = self.application(self.environ, start_response)
> File
> "/usr/local/lib/python2.7/dist-packages/keystone-1.0-py2.7.egg/keystone/middleware/auth_token.py",
> line 186, in __call__
> return self._forward_request(env, start_response, proxy_headers)
> File
> "/usr/local/lib/python2.7/dist-packages/keystone-1.0-py2.7.egg/keystone/middleware/auth_token.py",
> line 312, in _forward_request
> 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 208, in call_func
> return self.func(req, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 113, in
> __call__
> response = req.get_response(self.application)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in
> get_response
> application, catch_exc_info=False)
> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in
> call_application
> app_iter = application(self.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/pymodules/python2.7/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 208, in call_func
> return self.func(req, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 311, in
> __call__
> request, **action_args)
> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 328, in
> dispatch
> return method(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/glance/registry/server.py", line 112,
> in detail
> images = self._get_images(req.context, **params)
> File "/usr/lib/python2.7/dist-packages/glance/registry/server.py", line 62,
> in _get_images
> return db_api.image_get_all(context, **params)
> File "/usr/lib/python2.7/dist-packages/glance/registry/db/api.py", line 249,
> in image_get_all
> marker_image = image_get(context, marker)
> File "/usr/lib/python2.7/dist-packages/glance/registry/db/api.py", line 158,
> in image_get
> if not context.is_image_visible(image):
> AttributeError: 'RequestContext' object has no attribute 'is_image_visible'
>
> --
> 非淡薄无以明志,非宁静无以致远
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>




More information about the Openstack mailing list