]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_crash: health check
authorSage Weil <sage@redhat.com>
Tue, 16 Jul 2019 14:26:21 +0000 (09:26 -0500)
committerSage Weil <sage@redhat.com>
Fri, 15 Nov 2019 14:33:44 +0000 (08:33 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f6e0894902a6646e73e3db123d48fe2fac9570ea)

qa/workunits/rados/test_crash.sh

index 04597c195375358e3c87e1e12fc768c2957c01b3..6608d7872e232b12ac5b9586ca84e63d37d4bc2b 100755 (executable)
@@ -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!