X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fosm_health.sh;h=16b74cf59600b2b061cc59b459d9bd1e7bb014f7;hb=6ec4e466630f34341a1150121c24649da5eab41d;hp=6c314fbd3c81580c23021b7b3f1393c95bdf4402;hpb=6e2e007ee79ce5e3b8059ddec10916cba298c57f;p=osm%2Fdevops.git diff --git a/installers/osm_health.sh b/installers/osm_health.sh index 6c314fbd..16b74cf5 100755 --- a/installers/osm_health.sh +++ b/installers/osm_health.sh @@ -47,6 +47,12 @@ failures_in_a_row=0 oks_in_a_row=0 +# Show status of the OSM services deployed with helm +echo "helm -n ${STACK_NAME} list" +helm -n ${STACK_NAME} list +echo "helm -n ${STACK_NAME} status ${STACK_NAME}" +helm -n ${STACK_NAME} status ${STACK_NAME} + #################################################################################### # Loop to check system readiness #################################################################################### @@ -66,8 +72,8 @@ do # State of Statefulsets STS_STATE=$(kubectl get statefulset -n ${STACK_NAME} --no-headers 2>&1) - STS_READY=$(echo "${STS_STATE}" | awk '$2=="1/1" {printf ("%20s\t%s\t%s\n", $1, $2, $4)}') - STS_NOT_READY=$(echo "${STS_STATE}" | awk '$2!="1/1" {printf ("%20s\t%s\t%s\n", $1, $2, $4)}') + STS_READY=$(echo "${STS_STATE}" | awk '$2=="1/1" || $2=="2/2" {printf ("%20s\t%s\t%s\n", $1, $2, $4)}') + STS_NOT_READY=$(echo "${STS_STATE}" | awk '$2!="1/1" && $2!="2/2" {printf ("%20s\t%s\t%s\n", $1, $2, $4)}') COUNT_STS_READY=$(echo "${STS_READY}" | grep -v -e '^$' | wc -l) COUNT_STS_NOT_READY=$(echo "${STS_NOT_READY}" | grep -v -e '^$' | wc -l)