From: Sage Weil Date: Tue, 16 Jul 2019 14:26:21 +0000 (-0500) Subject: qa/workunits/rados/test_crash: health check X-Git-Tag: v15.1.0~2091^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f6e0894902a6646e73e3db123d48fe2fac9570ea;p=ceph.git qa/workunits/rados/test_crash: health check Signed-off-by: Sage Weil --- diff --git a/qa/workunits/rados/test_crash.sh b/qa/workunits/rados/test_crash.sh index 04597c19537..6608d7872e2 100755 --- a/qa/workunits/rados/test_crash.sh +++ b/qa/workunits/rados/test_crash.sh @@ -31,3 +31,9 @@ sleep 30 # must be 3 crashdumps registered and moved to crash/posted [ $(ceph crash ls | wc -l) = 4 ] || exit 1 # 4 here bc of the table header [ $(sudo find /var/lib/ceph/crash/posted/ -name meta | wc -l) = 3 ] || exit 1 + +# there should be a health warning +ceph health detail | grep RECENT_CRASH || exit 1 +ceph crash archive-all +sleep 30 +ceph health detail | grep -c RECENT_CRASH | grep 0 # should be gone!