From: Ilya Dryomov Date: Thu, 1 Apr 2021 08:55:36 +0000 (+0200) Subject: mon/MonClient: reset auth state in shutdown() X-Git-Tag: v16.2.1~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5619a650a2bb9e606d3d92a638602c638c944c98;p=ceph.git mon/MonClient: reset auth state in shutdown() Destroying AuthClientHandler and not resetting global_id is another way to get MonClient to send CEPHX_GET_AUTH_SESSION_KEY requests with CephXAuthenticate::old_ticket not populated. This is particularly pertinent to get_monmap_and_config() which shuts down the bootstrap MonClient between retry attempts. Signed-off-by: Ilya Dryomov (cherry picked from commit c9b022e07392979e7f9ea6c11484a7dd872cc235) --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index b807d378e49b..3fa40e30d891 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -543,7 +543,11 @@ void MonClient::shutdown() active_con.reset(); pending_cons.clear(); + auth.reset(); + global_id = 0; + authenticate_err = 0; + authenticated = false; monc_lock.unlock();