"fix" race condition

This commit is contained in:
Sascha Marcel Schmidt 2018-07-25 16:42:57 +02:00
parent c42397d7db
commit 205ea33b10
No known key found for this signature in database
GPG key ID: D1D6CE184437796D

View file

@ -16,7 +16,6 @@
- "heketi_storage_state.stdout|from_json|json_query(service_query)|length == 0" - "heketi_storage_state.stdout|from_json|json_query(service_query)|length == 0"
- "heketi_storage_state.stdout|from_json|json_query(job_query)|length == 0" - "heketi_storage_state.stdout|from_json|json_query(job_query)|length == 0"
register: "heketi_storage_result" register: "heketi_storage_result"
- debug: { var: "heketi_storage_result" }
- command: "kubectl get secrets,endpoints,services,jobs --output=json" - command: "kubectl get secrets,endpoints,services,jobs --output=json"
register: "heketi_storage_state" register: "heketi_storage_state"
- name: "Get state of heketi storage service, endpoint, secret and job." - name: "Get state of heketi storage service, endpoint, secret and job."
@ -35,3 +34,5 @@
- "heketi_storage_state.stdout|from_json|json_query(job_query)|length == 1" - "heketi_storage_state.stdout|from_json|json_query(job_query)|length == 1"
retries: 60 retries: 60
delay: 5 delay: 5
# looks like there is some race condition that leads to "Database file did not appear, exiting.", can't figure out where
- command: "sleep 10"