-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
redis cache plugin does not accept (bracketed) IPv6 addresses #497
Comments
Files identified in the description: If these files are inaccurate, please update the |
i can't reproduce issue:
^^ full output of |
Looking at the code, I'm surprised if it really works: https://github.com/ansible-collections/community.general/blob/main/plugins/cache/redis.py#L128 |
(Or maybe the redis Python library got some magic to extract the correct IPv6 address, but it was only added later?) |
Can you reproduce it with your setup if you explicitly specify a port number? Because that was also done in the reported scenario. |
@branleb can you please tell how do i specify it ? i'm actually no idea what is |
@branleb Can you please provide the required details? Thanks. needs_info |
e.g.: I just tried the case you specified as cannot reproduce (bracketed IPv6 localhost, no quoting) Didn't work for me either. I got the same result as initially described: `PLAY [ansible] **************************************************************************************************************************************************************************************************************************************************************** Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): So apparently, the bug has been fixed somewhere in beetween v2.9.6 and your v2.11.0.dev0? |
@branleb Could you please test if your problem has been solved with latest ansible-core and ansible releases? needs_info |
@branleb I took a look at the code, and the fact that it was using In the long run, I believe we should deprecate the current syntax and try to use a more standard url, maybe in the like of:
But that should be a different PR than this one. |
SUMMARY
The redis cache plugin does not accept a fact_caching_connection with an IPv6 address
ISSUE TYPE
COMPONENT NAME
redis cache plugin
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
I used Debian Buster 10.4 backports packages
STEPS TO REPRODUCE
Change CACHE_PLUGIN_CONNECTION(/etc/ansible/ansible.cfg) to a value with an IPv6 address, e.g. "[::1]:6379:0" (In my actual use case, its a link local unicast address from another machine, but ip6-localhost produces the same result) and use the redis fact cache plugin
EXPECTED RESULTS
The play would run
ACTUAL RESULTS
ansible won't run at all
The text was updated successfully, but these errors were encountered: