0b13ce6040
This patch adds support to use OVN Metadata Agent in containerized environments. Depends-On: I8af4ae921ecca51a99886d5208abeb1a4eb42c83 Change-Id: I678652294cb8f964c34b742a0bc0ea360d736fb9 Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
15 lines
338 B
Bash
Executable File
15 lines
338 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='ovn-metadata-agent'
|
|
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
|