diff options
| author | Sam Yaple <sam@yaple.net> | 2015-07-31 21:50:43 +0000 |
|---|---|---|
| committer | Sam Yaple <sam@yaple.net> | 2015-07-31 22:06:55 +0000 |
| commit | d32ed35d13bbc4ab5f5e6a1a146e1bc8d111ac88 (patch) | |
| tree | 3d78089faacfb4d82f45305a9d7b1815a16332ea | |
| parent | 640d2f1cad5e84e16f5c3d8f71644cf80808ea40 (diff) | |
| download | kolla-d32ed35d13bbc4ab5f5e6a1a146e1bc8d111ac88.tar.gz kolla-d32ed35d13bbc4ab5f5e6a1a146e1bc8d111ac88.zip | |
Use sleep during database bootstrap
A small sleep is used to allow the database to initialize before
starting the databases on the other hosts.
Change-Id: I1ea9ee8be55f47ae917f9985431e1e919f64c101
Closes-Bug: #1479970
| -rw-r--r-- | ansible/roles/mariadb/tasks/bootstrap.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/mariadb/tasks/bootstrap.yml b/ansible/roles/mariadb/tasks/bootstrap.yml index 8eea886d5..894ef19d2 100644 --- a/ansible/roles/mariadb/tasks/bootstrap.yml +++ b/ansible/roles/mariadb/tasks/bootstrap.yml @@ -58,3 +58,8 @@ container_volumes_from: - "mariadb_data" when: delegate_host == 'None' and inventory_hostname == groups['mariadb'][0] + +- name: Sleeping for 15 seconds while the cluster starts + command: sleep 15 + changed_when: False + when: delegate_host == 'None' and inventory_hostname == groups['mariadb'][0] |
