]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: flush_pg_stats() ignore OSDs that don't respond to getting sequence
authorDavid Zafman <dzafman@redhat.com>
Tue, 16 Jun 2020 23:28:58 +0000 (16:28 -0700)
committerDavid Zafman <dzafman@redhat.com>
Sat, 8 Aug 2020 00:29:20 +0000 (00:29 +0000)
This eliminates bogus errors in the logs and returned from flush_pg_stats()

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 41322eaa62be0de20fdedb44d5817a3f1916ab5e)

qa/standalone/ceph-helpers.sh

index 386f95fb57116b71f3fad2f5d7fd9fb5a72805f5..d2bbf6448c8cfd2325aa1b408f6852034c7c168a 100755 (executable)
@@ -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