dc342858a7
- adds script for docker health check of octavia-api service - fix the check method for octavia-health-manager service - fix the check method for octavia-housekeeping service Change-Id: Ie8eaab9919bde61793a3310328ee9f117c4e58da
14 lines
406 B
Bash
Executable File
14 lines
406 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
bind_host=$(get_config_val /etc/octavia/octavia.conf api_settings bind_host 127.0.0.1)
|
|
bind_port=$(get_config_val /etc/octavia/octavia.conf api_settings bind_port 9876)
|
|
|
|
# Add brackets if IPv6
|
|
if [[ $bind_host =~ ":" ]]; then
|
|
bind_host="[${bind_host}]"
|
|
fi
|
|
|
|
healthcheck_curl http://${bind_host}:${bind_port}/
|