diff options
| author | SamYaple <sam@yaple.net> | 2016-02-05 17:41:21 +0000 |
|---|---|---|
| committer | Sam Yaple <sam@yaple.net> | 2016-02-16 13:54:22 +0000 |
| commit | bf6b75da3f5ac928c2ff14e5585c6b2574155381 (patch) | |
| tree | b7e16c2561198df5fda52e7c33d81b0105cf9c2d | |
| parent | cb322ec5b2583520d0910c59b143cd1b9a8b6cd8 (diff) | |
| download | kolla-bf6b75da3f5ac928c2ff14e5585c6b2574155381.tar.gz kolla-bf6b75da3f5ac928c2ff14e5585c6b2574155381.zip | |
Make a final check to validate mysql works
This ensures mysql works through whatever the vip is
Change-Id: Iaeb17240b90ae2f0fef081b42d4ba140dcecd972
Closes-Bug: #1536633
| -rw-r--r-- | ansible/roles/mariadb/tasks/check.yml | 8 | ||||
| -rw-r--r-- | ansible/roles/mariadb/tasks/deploy.yml | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/mariadb/tasks/check.yml b/ansible/roles/mariadb/tasks/check.yml new file mode 100644 index 000000000..80a4e5240 --- /dev/null +++ b/ansible/roles/mariadb/tasks/check.yml @@ -0,0 +1,8 @@ +--- +- name: Waiting for MariaDB service to be ready through VIP + command: "docker exec mariadb mysql -h {{ kolla_internal_address }} -u haproxy -e 'show databases;'" + register: result + until: result | success + changed_when: False + retries: 6 + delay: 10 diff --git a/ansible/roles/mariadb/tasks/deploy.yml b/ansible/roles/mariadb/tasks/deploy.yml index c13e4eb0a..93f19edce 100644 --- a/ansible/roles/mariadb/tasks/deploy.yml +++ b/ansible/roles/mariadb/tasks/deploy.yml @@ -18,3 +18,6 @@ # Since the last start.yml may have recreated some containers we must wait and # check the health again to ensure the hosts are active. - include: register.yml + +# Test haproxy user through VIP +- include: check.yml |
