From: wangshaohui.0512 Date: Fri, 8 Aug 2025 10:23:47 +0000 (+0800) Subject: cephfs: make sure mon authenticate before objecter start X-Git-Tag: testing/wip-jcollin-testing-20251203.102401-tentacle^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30fab7d6328d79c055ff2aa800517bbd5ff87e72;p=ceph-ci.git cephfs: make sure mon authenticate before objecter start Signed-off-by: Shaohui Wang (cherry picked from commit 1de46f335ea21c7369c67a021da79f3c7e929e66) --- diff --git a/src/client/Client.cc b/src/client/Client.cc index f704f8205d5..c5f1cb2b46e 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -17666,6 +17666,22 @@ int StandaloneClient::init() monclient->shutdown(); return r; } + + r = authenticate(); + if (r < 0) { + // need to do cleanup because we're in an intermediate init state + { + std::scoped_lock l(timer_lock); + timer.shutdown(); + } + + client_lock.unlock(); + objecter->shutdown(); + objectcacher->stop(); + monclient->shutdown(); + return r; + } + objecter->start(); client_lock.unlock();