From 1d30bb4e79705f1efe2e9017b015b242da2802c7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 25 Apr 2019 20:19:03 +0800 Subject: [PATCH] crimson/mon: set entity_name before trying to connect to mon otherwise Monitor.cc or AuthMonitor.cc won't be able to find it in the keyring. Signed-off-by: Kefu Chai --- src/crimson/mon/MonClient.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index de90d43da94..4cf88fbe7d4 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -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); -- 2.39.5