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] Problem with externalAccess and replicaset both enabled (slice index out of range) #26423

Closed
octane100 opened this issue May 24, 2024 · 8 comments
Assignees
Labels
mongodb solved stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@octane100
Copy link

octane100 commented May 24, 2024

Name and Version

bitnami/mongodb 15.6.0

What architecture are you using?

amd64

What steps will reproduce the bug?

Deploying a Mongodb cluster with 3 replicasets and externalAccess enabled:

Are you using any custom parameters or values?

values.yaml :

architecture: replicaset
replicaCount: 3
persistence:
  enabled: true
  storageClass: gp3
rbac:
  create: true
externalAccess:
  enabled: true
  autoDiscovery:
    enabled: true
  service:
    annotations:
      service.beta.kubernetes.io/aws-load-balancer-type: external
      service.beta.kubernetes.io/aws-load-balancer-scheme: internal
      service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
      service.beta.kubernetes.io/aws-load-balancer-attributes: deletion_protection.enabled=false
      external-dns.alpha.kubernetes.io/hostname: "{{`{{ $.targetPod }}`}}.internal.domain.com"
      service.beta.kubernetes.io/aws-load-balancer-healthcheck-healthy-threshold: "2"
pdb:
  create: true
  maxUnavailable: 1
serviceAccount:
  create: true
  automountServiceAccountToken: true
automountServiceAccountToken: true
replicaSetName: "mongo32test"
auth:
  enabled: true
  rootUser: admin
  existingSecret: "mongo-secret"
arbiter:
  enabled: false

What is the expected behavior?

Deployment running without error

What do you see instead?

STDERR:
  Error: Failed to render chart: exit status 1: Error: template: sso/charts/mongodb/templates/replicaset/external-access-svc.yaml:23:49: executing "sso/charts/mongodb/templates/replicaset/external-access-svc.yaml" at <index $root.Values.externalAccess.service.annotationsList $i>: error calling index: reflect: slice index out of range

Additional information

The issue has occurred since version 15.3.0 (#25397).

I can workaround the issue by adding these lines to the values.yaml :

externalAccess:
  service:
    annotationsList: # Workaround for bug introduced by https://github.com/bitnami/charts/pull/25397
      - 
      - 
      -  
@octane100 octane100 added the tech-issues The user has a technical issue about an application label May 24, 2024
@github-actions github-actions bot added the triage Triage is needed label May 24, 2024
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

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 Jun 12, 2024
@kamenskiyyyy
Copy link

kamenskiyyyy commented Jun 13, 2024

I have this problem too

I fixed it with:

externalAccess:
  enabled: true
  service:
    type: LoadBalancer
    annotations:
      service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
    loadBalancerIPs:
      - "10.98.3.51"
      - "10.98.3.52"
    annotationsList:
      - external-dns.alpha.kubernetes.io/hostname: ks01mongodb.sales.crm
      - external-dns.alpha.kubernetes.io/hostname: ks01mongodb.sales.crm

but, that's a patch, not a fix.

@carrodher carrodher added in-progress and removed stale 15 days without activity triage Triage is needed labels Jun 17, 2024
@github-actions github-actions bot assigned jotamartos and unassigned carrodher Jun 17, 2024
@jotamartos
Copy link
Contributor

Thank you for sharing the information regarding how you fixed the issue. As @carrodher mentioned above, would you like to contribute to this project? The team will review the changes and the whole community will benefit of the the update.

Copy link

github-actions bot commented Jul 5, 2024

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 Jul 5, 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 Jul 10, 2024
@62316e
Copy link

62316e commented Jul 12, 2024

Any updates on this one?

@kamenskiyyyy
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mongodb 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

6 participants