]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/monc: renew tickets and rotating keys on MAuthReply
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 25 Jul 2022 14:42:00 +0000 (14:42 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 12:04:39 +0000 (12:04 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/mon/MonClient.cc

index 928b36a375d321ada31fcba3aacf5d578b5a2b13..6a64dba9630fc3603417beb7d4f8c148a4f821f5 100644 (file)
@@ -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();