Ask Your Question
0

glance-registry fails to start

asked 2012-07-26 06:01:49 -0500

xiamianderen gravatar image

I followed the intallation guide on CentOS 6.2 and finished glance installation.

When use glance index command. I got the error like Failed to show index. 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 284, 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 284, 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 482, in __call__ request, *action_args) File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 499, in dispatch return method(args, *kwargs) File "/usr/lib/python2.6/site-packages/glance/api/v1/images.py", line 134, in index images = registry.get_images_list(req.context, *params) File "/usr/lib/python2.6/site-packages/glance/registry/__init__.py", line 129, in get_images_list return c.get_images(kwargs) File "/usr/lib/python2.6 ... (more)

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2012-08-16 09:01:15 -0500

zhyuan-zhou gravatar image

I have the same problem with openstack-glance-2012.1.1-1.el6.noarch. Anyone solved it?

edit flag offensive delete link more
0

answered 2012-07-31 09:42:31 -0500

Make sure your sql_connection is set properly in the glance-registry.conf. It needs to have the correct database username, password and host IP address. Please check those.

edit flag offensive delete link more
0

answered 2012-07-27 06:55:44 -0500

koolhead17 gravatar image

@xmdr I have not used Centos setup but possible debugging way could be.

a) Check if the keystone middleware is correctly configured for glance and it matches with your keystone credentials. b) Try re-installing glance-registry and try netstat and see if its running and listening to the port.

edit flag offensive delete link more
0

answered 2012-09-22 03:48:55 -0500

Met the same problem.

If you start it directly by /user/bin/glance-registry --config-file /etc/glance-registry.conf --debug --verbose , it works well.

But when start with /etc/init.d/openstack-glance-registry start , this process will be disappeared.

Don't find out the cause of failure using /etc/init.d/openstack-glance-registry.

edit flag offensive delete link more
0

answered 2012-11-16 12:33:04 -0500

As no solution is described here and I ran in exactly the same issue, here is what I did to solve the problem on my platform (CentOS6.3):

The registry log file didn't belong to glance user:

chown glance.glance /var/log/glance/registry.log

corrected the installation issue.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-07-26 06:01:49 -0500

Seen: 99 times

Last updated: Nov 16 '12