grep scrub_finish $dir/osd.${primary}.log
grep -q "scrub_finish.*still present after re-scrub" $dir/osd.${primary}.log || return 1
ceph pg dump pgs
- ceph pg dump pgs | grep -q "^$(pgid).*+failed_repair" || return 1
+ ceph pg dump pgs | grep -q "^${pgid}.*+failed_repair" || return 1
# Verify - obj1 should be back
# Restarted osd get $ceph_osd_args passed
sleep 2
ceph pg dump pgs
- ceph pg dump pgs | grep -q "^$(pgid).* active+clean " || return 1
+ ceph pg dump pgs | grep -q "^${pgid}.* active+clean " || return 1
grep scrub_finish $dir/osd.${primary}.log
# Tear down
flush_pg_stats
grep -q "scrub_finish.*present with no repair possible" $dir/osd.${primary}.log || return 1
ceph pg dump pgs
- ceph pg dump pgs | grep -q "^$(pgid).*+failed_repair" || return 1
+ ceph pg dump pgs | grep -q "^${pgid}.*+failed_repair" || return 1
# Tear down
teardown $dir || return 1