Merge "Make a final check to validate mysql works"
This commit is contained in:
commit
acec1c8248
ansible/roles/mariadb/tasks
8
ansible/roles/mariadb/tasks/check.yml
Normal file
8
ansible/roles/mariadb/tasks/check.yml
Normal 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user