Increase timeout waiting for OVN startup

We see some cases where OVN startup takes much longer than 5 seconds, up
to 28 seconds have been observed, so increase the limit to 40 to be on
the safe side.

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Closes-Bug: 1980421
Change-Id: I6da4a537e6a8d527ff71a821f07164fc7d342882
This commit is contained in:
Dr. Jens Harbott 2022-07-03 22:27:15 +02:00
parent 02f8c16c9b
commit bd6e5205b1

View File

@ -176,7 +176,7 @@ function wait_for_db_file {
while [ ! -f $1 ]; do
sleep 1
count=$((count+1))
if [ "$count" -gt 5 ]; then
if [ "$count" -gt 40 ]; then
die $LINENO "DB File $1 not found"
fi
done
@ -187,7 +187,7 @@ function wait_for_sock_file {
while [ ! -S $1 ]; do
sleep 1
count=$((count+1))
if [ "$count" -gt 5 ]; then
if [ "$count" -gt 40 ]; then
die $LINENO "Socket $1 not found"
fi
done