aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2018-02-25 16:03:45 +0200
committerYuli Shlosberg <ys9693@att.com>2018-02-25 16:04:06 +0200
commit36604c71a72b1023ad412ccd4ab694647817f9a9 (patch)
tree1e3002d162760e843a6e1d9a4704f9b98145a12d
parente56a2a869983480efcec9245946e7100f6e80385 (diff)
update template files
Change-Id: I495fcb8c6cfced09a921834f2ea730b519f453db Issue-ID: SDC-920 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
-rw-r--r--catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb4
-rw-r--r--catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb2
-rwxr-xr-xsdc-os-chef/scripts/docker_run.sh5
3 files changed, 8 insertions, 3 deletions
diff --git a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb
index 5239e9bdef..26f72664b7 100644
--- a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb
+++ b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb
@@ -1,6 +1,8 @@
#!/bin/bash
-health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://localhost:8080/sdc2/rest/healthCheck)
+set -x
+
+health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/sdc2/rest/healthCheck)
if [[ "$health_Check_http_code" -eq 500 ]]; then
exit 200
else
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb
index b5cbb149dd..d743900892 100644
--- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb
+++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb
@@ -1,6 +1,6 @@
#!/bin/bash
-health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://localhost:8181/sdc1/rest/healthCheck)
+health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8181/sdc1/rest/healthCheck)
if [[ "$health_Check_http_code" -eq 500 ]]; then
exit 200
else
diff --git a/sdc-os-chef/scripts/docker_run.sh b/sdc-os-chef/scripts/docker_run.sh
index bb742765b8..9fd604744c 100755
--- a/sdc-os-chef/scripts/docker_run.sh
+++ b/sdc-os-chef/scripts/docker_run.sh
@@ -37,6 +37,7 @@ function dir_perms {
mkdir -p ${WORKSPACE}/data/logs/FE/SDC/SDC-FE
chmod -R 777 ${WORKSPACE}/data/logs
}
+
function probe_cs {
cs_stat=false
@@ -125,6 +126,8 @@ function monitor_docker {
TIME=$(($TIME+$INTERVAL))
done
+ docker logs $1 > ${WORKSPACE}/data/logs/$1_docker.log
+
if [ "$TIME" -ge "$TIME_OUT" ]; then
echo -e "\e[1;31mTIME OUT: DOCKER was NOT fully started in $TIME_OUT seconds... Could cause problems ...\e[0m"
fi
@@ -140,7 +143,7 @@ function healthCheck {
echo ""
echo ""
echo "FE health-Check:"
- curl http://${IP}:8181/sdc1/rest/healthCheck
+ curl http://127.0.0.1:8181/sdc1/rest/healthCheck
echo ""