tripleo-common/healthcheck/cinder-volume
Martin Mágr b4327a4d3b Add health check for services connected to RabbitMQ
- extended common lib with check for processes opening a specific ports
- added health check scripts for services which require to be connected
  to RabbitMQ server

Implements: blueprint container-healthchecks
Change-Id: I039b4f2bc9826bece6c382ac07e8fb2495fae924
2017-07-25 14:10:21 +02:00

15 lines
323 B
Bash

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/tripleo-common/healthcheck}/common.sh
process='cinder-volume'
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