From 2e1bdcb1a322e43e003a858314658de6a8a861f6 Mon Sep 17 00:00:00 2001 From: utkarsh bhatt Date: Fri, 8 Nov 2024 18:09:05 +0530 Subject: [PATCH] Increased timeout for OSD recovery Signed-off-by: utkarsh bhatt --- tests/scripts/actionutils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/actionutils.sh b/tests/scripts/actionutils.sh index 09a74bd8..fbac58f3 100755 --- a/tests/scripts/actionutils.sh +++ b/tests/scripts/actionutils.sh @@ -421,14 +421,14 @@ function upgrade_multinode() { lxc exec $container -- sh -c "snap connect microceph:block-devices ; snap connect microceph:hardware-observe ; snap connect microceph:mount-observe" sleep 5 expect=3 - for i in $(seq 1 8); do + for i in $(seq 1 20); do res=$( ( lxc exec $container -- sh -c "microceph.ceph osd status" | fgrep -c "exists,up" ) ) if [[ $res -eq $expect ]] ; then echo "Found ${expect} osd up" break else echo -n '.' - sleep 5 + sleep 10 fi done res=$( ( lxc exec $container -- sh -c "microceph.ceph osd status" | fgrep -c "exists,up" ) )