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
This commit is contained in:
elajkat 2021-11-24 12:11:22 +01:00
parent 351c1fbed5
commit 04d9000eed

View File

@ -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