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
14 lines
393 B
Bash
14 lines
393 B
Bash
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='ovn-northd'
|
|
sockets="${@:-/run/openvswitch/ovnnb_db.sock /run/openvswitch/ovnsb_db.sock}"
|
|
|
|
for sock in sockets; do
|
|
if ! healthcheck_socket $process $sock; then
|
|
echo "There is no $process process connected to socket $sock running in the container"
|
|
exit 1
|
|
fi
|
|
done
|