]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: before complete auth with error, reopen session 52133/head
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 10 May 2023 09:42:07 +0000 (09:42 +0000)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Tue, 20 Jun 2023 15:26:41 +0000 (17:26 +0200)
commit19a322e73b473c02eb9ab534bd91d6f4805a7100
tree894f3b1233708b5d9b48f5fde7e8d55f6211c91a
parentb836b6bc5a20d18357b2f9e8ac006e18500b3211
mon/MonClient: before complete auth with error, reopen session
When monClient try to authenticate and fail with -EAGAIN there is
a possibility that we no longer hunting and not have active_con.
that will result of disconnecting the monClient and ticks will continue
without having open session.
the solution is to check at the end of auth, that we don't have -EAGAIN
error, and if we do, reopen the session and on the next tick try auth again

Fixes: https://tracker.ceph.com/issues/58379
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit f8dad00f07f52d58d8ec67083e8bf568deec3277)
src/mon/MonClient.cc