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] Empty-Dir volume is missing in the default arbiter node configuration #23905

Closed
SeWieland opened this issue Feb 26, 2024 · 2 comments · Fixed by #23936
Closed
Assignees
Labels
mongodb solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@SeWieland
Copy link

Name and Version

bitnami/mongodb 14.12.0

What architecture are you using?

amd64

What steps will reproduce the bug?

Deploy the chart with default values and replicaset architecture with arbiter node.

In version 14.12.0, the arbiter node declares mounts of the "empty-dir" volume.
However, the empty-dir volume only gets created conditionally using:

{{- if or .Values.arbiter.configuration .Values.arbiter.existingConfigmap .Values.arbiter.extraVolumes .Values.tls.enabled }}

Are you using any custom parameters or values?

No response

What is the expected behavior?

The empty-dir volume should be created unconditionally

What do you see instead?

The arbiter pod cannot be created:

create Pod mongodb-arbiter-0 in StatefulSet mongodb-arbiter failed error: Pod "mongodb-arbiter-0" is invalid: [spec.containers[1].volumeMounts[0].name: Not found: "empty-dir", spec.containers[1].volumeMounts[1].name: Not found: "empty-dir", spec.containers[1].volumeMounts[2].name: Not found: "empty-dir", spec.containers[1].volumeMounts[3].name: Not found: "empty-dir"]

Additional information

550fbdc#diff-612eca9dddc4865c19f9f215f63fdd2c6089626c7a7d2102c2d713abd196aed7

@SeWieland SeWieland added the tech-issues The user has a technical issue about an application label Feb 26, 2024
@SeWieland SeWieland changed the title [bitmait/mongodb] Empty-Dir volume is missing in the default arbiter node configuration [bitnami/mongodb] Empty-Dir volume is missing in the default arbiter node configuration Feb 26, 2024
@github-actions github-actions bot added the triage Triage is needed label Feb 26, 2024
@SeWieland
Copy link
Author

As a workaround I simply added

arbiter:
  # Workaround for https://github.com/bitnami/charts/issues/23905
  extraVolumes:
  - name: dummy-dir
    emptyDir: {}

To my values yaml until this issue gets resolved

@javsalgar
Copy link
Contributor

Hi! Thank you so much for reporting. I created the PR above to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mongodb solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants