]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/mon: set entity_name before trying to connect to mon
authorKefu Chai <kchai@redhat.com>
Thu, 25 Apr 2019 12:19:03 +0000 (20:19 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 16:12:57 +0000 (00:12 +0800)
otherwise Monitor.cc or AuthMonitor.cc won't be able to find it in the
keyring.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc

index de90d43da94cec5c880176e055d63936bcfb6141..4cf88fbe7d4f2b85f0c4e5c6362258c1396631f7 100644 (file)
@@ -398,6 +398,7 @@ Client::Client(Client&&) = default;
 Client::~Client() = default;
 
 seastar::future<> Client::start() {
+  entity_name = ceph::common::local_conf()->name;
   auth_registry.refresh_config();
   return load_keyring().then([this] {
     return monmap.build_initial(ceph::common::local_conf(), false);