Merge "Make a final check to validate mysql works"

This commit is contained in:
Jenkins 2016-02-16 15:18:25 +00:00 committed by Gerrit Code Review
commit acec1c8248
2 changed files with 11 additions and 0 deletions
ansible/roles/mariadb/tasks

@ -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

@ -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