Remove unused ES code and unneeded ES health check 23/107123/2
authorNeil Derraugh <neil.derraugh@yoppworks.com>
Tue, 5 May 2020 15:27:28 +0000 (11:27 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Wed, 6 May 2020 06:46:40 +0000 (06:46 +0000)
Remove the ES health check since ES was removed.

Issue-ID: SDC-3022
Signed-off-by: neil.derraugh@yoppworks.com
Change-Id: I918212de39d7b53959ac400975b3c47f889252c1

sdc-os-chef/scripts/docker_run.sh

index e51f499..e641594 100755 (executable)
@@ -151,17 +151,6 @@ function probe_test_docker {
 #
 
 
-function probe_es {
-    health_Check_http_code=$(curl --noproxy "*" -o /dev/null -w '%{http_code}' http://${IP}:9200/_cluster/health?wait_for_status=yellow&timeout=120s)
-    if [[ "$health_Check_http_code" -eq 200 ]] ; then
-        echo DOCKER start finished in $1 seconds
-        return ${SUCCESS}
-    fi
-    return ${FAILURE}
-}
-#
-
-
 function probe_sim {
     if lsof -Pi :8285 -sTCP:LISTEN -t >/dev/null ; then
         echo "Already running"
@@ -236,7 +225,6 @@ function monitor_docker {
 
 # healthCheck script used the secure connection to send request (https is always turn on)
 function healthCheck {
-       curl --noproxy "*" ${IP}:9200/_cluster/health?pretty=true
 
        echo "BE Health Check:"
        curl -k --noproxy "*" https://${IP}:8443/sdc2/rest/healthCheck