charts icon indicating copy to clipboard operation
charts copied to clipboard

[bitnami/redis] Replica config grows with each restart

Open armsnyder opened this issue 1 year ago • 1 comments

Name and Version

bitnami/redis 17.0.8

What steps will reproduce the bug?

  1. Install the chart with Sentinel enabled, then trigger a container restart:

    helm install redis bitnami/redis --version 17.0.8 --set auth.enabled=false --set sentinel.enabled=true
    kubectl port-forward redis-node-0 6379
    redis-cli shutdown
    
  2. Check the replica.conf and see that the same data was appended twice:

    kubectl exec redis-node-0 -c redis -- cat /opt/bitnami/redis/etc/replica.conf
    
    dir /data
    # User-supplied replica configuration:
    rename-command FLUSHDB ""
    rename-command FLUSHALL ""
    # End of replica configuration
    replica-announce-port 6379
    replica-announce-ip redis-node-0.redis-headless.default.svc.cluster.local
    
    replica-announce-port 6379
    replica-announce-ip redis-node-0.redis-headless.default.svc.cluster.local
    

Are you using any custom parameters or values?

No response

What is the expected behavior?

No response

What do you see instead?

The replica.conf file grows with the same appended data after each container restart.

Additional information

Issue appears to be caused by these lines:

https://github.com/bitnami/charts/blob/74e05c5c3e31b53508cba7365388b6710ba9c854/bitnami/redis/templates/scripts-configmap.yaml#L183-L185

armsnyder avatar Aug 07 '22 01:08 armsnyder

Thanks for reporting this issue. I just saw there is already a PR (https://github.com/bitnami/charts/pull/11418) fixing the issue. We will take a look and provide feedback

carrodher avatar Aug 08 '22 11:08 carrodher

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.

bitnami-bot avatar Aug 24 '22 01:08 bitnami-bot