tripleo-common/healthcheck/octavia-housekeeping
Martin Mágr c0edaefcba Add and fix healthcheck scripts for Octavia services
- 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
(cherry picked from commit dc342858a7)
2018-04-30 11:38:14 +02:00

15 lines
343 B
Bash
Executable File

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='octavia-housekeeping'
args="${@:-3306}"
if healthcheck_port $process $args; then
exit 0
else
ports=${args// /,}
echo "Did not find $process process running and connected to MySQL via ports ($ports) in the container."
exit 1
fi