python-psycopg2 is not installed when using PostgreSQL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When PostgreSQL is enabled, sqlalchemy requires psycopg2, but devstack does not install it automatically.
This results in a failure of stack.sh. (The detail is shown below)
It is better to install psycopg2 python module when installing postgresql package.
-----
logs/screen-
(keystone.
(keystone.
Traceback (most recent call last):
File "/opt/stack/
result = method(context, **params)
File "/opt/stack/
service_id, service_ref)
File "/opt/stack/
return f(*args, **kw)
File "/opt/stack/
session = self.get_session()
File "/opt/stack/
self._engine = self.get_engine()
File "/opt/stack/
engine = new_engine()
File "/opt/stack/
engine = sql.create_
File "/usr/lib/
return strategy.
File "/usr/lib/
dbapi = dialect_
File "/usr/lib/
psycopg = __import_
ImportError: No module named psycopg2
Changed in devstack: | |
status: | Invalid → Confirmed |
Sorry this is my mistake.