]> 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)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 1 Jul 2020 19:25:49 +0000 (12:25 -0700)
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 19fede19480293d2dadcf9e04d80b4d25be071ad..20336d06fdb28f5492d65dc4e43d9b19ea5f269a 100755 (executable)
@@ -2069,6 +2069,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