From: Radoslaw Zarzynski Date: Mon, 25 Jul 2022 14:42:00 +0000 (+0000) Subject: crimson/monc: renew tickets and rotating keys on MAuthReply X-Git-Tag: v18.0.0~421^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ccc4e33c115edc20a880b087ce0e836f0fafea29;p=ceph.git crimson/monc: renew tickets and rotating keys on MAuthReply Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index 928b36a375d3..6a64dba9630f 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -816,7 +816,11 @@ seastar::future<> Client::handle_auth_reply(crimson::net::ConnectionRef conn, if (found != pending_conns.end()) { return (*found)->handle_auth_reply(m); } else if (active_con) { - return active_con->handle_auth_reply(m); + return active_con->handle_auth_reply(m).then([this] { + return seastar::when_all_succeed( + active_con->renew_rotating_keyring(), + active_con->renew_tickets()).then_unpack([] {}); + }); } else { logger().error("unknown auth reply from {}", conn->get_peer_addr()); return seastar::now();