Ask Your Question
0

glance 401 unauththorized

asked 2012-07-17 12:25:39 -0500

sncel-2008 gravatar image

I followed http://docs.openstack.org/essex/openstack-compute/install/yum/content/install-glance.html (http://docs.openstack.org/essex/opens...) to get glance installed and configured ,but get erros as follow:

glance --os_username=adminUser --os_password=secretword --os_tenant=openstackDemo --os_auth_url=http://localhost:5000/v2.0 add name="tty-linux-kernel" disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz Uploading image 'tty-linux-kernel' Failed to add image. Got error: The request returned 500 Internal Server Error

The response body: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/eventlet/wsgi.py", line 336, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 279, in __call__ response = req.get_response(self.application) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/request.py", line 1053, in get_response application, catch_exc_info=False) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/request.py", line 1022, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/python2.6/site-packages/keystone/middleware/auth_token.py", line 176, in __call__ return self.app(env, start_response) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 279, in __call__ response = req.get_response(self.application) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/request.py", line 1053, in get_response application, catch_exc_info=False) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/request.py", line 1022, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 159, in __call__ return resp(environ, start_response) File "/usr/lib/python2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py", line 131, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 159, in __call__ return resp(environ, start_response) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 477, in __call__ request, *action_args) File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 494, in dispatch return method(args, *kwargs) File "/usr/lib/python2.6/site-packages/glance/api/v1/images ... (more)

edit retag flag offensive close merge delete

12 answers

Sort by ยป oldest newest most voted
0

answered 2012-07-23 16:58:29 -0500

jaypipes gravatar image

Joeu, try adding -S keystone to your glance CLI tool calls. That's the only thing I can think of.. everything else seems to be correct!

edit flag offensive delete link more
0

answered 2012-07-24 03:22:25 -0500

s-rain gravatar image

Hello, Please check admin_token in keystone.conf. You should set the same value in glance-api-paste.ini and glance-registry-paste.ini.

Rain

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-07-17 12:25:39 -0500

Seen: 158 times

Last updated: Jul 24 '12