]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: make 'ls' log less noisy 31448/head
authorSage Weil <sage@redhat.com>
Wed, 6 Nov 2019 23:42:13 +0000 (17:42 -0600)
committerSage Weil <sage@redhat.com>
Wed, 6 Nov 2019 23:43:11 +0000 (17:43 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index c77f0554de3ec585b5835532a07845bac17396a2..abcf5e37f2d8e6635080260af7aefcbb8e480158 100755 (executable)
@@ -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(