Skip to content

Redis with sentinel does not announce hostname because of regression #32573

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

Open
RemcodM opened this issue Mar 23, 2025 · 2 comments · May be fixed by #33024
Open

Redis with sentinel does not announce hostname because of regression #32573

RemcodM opened this issue Mar 23, 2025 · 2 comments · May be fixed by #33024
Assignees
Labels
in-progress redis stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@RemcodM
Copy link

RemcodM commented Mar 23, 2025

Name and Version

bitnami/redis 20.11.4

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Install bitnami/redis version 20.11.0+ to a dual stack (IPv4+IPv6) cluster, with sentinel enabled and the new external access service introduced in [bitnami/redis] feat: Add external access service for redis sentinel #32190 disabled (the default behaviour).

See from the logs that sentinel pods are flapping their IPs rapidly between the IPv4 and IPv6 addresses of the pod.

Are you using any custom parameters or values?

No custom values are needed to reproduce the issue.

What is the expected behavior?

The generated sentinel configuration should set sentinel announce-ip with the hostname of the pod, routed via the headless service.

What do you see instead?

bitnami/redis chart versions lower than 20.11.0 set sentinel announce-ip to the correct hostname as part of the start-sentinel.sh script. However, starting 20.11.0, introduced with PR #32190, this configuration is no longer set because it was wrapped inside the if-statement of the external service feature. Therefore, sentinels launched with chart version 20.11.0+ will announce their IPs to other sentinels.

In clusters with a dual stack network configuration (IPv4+IPv6), the sentinals will start flapping between their IPv4 and IPv6 addresses, causing log spam. In my cluster, this also causes random restarts because the flapping is somehow slowing down readiness and liveness probes. This might be because of resource CPU/memory limitations.

Additional information

It seems to me that this configuration change is a regression of #32190. Even with the external cluster service disabled, sentinel announce-ip should still be set to the correct hostname to prevent described behaviour.

@RemcodM RemcodM added the tech-issues The user has a technical issue about an application label Mar 23, 2025
@github-actions github-actions bot added the triage Triage is needed label Mar 23, 2025
@github-actions github-actions bot removed the triage Triage is needed label Mar 25, 2025
@github-actions github-actions bot assigned gongomgra and unassigned carrodher Mar 25, 2025
@gongomgra
Copy link
Contributor

Hi @RemcodM ,

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 Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress redis stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
3 participants