+
+ echo -e "Checking OSM health state..."
+ if [ -n "$KUBERNETES" ]; then
+ $OSM_DEVOPS/installers/osm_health.sh -s ${OSM_STACK_NAME} -k || \
+ echo -e "OSM is not healthy, but will probably converge to a healthy state soon." && \
+ echo -e "Check OSM status with: kubectl -n ${OSM_STACK_NAME} get all" && \
+ track osm_unhealthy
+ else
+ $OSM_DEVOPS/installers/osm_health.sh -s ${OSM_STACK_NAME} || \
+ echo -e "OSM is not healthy, but will probably converge to a healthy state soon." && \
+ echo -e "Check OSM status with: docker service ls; docker stack ps ${OSM_STACK_NAME}" && \
+ track osm_unhealthy
+ fi
+ track after_healthcheck
+
+ [ -n "$KUBERNETES" ] && add_local_k8scluster
+ track add_local_k8scluster
+