Closed AurimasNav closed 1 month ago
Hi @AurimasNav, the connection name (redisHost) you provided is incorrect. When connecting between namespaces in Kubernetes, you need to specify the fully-qualified DNS name (service name, hostname, and local cluster directly).
For example: redis-master.redis.svc.cluster.local
Hi, thanks for the clarification. Somehow the thought to test with fqdn escaped my mind since I could ping redis-master.redis from the weblate pod, test that the port is listening etc., also most of other services I've used had no problem accepting this hostname format, but as long as fqdn works the problem is solved.
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
I was to quick to mark it as resolved without testing. The redis-master.redis.svc.cluster.local produces exactly the same error. Once again I've tested the name from neighbouring pod in weblate namespace, I can resolve the name and verify that redis port is listening for redis-master.redis.svc.cluster.local.
I don't think it is related to helm issue. But at this moment I don't have time to reproduce this issue. Maybe do you have special characters in your databases user's password (e.g [
or similar)? In same situation urllib3 parser treating the password as an IPv6 address
It might be caused by special chars somewhere, the Redis URL is built naively, see https://github.com/WeblateOrg/weblate/blob/3c5dc2a805251404778737acedd64c2447396ebe/weblate/settings_docker.py#L1173-L1178 and https://github.com/WeblateOrg/weblate/blob/3c5dc2a805251404778737acedd64c2447396ebe/weblate/settings_docker.py#L1319-L1325
I've regenerated the password to include no special characters and it is working now.
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
Describe the issue
I'm unable to successfully configure values.yaml to use existing redis instance.
I already tried
Steps to reproduce the behavior
configure values.yaml
values.yaml
I have redis chart installed in namespace
redis
Expected behavior
weblate connects to existing redis instance
Screenshots
No response
Exception traceback
Additional context
If I change redisHost to
redis-master
I can see in the logs that it is trying to connect toredis-master:6379
and facing error due to unknown host, which is expected as it resides in another namespace, but when I specify full hostname with namespace included it produces the error above.helm chart version: 0.5.16