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

Arbiter crashloop on chart 8.0.0+ #24597

Closed
lzoeckle opened this issue Mar 20, 2024 · 4 comments
Closed

Arbiter crashloop on chart 8.0.0+ #24597

lzoeckle opened this issue Mar 20, 2024 · 4 comments
Assignees
Labels
mongodb-sharded solved stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@lzoeckle
Copy link

lzoeckle commented Mar 20, 2024

Name and Version

bitnami/mongodb-sharded:8.0.2

What architecture are you using?

amd64

What steps will reproduce the bug?

I believe I'm running into the same bug as this previous issue, but with the sharded chart. See bitnami/containers#63885

My values.yaml look like:

image:
  tag: 7.0.7-debian-12-r0
  pullPolicy: IfNotPresent
  debug: true
shards: 4
defaults: &defaults
  resources:
    requests:
      cpu: 20m
      memory: 256Mi
    limits:
      cpu: 500m
      memory: 512Mi
mongos:
  replicaCount: 1
  <<: *defaults
configsvr:
  replicaCount: 3
  <<: *defaults
shardsvr:
  dataNode:
    replicaCount: 2
    <<: *defaults
  arbiter:
    replicaCount: 1
    <<: *defaults

What is the expected behavior?

The arbiter should start successfully.

What do you see instead?

Crashloop with the error mkdir: cannot create directory '/bitnami/mongodb/data/db': Read-only file system

If I update the arbiter to include

containerSecurityContext:
    readOnlyRootFilesystem: false

I see mkdir: cannot create directory '/bitnami/mongodb/data/db': Permission denied instead.

Additional information

It looks like the same volumeMounts entry may be missing from the arbiter's statefulset.yaml, as in the other bug.

@lzoeckle lzoeckle added the tech-issues The user has a technical issue about an application label Mar 20, 2024
@github-actions github-actions bot added the triage Triage is needed label Mar 20, 2024
@carrodher carrodher transferred this issue from bitnami/containers Mar 21, 2024
@github-actions github-actions bot removed the triage Triage is needed label Mar 21, 2024
@github-actions github-actions bot assigned dgomezleon and unassigned javsalgar and carrodher Mar 21, 2024
@lzoeckle
Copy link
Author

lzoeckle commented Mar 22, 2024

Adding here, I was able to get things running by including

extraVolumeMounts:
      - mountPath: /bitnami/mongodb
        name: empty-dir
        subPath: app-volume-dir

in shardsvr.arbiter.

@dgomezleon
Copy link
Member

Hi @lzoeckle ,

Thanks for letting us know. Would you like to contribute with a PR implementing that solution? The Bitnami team will be excited to review your submission and offer feedback. You can find the contributing guidelines here.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Apr 17, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mongodb-sharded solved stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

5 participants