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

[bitnami/mongodb] fix: initial primary host variable for arbiter and hidden replicas #29584

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

romanj85
Copy link

@romanj85 romanj85 commented Sep 23, 2024

Description of the change

The environment variable MONGODB_INITIAL_PRIMARY_HOST was incorrectly populated in the original code with the name of its headless service. I.e. for arbiters -> %s-arbiter-headless and for hidden replicas -> "%s-hidden-headless.
The correct arbiter and hidden replicas should always be connected to the headless service running the primary replica - %s-headless - mongodb.service.nameOverride.

Benefits

Arbiter and hidden replicas can join the MongoDB cluster automatically by the first install.

Applicable issues

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

the headless service name for arbiter and hidden statefulsets is different

Signed-off-by: Roman Jancik <41371503+romanj85@users.noreply.github.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
@romanj85
Copy link
Author

This is related to the issue: #29393

@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Sep 24, 2024
@github-actions github-actions bot removed the triage Triage is needed label Sep 24, 2024
@github-actions github-actions bot removed the request for review from javsalgar September 24, 2024 06:47
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
@santimar
Copy link
Contributor

santimar commented Oct 3, 2024

Any update on this?
At the moment the mongo cluster created by default chart will stop work if the primary or the secondary go down.
It's supposed to stay up instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress mongodb verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arbiter not getting added to replicaset and and arbiter pod restart at first
6 participants