From: Alfredo Deza Date: Tue, 23 Sep 2014 17:02:28 +0000 (-0400) Subject: pass in the distro module to create_mds X-Git-Tag: v1.5.16~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99367ff51591daa224b8cb80076d434211776816;p=ceph-deploy.git pass in the distro module to create_mds Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py index 776dc39..aef180e 100644 --- a/ceph_deploy/mds.py +++ b/ceph_deploy/mds.py @@ -26,7 +26,8 @@ def get_bootstrap_mds_key(cluster): raise RuntimeError('bootstrap-mds keyring not found; run \'gatherkeys\'') -def create_mds(conn, name, cluster, init): +def create_mds(distro, name, cluster, init): + conn = distro.conn path = '/var/lib/ceph/mds/{cluster}-{name}'.format( cluster=cluster, @@ -158,7 +159,7 @@ def mds_create(args): rlogger.warning('mds keyring does not exist yet, creating one') distro.conn.remote_module.write_keyring(path, key) - create_mds(distro.conn, name, args.cluster, distro.init) + create_mds(distro, name, args.cluster, distro.init) distro.conn.exit() except RuntimeError as e: LOG.error(e)