]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: pass RADOS inst to LibCephFS 19907/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 31 Oct 2017 18:55:29 +0000 (11:55 -0700)
committerPrashant D <pdhange@redhat.com>
Wed, 10 Jan 2018 22:50:45 +0000 (17:50 -0500)
This avoids multiple instances of the admin socket and other redundancies.

Fixes: http://tracker.ceph.com/issues/21967
Fixes: http://tracker.ceph.com/issues/21406
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 76a950b2ec473741ed3cffca5c198e8c56f32a1c)

src/pybind/ceph_argparse.py

index 57a5390c77b74dca2ec4b1fc899289175170d9fb..d8a9f4bd5e039d048358080db1f783b79b106728 100644 (file)
@@ -1252,9 +1252,7 @@ def send_command(cluster, target=('mon', ''), cmd=None, inbuf='', timeout=0,
             except ImportError:
                 raise RuntimeError("CephFS unavailable, have you installed libcephfs?")
 
-            filesystem = LibCephFS(cluster.conf_defaults, cluster.conffile)
-            filesystem.conf_parse_argv(cluster.parsed_args)
-
+            filesystem = LibCephFS(rados_inst=cluster)
             filesystem.init()
             ret, outbuf, outs = \
                 filesystem.mds_command(mds_spec, cmd, inbuf)