Wait for mongod TCP socket to be available before initializing the database.
Related-PROD: PROD-35478
Change-Id: I33245e42f935942b61a2b69b2511fef88b5ac4be
diff --git a/mongodb/cluster.sls b/mongodb/cluster.sls
index b1af4a7..9438769 100644
--- a/mongodb/cluster.sls
+++ b/mongodb/cluster.sls
@@ -6,6 +6,7 @@
service.running:
- name: {{ server.service }}
- enable: true
+ - init_delay: 60
{%- if grains.get('noservices') %}
- onlyif: /bin/false
{%- endif %}
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 9761585..f4d5df0 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -40,6 +40,7 @@
virtualenv $VENV_DIR
source ${VENV_DIR}/bin/activate
python -m pip install salt${PIP_SALT_VERSION}
+ python -m pip install 'msgpack<1.0.0'
}
setup_mock_bin() {