Skip to content

Commit 7dd890d

Browse files
Install python db client if a db backend is configured
If `DATABASE_TYPE` is configured in `local.conf`, the database backend is currently configured with `initialize_database_backends` even if no database backend is enabled. On a multi-nodes Devstack environment, such as devstack-vagrant, the compute node currently fails because it does not have PyMysql. This compute node has no database backend enabled, but has to connect to the database on another node. We should install the python client if DATABASE_TYPE is set, even if no database backend is enabled. Closes-Bug: 1501001 Change-Id: Iffd5f7243a0dfdbe56cf6b9a87b96ed7678c81dd
1 parent 7d4485c commit 7dd890d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stack.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ install_rpc_backend
736736

737737
if is_service_enabled $DATABASE_BACKENDS; then
738738
install_database
739+
fi
740+
if [ -n "$DATABASE_TYPE" ]; then
739741
install_database_python
740742
fi
741743

0 commit comments

Comments
 (0)