-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
wait-for-db check won't ever pass with internal mongodb #310
Comments
Curious to know what your cluster shows of the command: |
Can you please clarify? |
Here is the terraform call creating the helm release so you have access to the (templated) values being used, in case you want that info as well:
and here is the requested output from
|
@cflanny that's strange as I do not see
I wonder if something has changed recently, but I have not played around with it. |
That's probably the reason here as the default for the Helm chart is a For the upstream chart templating values we have the following: and so here:
instead of hardcoding |
Yeah nah, that won't work. MongoDB is using different naming and relying on different variables for the different archirectures (replicaset vs standalone):
|
Thanks @armab for that. You are correct and I definitely missed that. In a way this is as designed, correct? Should we support non-HA mode like this for our |
For what it's worth, putting Mongo back into high-availability seems to have taken care of that problem, and it would appear the reason for me setting it to standalone has also been taken care of (bug in downstream Mongo chart causing fresh container in fresh namespace to CrashLoop.) This can probably be fixed with an if on the service name depending on the value of Values.mongodb.architecture. |
Yeah, a Pull Request is welcome to fix this issue 👍 |
There is a service name mismatch between the 'wait-for-db' check helper and the service name for mongodb being created by the chart, specifically right here:
stackstorm-k8s/templates/_helpers.tpl
Line 112 in b6419e6
You are looking for
{{ $.Release.Name }}-mongodb-headless
when the service created matches{{ $.Release.Name }}-mongodb
. I would have created a pull request to fix, but was denied permission to push a branch.Here is proof of the fix from my test environment:
The text was updated successfully, but these errors were encountered: