salt: Unable to run salt-ssh command against python 2.6 target
`[server-123]# salt --versions-report Salt Version: Salt: 2018.3.2
Dependency Versions: cffi: 1.11.5 cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed Jinja2: 2.10 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: Not Installed pycparser: 2.19 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.13 (default, Oct 9 2018, 14:04:55) python-gnupg: Not Installed PyYAML: 3.13 PyZMQ: 17.0.0 RAET: Not Installed smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.1.6
System Versions: dist: centos 6.10 Final locale: UTF-8 machine: x86_64 release: 4.4.180-1.el6.elrepo.x86_64 system: Linux version: CentOS 6.10 Final
[server-123]# salt-ssh ‘1350’ state.sls salt.install_salt-minion -i 1350: ---------- _error: Failed to return clean data retcode: 0 stderr: Traceback (most recent call last): File “/var/tmp/.root_183985_salt/salt-call”, line 15, in <module> salt_call() File “/var/tmp/.root_183985_salt/py2/salt/scripts.py”, line 395, in salt_call import salt.cli.call File “/var/tmp/.root_183985_salt/py2/salt/cli/call.py”, line 5, in <module> import salt.utils.parsers File “/var/tmp/.root_183985_salt/py2/salt/utils/parsers.py”, line 27, in <module> import salt.config as config File “/var/tmp/.root_183985_salt/py2/salt/config/init.py”, line 24, in <module> import salt.utils.data File “/var/tmp/.root_183985_salt/py2/salt/utils/data.py”, line 18, in <module> import salt.utils.stringutils File “/var/tmp/.root_183985_salt/py2/salt/utils/stringutils.py”, line 214 trans_args = ({ord(x): None for x in text_characters},) ^ SyntaxError: invalid syntax stdout: [root@DB4-34 salt]# `
The 1356 server python version is:
python -V Python 2.6.6
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (6 by maintainers)
As noted already, the problem here, that salt needs python 2.7 or greater for Python 2, is clearly covered by documentation in an appropriate place: https://docs.saltstack.com/en/master/topics/installation/index.html#dependencies
Although, arguably, the documentation for
salt-ssh
:… could be updated to be clear that the python requirement is the same as for salt itself.
This should be explicitly closed as a “wontfix” due to it being a non-supported python version and covered by documentation.