From b625fb08fbe7e25c3b7d1207f3a43a71083bc64c Mon Sep 17 00:00:00 2001 From: David Zafman Date: Tue, 16 Jun 2020 16:28:58 -0700 Subject: [PATCH] test: flush_pg_stats() ignore OSDs that don't respond to getting sequence This eliminates bogus errors in the logs and returned from flush_pg_stats() Signed-off-by: David Zafman (cherry picked from commit 41322eaa62be0de20fdedb44d5817a3f1916ab5e) --- qa/standalone/ceph-helpers.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index 386f95fb57116..d2bbf6448c8cf 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -2063,6 +2063,10 @@ function flush_pg_stats() seqs='' for osd in $ids; do seq=`ceph tell osd.$osd flush_pg_stats` + if test -z "$seq" + then + continue + fi seqs="$seqs $osd-$seq" done -- 2.39.5