From: Sage Weil Date: Wed, 6 Nov 2019 23:42:13 +0000 (-0600) Subject: ceph-daemon: make 'ls' log less noisy X-Git-Tag: v15.1.0~1008^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31448%2Fhead;p=ceph.git ceph-daemon: make 'ls' log less noisy Signed-off-by: Sage Weil --- diff --git a/src/ceph-daemon b/src/ceph-daemon index c77f0554de3e..abcf5e37f2d8 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -261,7 +261,8 @@ def check_unit(unit_name): # various exit codes based on the state of the service, but the # string result is more explicit (and sufficient). try: - out, err, code = call(['systemctl', 'is-enabled', unit_name]) + out, err, code = call(['systemctl', 'is-enabled', unit_name], + verbose_on_failure=False) enabled = out.strip() == 'enabled' except Exception as e: logger.warning('unable to run systemctl: %s' % e) @@ -269,7 +270,8 @@ def check_unit(unit_name): state = 'unknown' try: - out, err, code = call(['systemctl', 'is-active', unit_name]) + out, err, code = call(['systemctl', 'is-active', unit_name], + verbose_on_failure=False) out = out.strip() if out in ['active']: state = 'running' @@ -1354,7 +1356,8 @@ def list_daemons(): podman_path, 'inspect', '--format', '{{.Id}}', 'ceph-%s-%s' % (fsid, j) - ]) + ], + verbose_on_failure=False) if not code: container_id = out.strip()[0:12] out, err, code = call(