mirror of
https://github.com/ceph/ceph
synced 2025-01-08 20:21:33 +00:00
qa/workunits/rados/test_crash: health check
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
422871d63e
commit
f6e0894902
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user