4c45ba2690
This patch adds script for docker health check of neutron-sriov-agent service. The script checks existance of service with opened connections to RabbitMQ. Change-Id: Ief543580e6b717bb9dba62b19ffe12aff5395ff9
15 lines
345 B
Bash
Executable File
15 lines
345 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='neutron-sriov-nic-agent'
|
|
args="${@:-5671 5672}"
|
|
|
|
if healthcheck_port $process $args; then
|
|
exit 0
|
|
else
|
|
ports=${args// /,}
|
|
echo "There is no $process process connected via RabbitMQ ports ($ports) running in the container"
|
|
exit 1
|
|
fi
|