Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reef: mon/MonClient: before complete auth with error, reopen session #52135

Merged
merged 1 commit into from Jun 28, 2023

Conversation

rzarzynski
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/61742


backport of #51424
parent tracker: https://tracker.ceph.com/issues/58379

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

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 f8dad00)
@rzarzynski rzarzynski requested a review from a team as a code owner June 20, 2023 15:36
@rzarzynski rzarzynski added this to the reef milestone Jun 20, 2023
@github-actions github-actions bot added the mon label Jun 20, 2023
@ljflores
Copy link
Contributor

jenkins test make check

@ljflores
Copy link
Contributor

@yuriw yuriw merged commit 5d884a1 into ceph:reef Jun 28, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants