0389eece17
Implement a new get_url_from_vhost bash function that parses the given vhost configuration file and returns the URL on which the service can be checked. Change-Id: I071ed26328703df9f272b689af854e3a6a1c9e97 Closes-Bug: #1713689
10 lines
342 B
Bash
Executable File
10 lines
342 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-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)
|
|
|
|
# glance-api is still eventlet
|
|
healthcheck_curl http://${bind_host}:${bind_port}/
|