-
Notifications
You must be signed in to change notification settings - Fork 223
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
Issue using any urllib3>=1.26.16 #1912
Comments
Can you give me more details on how the agent is being used? Did you add it yourself or is it an integration provided by ansible? |
So we use To identify this bug we did a manual test, we install it ourselves in a venv with all required ansible binaries. you activate the plugin in an
then you can test it with a simple debug task in a playbook: It either works if urllib3<=1.26.15 or issue a |
@v1v It looks like you wrote this. Can you take a look? Perhaps we need an explicit |
Sure, I'll try to reproduce this locally and see whether |
I'm getting security warnings for |
I reproduced the issue in https://github.com/iurisilvio/elastic-apm-1912, with tox to create different configurations and validate the bug. I created the issue and a PR in ansible-collections repo. from ansible_collections.community.general.plugins.callback.elastic import ElasticSource
source = ElasticSource("")
apm_cli = source.init_apm_client("http://localhost:8200", "service", None, None, None)
# NOT CLOSING $ python -Wd unclosed.py
sys:1: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 58904), raddr=('127.0.0.1', 8200)> from ansible_collections.community.general.plugins.callback.elastic import ElasticSource
source = ElasticSource("")
apm_cli = source.init_apm_client("http://localhost:8200", "service", None, None, None)
apm_cli.close() $ python -Wd closed.py |
It is not a bug in https://www.elastic.co/guide/en/apm/agent/python/current/api.html |
thanks, found it: ansible-collections/community.general#7518 (comment) |
Using
elastic-apm
for ansible callbackcommunity.general.elastic
works fine up until urllib3==1.26.15.Anything above ends up with error message:
Closing the transport connection timed out
Tested with
1.26.16
1.26.17
2.0.5
2.0.6
The text was updated successfully, but these errors were encountered: