Correct ovn-dbs health check
We can't really check the socket presence in containers: - ovn doesn't really listen to them - playing with lsof and ss doesn't help, since there are some issues with inodes and overlays The new healthcheck ensures the service is properly running, and will fail if ovn-northd has an issue. Please note: the current STDERR has some output, this is due to some packaging issue being worked on right now. Change-Id: I645e18cf198a948479083df94b5d373ed92f2aae Closes-Bug: #1823882
This commit is contained in:
parent
c7ffea0745
commit
baa9fb8c4b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user