The tests do not need HEALTH_OK exclusively, a HEALTH_WARN cluster can
also run them successfully.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit
783378c019aaac36d542e1b12c0d64196ea21012)
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"