]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
/workunits/cephtool/test.sh: Improve testing of health-output.
authorDavid Zafman <dzafman@redhat.com>
Thu, 20 Apr 2017 06:20:22 +0000 (23:20 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 20 Apr 2017 22:39:33 +0000 (15:39 -0700)
Instead of 9ff401e65b1a66a320953aeef8ab65b6f1fb6f10 use regex to handle:
       HEALTH_ERR 2 pgs stuck unclean; Full ratio(s) out of order

Signed-off-by: David Zafman <dzafman@redhat.com>
qa/workunits/cephtool/test.sh

index fc58e4380808fc321f59ccb91213e6eb8288caba..df52783bfe9af2037882cf744d7b27a92828092d 100755 (executable)
@@ -1451,7 +1451,7 @@ function test_mon_pg()
 
   # Check health status
   ceph osd set-nearfull-ratio .913
-  ceph health | grep 'ratio(s) out of order'
+  ceph health | grep 'HEALTH_ERR.*Full ratio(s) out of order'
   ceph health detail | grep 'backfill_ratio (0.912) < nearfull_ratio (0.913), increased'
   ceph osd set-nearfull-ratio .892
   ceph osd set-backfillfull-ratio .963