From: Vasu Kulkarni Date: Mon, 25 Jul 2016 22:29:53 +0000 (-0700) Subject: Fix rechecking of health in loop X-Git-Tag: v10.2.6~165^2^2~55^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ad42602ddb9e4ca5c6e705c853984c32208ab817;p=ceph.git Fix rechecking of health in loop Use the newer stdout value for checking ceph health again. Signed-off-by: Vasu Kulkarni --- diff --git a/tasks/ceph_deploy.py b/tasks/ceph_deploy.py index bb985e294c4..8c4ef015680 100644 --- a/tasks/ceph_deploy.py +++ b/tasks/ceph_deploy.py @@ -560,6 +560,7 @@ def cli_test(ctx, config): action='check health') as proceed: while proceed(): r = remote.run(args=['sudo', 'ceph', 'health'], stdout=StringIO()) + out = r.stdout.getvalue() if (out.split(None,1)[0] == 'HEALTH_OK'): break rgw_install = 'install {branch} --rgw {node}'.format(