Merge "Correct ovn-dbs health check"

This commit is contained in:
Zuul 2019-04-17 08:32:33 +00:00 committed by Gerrit Code Review
commit de8d54bca5
1 changed files with 1 additions and 10 deletions

View File

@ -1,13 +1,4 @@
#!/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
/usr/bin/ovs-appctl -t ${process} version 1>/dev/null