Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
execution module cp.cache_file fails with error 'invalid arguments to setopt' #49275
Description of Issue/Question
cp.cache_file fails on CentOS 7 python2 installation with Tornado 4.2.1 with the error "Passed invalid arguments to cp.cache_file: invalid arguments to setopt" when running the execution module from the shell. Anything which obviously is using cp.cache_file to download something is failing.
cp.cache_file works on CentOS 7 python34 installation with Tornado 4.4.2
CentOS 7 with salt python2 from repo https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
Steps to Reproduce Issue
CentOS 7 with python2 which fails
Centos 7 with python34 which works
I am unable to replicate this issue, can you provide me with more information?
I should have probably mentioned that I am behind a squid http proxy.
I just now tried with a new host install and getting the same error behind a http proxy. I can not see any traffic to the proxy with tcpdump so I think it is an issue with the minion proxy settings?
These are the only settings in /etc/salt/minion I used
This is what I used to run the command:
This is the versions report of the clean host which fails:
This is the formula is used for testing https://github.com/dgengtek/testing-formula/tree/issue/49275
These are the kitchen logs with the error:
I have replicated this issue with the following docker compose setup.
Thanks for reporting.