]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: ceph-volume verbose only when fails 41151/head
authorJuan Miguel Olmo Martínez <jolmomar@redhat.com>
Tue, 27 Apr 2021 13:54:46 +0000 (15:54 +0200)
committerSage Weil <sage@newdream.net>
Wed, 5 May 2021 14:38:35 +0000 (09:38 -0500)
Resolves: https://tracker.ceph.com/issues/50526

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit 7f67a758d001e3f92be87b262dd81ad48afdc86b)

src/cephadm/cephadm

index 763e42c7daf6474bf2a0fdbb8e4ea38fb543a0fa..5dce6d389166eb11ef20f31afc3b1beac003a9b1 100755 (executable)
@@ -4572,8 +4572,8 @@ def command_ceph_volume(ctx):
         privileged=True,
         volume_mounts=mounts,
     )
-    verbosity = CallVerbosity.VERBOSE if ctx.log_output else CallVerbosity.VERBOSE_ON_FAILURE
-    out, err, code = call_throws(ctx, c.run_cmd(), verbosity=verbosity)
+
+    out, err, code = call_throws(ctx, c.run_cmd())
     if not code:
         print(out)
 
@@ -7079,7 +7079,6 @@ class CephadmDaemon():
         # expects to use
         self.ctx.command = 'inventory --format=json'.split()
         self.ctx.fsid = self.fsid
-        self.ctx.log_output = False
 
         ctr = 0
         exception_encountered = False
@@ -7697,11 +7696,6 @@ def _get_parser():
     parser_ceph_volume.add_argument(
         '--keyring', '-k',
         help='ceph.keyring to pass through to the container')
-    parser_ceph_volume.add_argument(
-        '--log-output',
-        action='store_true',
-        default=True,
-        help='suppress ceph volume output from the log')
     parser_ceph_volume.add_argument(
         'command', nargs=argparse.REMAINDER,
         help='command')