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

quincy: mon/Elector: notify_rank_removed erase rank from both live_pinging and dead_pinging sets for highest ranked MON #47086

Merged
merged 1 commit into from Aug 9, 2022

Conversation

kamoltat
Copy link
Member

@kamoltat kamoltat commented Jul 13, 2022

Added a case where we are removing the highest rank monitor
in notify_rank_removed, the old version did not deal with this
since it would only go into the loop when rank_removed < paxos_size().
Therefore, we added an else case for when rank_removed == paxos_size(),
we erase the rank from both the live_pinging and dead_pinging sets.

Fixes: https://tracker.ceph.com/issues/55435

Backporting relevant commits from the main PR:

#46029

Signed-off-by: Kamoltat ksirivad@redhat.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Added a case where we are removing the highest rank monitor
in `notify_rank_removed`, the old version did not deal with this
since it would only go into the loop when rank_removed < paxos_size().
Therefore, we added an else case for when rank_removed == paxos_size(),
we erase the rank from both `live_pinging` and `dead_pinging` set.

Fixes: https://tracker.ceph.com/issues/55435

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 13f09d0)
@kamoltat kamoltat requested review from a team as code owners July 13, 2022 18:48
@kamoltat kamoltat requested review from melissa-kun-li and Pegonzal and removed request for a team July 13, 2022 18:48
@kamoltat kamoltat changed the base branch from main to quincy July 13, 2022 18:49
@kamoltat kamoltat removed request for a team, melissa-kun-li and Pegonzal July 13, 2022 18:49
@kamoltat kamoltat self-assigned this Jul 13, 2022
@kamoltat kamoltat added backport: no-conflicts Backport without conflicts backport quincy labels Jul 13, 2022
@kamoltat kamoltat requested a review from a team July 13, 2022 18:51
@kamoltat kamoltat added this to the quincy milestone Jul 13, 2022
@kamoltat
Copy link
Member Author

jenkins test api

@yuriw yuriw merged commit 6321cb4 into ceph:quincy Aug 9, 2022
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants