]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: one-shot mon connection on started to fetch config
authorSage Weil <sage@redhat.com>
Tue, 5 Dec 2017 17:43:43 +0000 (11:43 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:48 +0000 (14:44 -0600)
commitfdde016301ae329f76c621337c384ac60aa0d210
treeb8cbf90a64b1ab22cdc3397c85e6ccf9ef88fbc4
parentf999e8aa544139a98f83659bb44fc38454af8388
mon/MonClient: one-shot mon connection on started to fetch config

This is not particularly efficient, but it works:

 - connect to the monitor to get the monmap and config
 - tear it all down
 - proceed with normal startup (which presumably involves reconnecting
   to the mon all over again).

This allows us to set config options that may affect the mon communication
itself, like ms_type.

Signed-off-by: Sage Weil <sage@redhat.com>
13 files changed:
src/ceph_fuse.cc
src/ceph_mgr.cc
src/ceph_mon.cc
src/ceph_osd.cc
src/common/ceph_argparse.cc
src/common/ceph_argparse.h
src/common/common_init.h
src/global/global_init.cc
src/libcephfs.cc
src/librados/RadosClient.cc
src/mon/MonClient.cc
src/mon/MonClient.h
src/tools/ceph_conf.cc