Wait for keystone in tests

Change-Id: Iefda83850daeac151970e69ef1409d57f0966bf5
This commit is contained in:
Flavio Percoco 2017-11-21 09:34:08 +01:00
parent a85ff917a6
commit 656ca55085
1 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,18 @@
---
- name: Get keystone cluster ip
shell:
cmd: |
kubectl get service keystone --namespace {{namespace}} --template={%raw%}{{.spec.clusterIP}}{%endraw%}
executable: /bin/bash
register: keystone_ip
- name: Wait for keystone to become available
wait_for:
host={{keystone_ip.stdout}}
port=35357
delay=2
timeout=300
- name: Register Glance in Keystone
include_role:
name: ansible-role-k8s-tripleo