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

CLOUDP-116155 Initial bootup with arbiters #1024

Merged

Conversation

slaskawi
Copy link
Contributor

This Pull Request changes the order of creating the automation config and the StatefulSet upon first bootup. It is required that the automation config exists at the time of creating the StatefulSet.

All Submissions:

  • Have you opened an Issue before filing this PR?
  • Have you signed our CLA?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

@slaskawi slaskawi added the safe-to-test Add this label to PRs from forks to trigger E2E tests label Jun 24, 2022

t.Run("Create MongoDB Resource", mongodbtests.CreateMongoDBResource(&mdb, ctx))
t.Run("Check that the stateful set becomes ready", mongodbtests.StatefulSetBecomesReady(&mdb, wait.Timeout(20*time.Minute)))
t.Run("Check the number of arbiters", mongodbtests.AutomationConfigReplicaSetsHaveExpectedArbiters(&mdb, numberArbiters))
Copy link
Contributor

Choose a reason for hiding this comment

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

We can check here if the MongoDB has reached Running phase -- since the issue mentions about the resource not reaching running state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! Thanks for spotting this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to rewrite the whole test and introduce a parametrized tests there. Should be more readable now.

@slaskawi slaskawi force-pushed the CLOUDP-116155-Initial-bootup-with-arbiters branch from 08e4bd3 to c256024 Compare June 24, 2022 09:10
@slaskawi slaskawi added safe-to-test Add this label to PRs from forks to trigger E2E tests and removed safe-to-test Add this label to PRs from forks to trigger E2E tests labels Jun 24, 2022
@slaskawi slaskawi force-pushed the CLOUDP-116155-Initial-bootup-with-arbiters branch from c256024 to d336abe Compare June 29, 2022 10:42
@slaskawi slaskawi added safe-to-test Add this label to PRs from forks to trigger E2E tests and removed safe-to-test Add this label to PRs from forks to trigger E2E tests labels Jun 30, 2022
Copy link
Member

@mircea-cosbuc mircea-cosbuc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@irajdeep irajdeep left a comment

Choose a reason for hiding this comment

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

LGTM

@slaskawi slaskawi merged commit f0fe7d2 into mongodb:master Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe-to-test Add this label to PRs from forks to trigger E2E tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants