From: Loic Dachary Date: Thu, 13 Nov 2014 16:16:41 +0000 (+0100) Subject: tests: ceph_objectstore_tool.py can use a WARN cluster X-Git-Tag: v0.80.10~69^2~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28ed34a7dc32033be61cd61178eb59471de45aac;p=ceph.git tests: ceph_objectstore_tool.py can use a WARN cluster The tests do not need HEALTH_OK exclusively, a HEALTH_WARN cluster can also run them successfully. Signed-off-by: Loic Dachary (cherry picked from commit 783378c019aaac36d542e1b12c0d64196ea21012) --- diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index c84761c3f6c..1d54e870317 100755 --- a/src/test/ceph_objectstore_tool.py +++ b/src/test/ceph_objectstore_tool.py @@ -15,7 +15,7 @@ logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.WARNING) def wait_for_health(): print "Wait for health_ok...", - while call("./ceph health 2> /dev/null | grep -v HEALTH_OK > /dev/null", shell=True) == 0: + while call("./ceph health 2> /dev/null | grep -v 'HEALTH_OK\|HEALTH_WARN' > /dev/null", shell=True) == 0: time.sleep(5) print "DONE"