From 42a61f51484b24b028c2ba7511c3273b19d02894 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 6 Apr 2024 16:31:47 +0900 Subject: [PATCH] Deploy mongodb only when needed MongoDB fails to start frequently in CI because the recent builds are not compatible with old CPU architecture. Let's skip deploying MongoDB when it's not actually required, to reduce failure rate. Change-Id: Ia20a594ea397dbc64936598548c10d40bf57256c --- devstack/plugin.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 404db7029..a1cf43284 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -107,10 +107,6 @@ function configure_zaqar { iniset $ZAQAR_CONF DEFAULT pooling True iniset $ZAQAR_CONF 'pooling:catalog' enable_virtual_pool True - # NOTE(flaper87): Configure mongodb regardless so we can use it as a pool - # in tests. - configure_mongodb - if [ "$ZAQAR_BACKEND" = 'mongodb' ] ; then iniset $ZAQAR_CONF drivers message_store mongodb iniset $ZAQAR_CONF 'drivers:message_store:mongodb' uri mongodb://localhost:27017/zaqar @@ -119,6 +115,7 @@ function configure_zaqar { iniset $ZAQAR_CONF drivers management_store mongodb iniset $ZAQAR_CONF 'drivers:management_store:mongodb' uri mongodb://localhost:27017/zaqar_mgmt iniset $ZAQAR_CONF 'drivers:management_store:mongodb' database zaqar_mgmt + configure_mongodb elif [ "$ZAQAR_BACKEND" = 'redis' ] ; then recreate_database zaqar iniset $ZAQAR_CONF drivers management_store sqlalchemy