Fix health check for ovn-metadata
The service does not connect to RabbitMQ, but to ovsdb instead. This patch makes the script check the correct port. Change-Id: I85fc431c7566c6bb74af2173cd3b92b7bf74424d
This commit is contained in:
parent
53f57907dc
commit
669f4b5454
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||||
|
|
||||||
process='ovn-metadata-agent'
|
process='networking-ovn-metadata-agent'
|
||||||
args="${@:-5671 5672}"
|
args="${@:-6642}"
|
||||||
|
|
||||||
if healthcheck_port $process $args; then
|
if healthcheck_port $process $args; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
ports=${args// /,}
|
ports=${args// /,}
|
||||||
echo "There is no $process process with opened RabbitMQ ports ($ports) running in the container"
|
echo "There is no $process process connected to ovsdb ports $ports running in the container"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue