]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/*/osd-scrub-repair.sh: don't fail if PG is in active+clean+wait 34830/head
authorNeha Ojha <nojha@redhat.com>
Thu, 23 Apr 2020 20:24:28 +0000 (20:24 +0000)
committerNathan Cutler <ncutler@suse.com>
Wed, 29 Apr 2020 12:16:58 +0000 (14:16 +0200)
a0b453ad335671bd92f165115d6ee984d2412448 added the wait state, which can
make PGs stay in active+clean+wait for a while instead of going into
active+clean directly. As far as TEST_auto_repair_bluestore_failed is
concerned, we only care about the repair state being cleared.

Fixes: https://tracker.ceph.com/issues/45075
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 7c8b627eaa478a97b5694704170336ed4fc40666)

Conflicts:
qa/standalone/scrub/osd-scrub-repair.sh

qa/standalone/scrub/osd-scrub-repair.sh

index 56d6f76f9a6a991d2e2a49b2055699ddaaf0a625..d5a5ee332d7d5c7aee956c5529de01385c5db266 100755 (executable)
@@ -496,7 +496,7 @@ function TEST_auto_repair_bluestore_failed() {
 
     flush_pg_stats
     ceph pg dump pgs
-    ceph pg dump pgs | grep -q "^$(pgid).* active+clean " || return 1
+    ceph pg dump pgs | grep -q -e "^${pgid}.* active+clean " -e "^${pgid}.* active+clean+wait " || return 1
     grep scrub_finish $dir/osd.${primary}.log
 
     # Tear down