From: Alfredo Deza Date: Thu, 20 Feb 2014 20:49:15 +0000 (-0500) Subject: call ceph-mon in hosts.common X-Git-Tag: v1.4.0~11^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0757b384c7518b5905e943edbdc037df06e6a4e1;p=ceph-deploy.git call ceph-mon in hosts.common Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/common.py b/ceph_deploy/hosts/common.py index 0238f40..c8ffb09 100644 --- a/ceph_deploy/hosts/common.py +++ b/ceph_deploy/hosts/common.py @@ -67,7 +67,8 @@ def mon_create(distro, args, monitor_keyring, hostname): distro.conn.remote_module.create_init_path(init_path) -def mon_add(distro, args, monitor_keyring, hostname): +def mon_add(distro, args, monitor_keyring): + hostname = distro.conn.remote_module.shortname() logger = distro.conn.logger path = paths.mon.path(args.cluster, hostname) monmap_path = paths.mon.monmap(args.cluster, hostname) @@ -149,3 +150,14 @@ def mon_add(distro, args, monitor_keyring, hostname): # create init path distro.conn.remote_module.create_init_path(init_path) + # start the mon using the address + process.run( + distro.conn, + [ + 'ceph-mon', + '-i', + hostname, + '--public-addr', + args.address, + ], + )