diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2018-02-27 15:09:43 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2018-02-27 15:09:43 -0700 |
| commit | 5d96e3f6c33599019b61816603ba469bca2751b5 (patch) | |
| tree | d84c5054f31c4eca9b8ea3e0743736b88699ebc0 | |
| parent | bddd77875d50a9aea8086a05efefce232473f09b (diff) | |
Increase timeout for openbookctl startup job to wait for a db node to come up
Issue: IS-67
| -rw-r--r-- | salt/openbook/ci/files/openbookctl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/salt/openbook/ci/files/openbookctl b/salt/openbook/ci/files/openbookctl index 67e9379..b04fa12 100644 --- a/salt/openbook/ci/files/openbookctl +++ b/salt/openbook/ci/files/openbookctl @@ -6,9 +6,10 @@ echo 'wsrep_cluster_address: gcomm://{% raw %}{{ openbook_gcomm_addresses }}{% e {% raw %}{% if "True" == openbook_install_database|string() %}{% endraw %} wait_for_database() { - echo "Waiting for database to start..." + galera_timeout=600 started=1 - for i in {120..0}; do + echo "Waiting up to ${galera_timeout} seconds for database to start..." + for i in {${galera_timeout}..0}; do if echo 'SELECT 1' | mysql -h {% raw %}{{ ansible_default_ipv4.address }}{% endraw %} -u root --password='{% raw %}{{ openbook_database_password }}{% endraw %}' &>/dev/null; then started=0 break |
