Error not meaningful if glance-registry service not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Sulochan Acharya |
Bug Description
If the glance-api service is running but the glance-registry service is not, the user gets the following error message:
$ glance index
Failed to show index. Got error:
The request returned 500 Internal Server Error
The response body:
Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
request, **action_args)
File "/usr/lib/
return method(*args, **kwargs)
File "/usr/lib/
images = registry.
File "/usr/lib/
return c.get_images(
File "/usr/lib/
res = self.do_
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
headers=
File "/usr/lib/
return func(self, method, url, body, headers)
File "/usr/lib/
raise exception.
ClientConnectio
Details: [Errno 111] ECONNREFUSED
It would be much more helpful if the error was something that more explicitly described the problem to the user, such as:
$ glance index
ERROR: The glance-api service was not able to connect to the glance-registry service.
Possible sources of error:
* the glance-registry service is not running
* In glance-api.conf, the registry_host or registry_port settings are incorrect
Changed in glance: | |
assignee: | nobody → Sulochan Acharya (sulochan-acharya) |
Changed in glance: | |
milestone: | none → folsom-3 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-3 → 2012.2 |
Thanks for filing this, I definitely agree.