diff options
author | dglFromAtt <dgl@research.att.com> | 2018-09-04 23:52:02 -0400 |
---|---|---|
committer | dglFromAtt <dgl@research.att.com> | 2018-09-04 23:52:18 -0400 |
commit | 65bd8f148eb1c4f4091775f2162b19c918bc95a7 (patch) | |
tree | 5470d58a198cfc54ec8760dff8106380faee5fc4 /misc | |
parent | 06c5771a730304d2f3451059aae996a443297330 (diff) |
Add wait loop to init step
Change-Id: I4cc866893b1ccbe8a40c1abf1ad5925e70a0b814
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-656
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dmaapbc | 9 |
1 files changed, 9 insertions, 0 deletions
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 |