]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_health_warnings: test down msgs vs crush classes
authorSage Weil <sage@redhat.com>
Mon, 10 Jul 2017 18:18:37 +0000 (14:18 -0400)
committerSage Weil <sage@redhat.com>
Thu, 13 Jul 2017 16:15:26 +0000 (12:15 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/rados/test_health_warnings.sh

index 252fa34433d2e1cbfd1e4761b466993388d28950..8bf60065f017e7d942ac29a190e89b857bb6bcde 100755 (executable)
@@ -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