From 7dd890d6e13e3bc021952ed1e4b81d3ae4bb4356 Mon Sep 17 00:00:00 2001 From: Olivier Lemasle Date: Mon, 14 Sep 2015 14:21:12 +0200 Subject: [PATCH] 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 --- stack.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stack.sh b/stack.sh index 700a0aecad..7bc9c20fcf 100755 --- a/stack.sh +++ b/stack.sh @@ -736,6 +736,8 @@ install_rpc_backend if is_service_enabled $DATABASE_BACKENDS; then install_database +fi +if [ -n "$DATABASE_TYPE" ]; then install_database_python fi