From 205ea33b10340ab6431b67c8adf2c5f020622ae5 Mon Sep 17 00:00:00 2001 From: Sascha Marcel Schmidt Date: Wed, 25 Jul 2018 16:42:57 +0200 Subject: [PATCH] "fix" race condition --- .../heketi/roles/provision/tasks/setup/storage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/network-storage/heketi/roles/provision/tasks/setup/storage.yml b/contrib/network-storage/heketi/roles/provision/tasks/setup/storage.yml index 64a78714c..1c471db3b 100644 --- a/contrib/network-storage/heketi/roles/provision/tasks/setup/storage.yml +++ b/contrib/network-storage/heketi/roles/provision/tasks/setup/storage.yml @@ -16,7 +16,6 @@ - "heketi_storage_state.stdout|from_json|json_query(service_query)|length == 0" - "heketi_storage_state.stdout|from_json|json_query(job_query)|length == 0" register: "heketi_storage_result" -- debug: { var: "heketi_storage_result" } - command: "kubectl get secrets,endpoints,services,jobs --output=json" register: "heketi_storage_state" - 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" retries: 60 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"