]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: reset auth state in shutdown()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 1 Apr 2021 08:55:36 +0000 (10:55 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Apr 2021 18:50:53 +0000 (20:50 +0200)
commit5619a650a2bb9e606d3d92a638602c638c944c98
tree11c195dde4a788105c5bdbbb4c14b0b20dd81aeb
parenta4369b611d362ccdb9eb5ef319267d916a9e2ecb
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 <idryomov@gmail.com>
(cherry picked from commit c9b022e07392979e7f9ea6c11484a7dd872cc235)
src/mon/MonClient.cc