From: Sage Weil Date: Fri, 7 Jul 2017 03:24:52 +0000 (-0400) Subject: qa/workunits/cephtool/test.sh: adjust for new health error codes X-Git-Tag: v12.1.1~58^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7302b49723d2195b10d2ae07034cdfbc6100af75;p=ceph.git qa/workunits/cephtool/test.sh: adjust for new health error codes Signed-off-by: Sage Weil --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 009b7c5130d3..c76b100b1d15 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1779,23 +1779,24 @@ function test_mon_pg() # Check health status ceph osd set-nearfull-ratio .913 - ceph health | grep 'HEALTH_ERR.*Full ratio(s) out of order' - ceph health detail | grep 'backfillfull_ratio (0.912) < nearfull_ratio (0.913), increased' + ceph health -f json | grep OSD_OUT_OF_ORDER_FULL + ceph health detail | grep OSD_OUT_OF_ORDER_FULL ceph osd set-nearfull-ratio .892 ceph osd set-backfillfull-ratio .963 - ceph health detail | grep 'full_ratio (0.962) < backfillfull_ratio (0.963), increased' + ceph health -f json | grep OSD_OUT_OF_ORDER_FULL + ceph health detail | grep OSD_OUT_OF_ORDER_FULL ceph osd set-backfillfull-ratio .912 # Check injected full results $SUDO ceph --admin-daemon $(get_admin_socket osd.0) injectfull nearfull - wait_for_health "HEALTH_WARN.*1 nearfull osd(s)" + wait_for_health "OSD_NEARFULL" $SUDO ceph --admin-daemon $(get_admin_socket osd.1) injectfull backfillfull - wait_for_health "HEALTH_WARN.*1 backfillfull osd(s)" + wait_for_health "OSD_BACKFILLFULL" $SUDO ceph --admin-daemon $(get_admin_socket osd.2) injectfull failsafe # failsafe and full are the same as far as the monitor is concerned - wait_for_health "HEALTH_ERR.*1 full osd(s)" + wait_for_health "OSD_FULL" $SUDO ceph --admin-daemon $(get_admin_socket osd.0) injectfull full - wait_for_health "HEALTH_ERR.*2 full osd(s)" + wait_for_health "OSD_FULL" ceph health detail | grep "osd.0 is full" ceph health detail | grep "osd.2 is full" ceph health detail | grep "osd.1 is backfill full"