X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fosm_health.sh;fp=installers%2Fosm_health.sh;h=2684af7309f53cfc2bd503713ece164c21363fc1;hb=26e8e33bfe2dbeb0930651635cdba51ba02bd168;hp=b8e24adab8eeb678fc42df34c64b1a52ce54ed36;hpb=3846a92d650ff10c79887fbb1785bbc63035ebaf;p=osm%2Fdevops.git diff --git a/installers/osm_health.sh b/installers/osm_health.sh index b8e24ada..2684af73 100755 --- a/installers/osm_health.sh +++ b/installers/osm_health.sh @@ -3,6 +3,7 @@ WAIT_TIME=180 # LCM healthcheck needs 140 senconds SERVICES_WITH_HEALTH="nbi ro zookeeper lcm" NUM_SERVICES_WITH_HEALTH=$(echo $SERVICES_WITH_HEALTH | wc -w) +WAIT_FINAL=30 while getopts "w:s:n:c:" o; do case "${o}" in @@ -26,6 +27,9 @@ time=0 step=2 while [ $time -le "$WAIT_TIME" ]; do if [ "$(docker ps | grep " ${STACK_NAME}_" | grep -i healthy | wc -l)" -ge "$NUM_SERVICES_WITH_HEALTH" ]; then + # all dockers are healthy now. + # final sleep is needed until more health checks are added to validate system is ready to handle requests + sleep $WAIT_FINAL exit 0 fi