From: Alfredo Deza Date: Tue, 15 Apr 2014 15:54:53 +0000 (-0400) Subject: improve status check documentation X-Git-Tag: v1.5.0~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F178%2Fhead;p=ceph-deploy.git improve status check documentation Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/osd.py b/ceph_deploy/osd.py index 9bc302f..c4c1638 100644 --- a/ceph_deploy/osd.py +++ b/ceph_deploy/osd.py @@ -65,8 +65,10 @@ def osd_status_check(conn, cluster): "full": "false", "nearfull": "false" } + + Note how the booleans are actually strings, so we need to take that into + account and fix it before returning the dictionary. Issue #8108 """ - logger = conn.logger command = [ 'ceph', '--cluster={cluster}'.format(cluster=cluster), @@ -125,6 +127,7 @@ def catch_osd_errors(conn, logger, args): if full: logger.warning('OSDs are full!') + if nearfull: logger.warning('OSDs are near full!')