Merge "Fix gnocchi_statsd and ceilometer_agent_ipmi healthcheck"
This commit is contained in:
commit
e8d2fcd0da
@ -3,12 +3,12 @@
|
||||
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||
|
||||
process='ceilometer-polling'
|
||||
args="${@:-5671 5672}"
|
||||
args="${@:-6379}"
|
||||
|
||||
if healthcheck_port $process $args; then
|
||||
exit 0
|
||||
else
|
||||
ports=${args// /,}
|
||||
echo "There is no $process process with opened RabbitMQ ports ($ports) running in the container"
|
||||
echo "There is no $process process with opened Redis ports ($ports) running in the container"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -3,12 +3,9 @@
|
||||
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||
|
||||
process='gnocchi-statsd'
|
||||
args="${@:-6379}"
|
||||
bind_port=$(get_config_val /etc/gnocchi/gnocchi.conf statsd port 8125)
|
||||
|
||||
if healthcheck_port $process $args; then
|
||||
exit 0
|
||||
else
|
||||
ports=${args// /,}
|
||||
echo "There is no $process process with opened Redis ports ($ports) running in the container"
|
||||
if ! healthcheck_listen $process $bind_port; then
|
||||
echo "There is no $process process listening on ports $bind_port in the container."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user