mirror of
https://github.com/ceph/ceph
synced 2025-01-02 09:02:34 +00:00
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:
commit
1c8bea0cbb
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user