From 65bd8f148eb1c4f4091775f2162b19c918bc95a7 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Tue, 4 Sep 2018 23:52:02 -0400 Subject: [PATCH] Add wait loop to init step Change-Id: I4cc866893b1ccbe8a40c1abf1ad5925e70a0b814 Signed-off-by: dglFromAtt Issue-ID: DMAAP-656 --- misc/dmaapbc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/dmaapbc b/misc/dmaapbc index b473598..3dcef4a 100644 --- a/misc/dmaapbc +++ b/misc/dmaapbc @@ -163,6 +163,15 @@ init() { return fi + #loop on get /dmaap until we get a good response to indicate other provisioning can continue + rc=999 + while [ $rc != "200 ] + do + sleep 10 + rc=`curl -s -w "%{http_code}" -X GET -H "Content-Type: application/json" http://dmaap-bc:8080/webapi/dmaap` + echo "get dmaap response=${rc}" + done + cd $CONFIGMAP_ROOT # order is important in this next list for uri in dmaap dcaeLocations mr_clusters topics feeds -- 2.16.6