b9905a052f
This patch adds script for ovn_controller and ovn-dbs-bundle containers. Health is check using verification of connection to OVN DB. Change-Id: I9c8d0445b7f010838fe94dae2ae6fb86952fdeab
15 lines
325 B
Bash
15 lines
325 B
Bash
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='ovn-controller'
|
|
args="${@:-6642}"
|
|
|
|
if healthcheck_port $process $args; then
|
|
exit 0
|
|
else
|
|
ports=${args// /,}
|
|
echo "There is no $process process connected to ovsdb ports $ports running in the container"
|
|
exit 1
|
|
fi
|