]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: before complete auth with error, reopen session 51424/head
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 10 May 2023 09:42:07 +0000 (09:42 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 11 May 2023 04:56:43 +0000 (04:56 +0000)
commitf8dad00f07f52d58d8ec67083e8bf568deec3277
tree691056b0a2219aff99cd7a01d49b6765c891c050
parentb42a7305baf87d5c1048adfae0294c2c5a9efcae
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>
src/mon/MonClient.cc