Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Proxy + file.managed => Comment: Failed to cache xxx invalid arguments to setopt #46896
Description of Issue/Question
Steps to Reproduce Issue
Configure a proxy on you minion and add a file.managed source from http.
When I do not configure a proxy I have a timeout (this is normal, no direct access to Internet)
Seems to be related to the tornado backend, Using one of the other backends, makes it work (for me):
The version of tornado is the same between my 2016.11/2017.7/2018.3 minions (4.2.1). I also tried upgrading tornado to 5.0.1 with pip.
I have the same problem with the archive.extracted and tornado backend:
the minion configuration is:
Did some testing. Python3 salt-minon works fine with tornado (it is using different version of python34-tornado from epel, not from saltstack repo).
we had the same issue here. The root cause might be in module http.query:
the proxy_host option being passed as a unicode string seems to be the issue.
i.e. proxy_host=u'proxy' fails, but proxy_host='proxy' succeeds
Python3 doesn't have this distinction (IIRC), which would explain why it functions as expected there
This works for me (in salt/utils/http.py), with py2 -- haven't had a chance to test it w/py3 yet :