From 2c45e742bbb722c4c167023f3ef5ab04b8290c1d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 16 Jul 2019 09:26:21 -0500 Subject: [PATCH] qa/workunits/rados/test_crash: health check Signed-off-by: Sage Weil (cherry picked from commit f6e0894902a6646e73e3db123d48fe2fac9570ea) --- qa/workunits/rados/test_crash.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/workunits/rados/test_crash.sh b/qa/workunits/rados/test_crash.sh index 04597c1953753..6608d7872e232 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! -- 2.39.5