From 04d9000eedd9d82cb2dfcdb7690d92d68b342823 Mon Sep 17 00:00:00 2001 From: elajkat Date: Wed, 24 Nov 2021 12:11:22 +0100 Subject: [PATCH] Execute neutron-db-manage only if q-svc is enabled In case devsatck is executed in a multihost environment on the host where only q-agt is enabled for example it is not necessary to execute neutron-db-manage command. Change-Id: Id0eb972c5fd364efe2ce84f088db83c33cff9e79 --- devstack/plugin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 9366b817..03587083 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -37,7 +37,9 @@ if is_service_enabled taas; then install_taas elif [[ "$2" == "post-config" ]]; then configure_taas_plugin - neutron-db-manage --subproject tap-as-a-service upgrade head + if is_service_enabled q-svc neutron-api; then + neutron-db-manage --subproject tap-as-a-service upgrade head + fi echo "Configuring taas" if [ "$TAAS_SERVICE_DRIVER" ]; then inicomment $TAAS_PLUGIN_CONF_FILE service_providers service_provider