From 12c6cfa5f1b55b9ce0b65d8c00a97c7b8983f975 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 10 Jul 2017 14:18:37 -0400 Subject: [PATCH] qa/workunits/rados/test_health_warnings: test down msgs vs crush classes Signed-off-by: Sage Weil --- qa/workunits/rados/test_health_warnings.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qa/workunits/rados/test_health_warnings.sh b/qa/workunits/rados/test_health_warnings.sh index 252fa34433d2e..8bf60065f017e 100755 --- a/qa/workunits/rados/test_health_warnings.sh +++ b/qa/workunits/rados/test_health_warnings.sh @@ -53,8 +53,25 @@ test_mark_all_but_last_osds_down() { wait_for_healthy } +test_mark_two_osds_same_host_down_with_classes() { + ceph osd set noup + ceph osd crush class create ssd + ceph osd crush class create hdd + ceph osd crush set-device-class ssd osd.0 osd.2 osd.4 osd.6 osd.8 + ceph osd crush set-device-class hdd osd.1 osd.3 osd.5 osd.7 osd.9 + ceph osd down osd.0 osd.1 + ceph health detail + ceph health | grep "1 host" + ceph health | grep "2 osds" + ceph health detail | grep "osd.0" + ceph health detail | grep "osd.1" + ceph osd unset noup + wait_for_healthy +} + test_mark_two_osds_same_host_down test_mark_two_osds_same_rack_down test_mark_all_but_last_osds_down +test_mark_two_osds_same_host_down_with_classes exit 0 -- 2.39.5