PostgreSQL registry backend unable to connect error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Low
|
Unassigned |
Bug Description
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
Changed in glance: | |
status: | New → Incomplete |
importance: | Undecided → Low |
tags: | added: postgres |
tags: |
added: postgresql removed: postgres |
Marc,
1. Was a glance db created in postgres
2. Are there any tables in the glance db
If there are not any tables, you might have to run "glance-manage db_sync"
--justin