Glance with postgres db gives connection refused error
Hi,
I've got glance v2011.3-dev installed using swift as baskend, everything works fine if I use the default sqlite database. If I try change to postgres then I get the following error:
root@ares:~# glance details
Failed to show details. Got error:
Internal Server error: 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 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/
"server. Got error: %s" % e)
ClientConnectio
Here is a postgres bit in my glance config:
#sql_connection = sqlite:
sql_connection = postgresql:
Postgres is listening on 172.16.16.10, I'm able to connect via command line to this db from the glance host (it's the same host as the db). And nova uses the same postgres db without any issue.
Any ideas about this one?
Regards,
Marc
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Glance Edit question
- Assignee:
- Jay Pipes Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Marc for more information if necessary.