Make a final check to validate mysql works

This ensures mysql works through whatever the vip is

Change-Id: Iaeb17240b90ae2f0fef081b42d4ba140dcecd972
Closes-Bug: #1536633
This commit is contained in:
SamYaple 2016-02-05 17:41:21 +00:00 committed by Sam Yaple
parent cb322ec5b2
commit bf6b75da3f
2 changed files with 11 additions and 0 deletions

View File

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

View File

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