Add wait loop to init step 65/64865/1
authordglFromAtt <dgl@research.att.com>
Wed, 5 Sep 2018 03:52:02 +0000 (23:52 -0400)
committerdglFromAtt <dgl@research.att.com>
Wed, 5 Sep 2018 03:52:18 +0000 (23:52 -0400)
Change-Id: I4cc866893b1ccbe8a40c1abf1ad5925e70a0b814
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-656

misc/dmaapbc

index b473598..3dcef4a 100644 (file)
@@ -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