Merge pull request #57193 from NitzanMordhai/wip-nitzan-osd-recovery-standalone-test-wait-for-too-full

Test: osd-recovery-space.sh extends the wait time for "recovery toofull"

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
Yuri Weinstein 2024-07-30 07:50:16 -07:00 committed by GitHub
commit 1c8bea0cbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,6 +76,10 @@ function wait_for_state() {
function wait_for_recovery_toofull() {
local timeout=$1
wait_for_state recovery_toofull $timeout
if [ $ret -ne 0 ]; then
echo "Error: Recovery toofull timeout"
return 1
fi
}
@ -131,7 +135,11 @@ function TEST_recovery_test_simple() {
done
# If this times out, we'll detected errors below
wait_for_recovery_toofull 30
wait_for_recovery_toofull 120
if [ $? -ne 0 ]; then
echo "Error: Recovery toofull timeout"
return 1
fi
ERRORS=0
if [ "$(ceph pg dump pgs | grep +recovery_toofull | wc -l)" != "1" ];