Merge "Add healthcheck script for neutron-sriov-agent"

This commit is contained in:
Zuul
2018-04-05 15:48:43 +00:00
committed by Gerrit Code Review

14
healthcheck/neutron-sriov-agent Executable file
View File

@@ -0,0 +1,14 @@
#!/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