tripleo-common/healthcheck/barbican-keystone-listener
Juan Antonio Osorio Robles 7076e56942 Add healthchecks for barbican containers
the barbican-keystone-listener and worker only listen for the message
queue, so the healthcheck reflects that.

Change-Id: Ic0573f6dfe550dd7f5d6bc579b3b44a60d4bf1fc
2018-02-12 15:38:16 +02:00

15 lines
346 B
Bash
Executable File

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='barbican-keystone-listener'
args="${@:-5671 5672}"
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"
exit 1
fi