Closed sootythebear closed 1 year ago
Reviewing the requests code, a rebuild_proxies() function was added at 2.26.0.
Issues have been raised around this function, and the following PR is presently open: https://github.com/psf/requests/pull/5893
The PR mentioned is merged, please retest with the latest salt version and file a new bug if needed.
Description When using the elasticsearch module, where the communication is configured to use "proxies" within the elasticsearch profile, the module fails if the Python environment has requests version 2.26.0 installed. The module, same profile, does not fail if the requests version is 2.25.1 is used.
Setup
Please be as specific as possible and give set-up details.
The Salt Minion is running within a Python virtualenv.
Steps to Reproduce the behavior
In this particular example, the module is being called within a state via:
Elasticsearch Profile
Salt Minion env output
Salt Minion debug output
Expected behavior The Elasticsearch module is able to source the required proxy information, either from the Salt Minion elasticsearch configuration or via the shell environment.
Screenshots If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
Salt Master and Minion are the same version. Enclosed **pip list** provided after versions report ( **Note:** pip list is from working env, Update **requests** to 2.26.0 and it fails as above). ``` ./salt --versions-report Salt Version: Salt: 3002.6 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.8.2 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.0.1 libgit2: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: Not Installed pycryptodome: 3.10.1 pygit2: Not Installed Python: 3.6.8 (default, Mar 18 2021, 08:58:41) python-gnupg: Not Installed PyYAML: 5.4.1 PyZMQ: 22.1.0 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.4 System Versions: dist: rhel 8.4 Ootpa locale: UTF-8 machine: x86_64 release: 4.18.0-305.3.1.el8_4.x86_64 system: Linux version: Red Hat Enterprise Linux 8.4 Ootpa ``` ``` Package Version ------------------ --------- certifi 2021.5.30 chardet 4.0.0 charset-normalizer 2.0.1 croniter 1.0.15 distro 1.5.0 elasticsearch 7.13.3 idna 2.10 Jinja2 3.0.1 MarkupSafe 2.0.1 msgpack 1.0.2 pip 21.1.3 psutil 5.8.0 pycryptodomex 3.10.1 pyinotify 0.9.6 python-dateutil 2.8.2 PyYAML 5.4.1 pyzmq 22.1.0 requests 2.25.1 salt 3002.6 setuptools 57.1.0 six 1.16.0 urllib3 1.26.6 wheel 0.36.2 ```Additional context The error mentions the inability to source "no_proxy". I did attempt setting the "no_proxy" ENV variable within the service environment and as "no:" within the Elasticsearch profile, but this did not effect the outcome.