Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizon> Error: Unable to retrieve images. #43

Closed
ChristianKniep opened this issue May 8, 2013 · 3 comments
Closed

Horizon> Error: Unable to retrieve images. #43

ChristianKniep opened this issue May 8, 2013 · 3 comments

Comments

@ChristianKniep
Copy link

Great job! I try to get it to work on an one node / one NIC setup (see my fork).
Everything seems to work kind of fine, but under horizon I can not see any images.'glance image-list' get the image correctly.
Where to look for hints?

@ChristianKniep
Copy link
Author

OK, the error seems to be in the authorization process.
Hmm... I used chrome and firefox.

[Wed May 08 20:08:46 2013] [error] Request returned failure status.
[Wed May 08 20:08:46 2013] [error] \x1b[31;1mRecoverable error: Traceback (most recent call last):
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 383, in handle_one_response
[Wed May 08 20:08:46 2013] [error] result = self.application(self.environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in call
[Wed May 08 20:08:46 2013] [error] resp = self.call_func(req, _args, *_self.kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
[Wed May 08 20:08:46 2013] [error] return self.func(req, _args, *_kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 333, in call
[Wed May 08 20:08:46 2013] [error] response = req.get_response(self.application)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
[Wed May 08 20:08:46 2013] [error] application, catch_exc_info=False)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
[Wed May 08 20:08:46 2013] [error] app_iter = application(self.environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in call
[Wed May 08 20:08:46 2013] [error] return self.app(env, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in call
[Wed May 08 20:08:46 2013] [error] resp = self.call_func(req, _args, *_self.kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
[Wed May 08 20:08:46 2013] [error] return self.func(req, _args, *_kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 333, in call
[Wed May 08 20:08:46 2013] [error] response = req.get_response(self.application)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
[Wed May 08 20:08:46 2013] [error] application, catch_exc_info=False)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
[Wed May 08 20:08:46 2013] [error] app_iter = application(self.environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in call
[Wed May 08 20:08:46 2013] [error] return app(environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in call
[Wed May 08 20:08:46 2013] [error] return resp(environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in call
[Wed May 08 20:08:46 2013] [error] response = self.app(environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in call
[Wed May 08 20:08:46 2013] [error] return resp(environ, start_response)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in call
[Wed May 08 20:08:46 2013] [error] resp = self.call_func(req, _args, *_self.kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
[Wed May 08 20:08:46 2013] [error] return self.func(req, _args, *_kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 540, in call
[Wed May 08 20:08:46 2013] [error] request, **action_args)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 557, in dispatch
[Wed May 08 20:08:46 2013] [error] return method(_args, *_kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 204, in detail
[Wed May 08 20:08:46 2013] [error] images = registry.get_images_detail(req.context, **params)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/registry/init.py", line 133, in get_images_detail
[Wed May 08 20:08:46 2013] [error] return c.get_images_detailed(**kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 115, in get_images_detailed
[Wed May 08 20:08:46 2013] [error] res = self.do_request("GET", "/images/detail", params=params)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 90, in do_request
[Wed May 08 20:08:46 2013] [error] *_kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 65, in wrapped
[Wed May 08 20:08:46 2013] [error] return func(self, *args, *_kwargs)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 376, in do_request
[Wed May 08 20:08:46 2013] [error] headers=headers)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 79, in wrapped
[Wed May 08 20:08:46 2013] [error] return func(self, method, url, body, headers)
[Wed May 08 20:08:46 2013] [error] File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 499, in _do_request
[Wed May 08 20:08:46 2013] [error] raise exception.NotAuthenticated(res.read())
[Wed May 08 20:08:46 2013] [error] NotAuthenticated: 401 Unauthorized
[Wed May 08 20:08:46 2013] [error] 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.
[Wed May 08 20:08:46 2013] [error] Authentication required
[Wed May 08 20:08:46 2013] [error](HTTP 500)\x1b[0m

@hrushig
Copy link

hrushig commented May 8, 2013

Multiple things here:

  1. Ensure that the credentials you set up in the creds file and sourced in matches to the one you logged in the horizon
  2. All the conf file related to glance must have right keystone authentication urls and creds. Review them once

@ChristianKniep
Copy link
Author

Ahh, here we go:
tail -n2 /etc/glance/glance-registry-paste.ini
admin_user = glance
admin_password = service_passaste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
Screw deterministic informatics, there is always a reasons...

Sorry for bothering you, again - great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants