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

mons: restore-quorum should proceed with probing #324

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

subhamkrai
Copy link
Collaborator

currently, mon restore-quorum fails if mon status is not in leader or peon but it should also include probing state as when majority of the mons down mons goes to probing state until it finds the other mons.

Issue resolved by this Pull Request:
Resolves #323

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

currently, mon restore-quorum fails if mon status is not
in leader or peon but it should also include probing state as
when majority of the mons down mons goes to probing state
until it finds the other mons.

Signed-off-by: subhamkrai <srai@redhat.com>
upload-artifact version v2 is depricated, we need to update to latest
version

Signed-off-by: subhamkrai <srai@redhat.com>
@subhamkrai subhamkrai merged commit 66c2a48 into rook:master Sep 11, 2024
6 checks passed
@subhamkrai subhamkrai deleted the add-mon-probe-state branch September 11, 2024 15:37
@@ -327,7 +327,7 @@ func validateMonIsUp(ctx context.Context, clientsets *k8sutil.Clientsets, cluste

logging.Info("mon %q state is %q", monID, monStatusOut.State)

if monStatusOut.State == "leader" || monStatusOut.State == "peon" {
if monStatusOut.State == "leader" || monStatusOut.State == "peon" || monStatusOut.State == "probing" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@subhamkrai try to change this error message in future PR

return fmt.Errorf("mon %q in %q state but must be in leader/peon/probing state", monID, monStatusOut.State)

@travisn travisn changed the title mons: restore-quorum should procced with probing mons: restore-quorum should proceed with probing Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to simulate most monitor failure scenarios?
3 participants