Files
tripleo-common/healthcheck/glance-api
Lars Kellogg-Stedman 23468032b3 healthchecks: implement service-specific checks
This introduces health checks for a number of OpenStack services.

Change-Id: I9882d5047c960499dae279eda5d9cbacc01ac5d3
Implements: blueprint container-healthchecks
2017-07-25 14:10:10 +02:00

9 lines
301 B
Bash
Executable File

#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/tripleo-common/healthcheck}/common.sh
bind_host=$(get_config_val /etc/glance/glance-api.conf DEFAULT bind_host 127.0.0.1)
bind_port=$(get_config_val /etc/glance/glance-api.conf DEFAULT bind_port 9292)
healthcheck_curl http://${bind_host}:${bind_port}/