FS#61129 - [salt] provide salt package based on py3
Attached to Project:
Community Packages
Opened by Chris Drexler (CKolumbus) - Wednesday, 19 December 2018, 08:59 GMT
Last edited by Antonio Rojas (arojas) - Monday, 20 June 2022, 06:43 GMT
Opened by Chris Drexler (CKolumbus) - Wednesday, 19 December 2018, 08:59 GMT
Last edited by Antonio Rojas (arojas) - Monday, 20 June 2022, 06:43 GMT
|
Details
Maintainer edit: Please do not bother commenting on this
unless it is related to Salt upstream either actively
working on, or having fully implemented, Tornado >5 with
Python 3.
Description: salt package is built against python2. I do have minions (windows, c.f. chocolatey default package switch to to py3 as well https://chocolatey.org/packages/saltminion) that are py3 based and master & minion have to match. Is it possible/reasonable to switch the salt package to be based on python3 or provide and additional package (salt-py3) that is? I see more and more minion installation switch to py3, so a matching master on arch might become more important in the future IMHO. Thanks for your support! Chris |
This task depends upon
https://docs.saltstack.com/en/latest/topics/releases/2019.2.0.html
Python 2.7 Deprecation
In light of Python 2.7 reaching its End of Life (EOL) on Jan 1st 2020, Python 2 will be deprecated from SaltStack no earlier than the Sodium release, that is either the Sodium release or a later release. This decision is pending further community discussion.
https://github.com/saltstack/salt/issues/51883
Is there some functionality we need that is being excluded by their build?
ref http://archive.ubuntu.com/ubuntu/pool/universe/s/salt/salt_2018.3.4+dfsg1-6ubuntu1.debian.tar.xz
[1] https://github.com/saltstack/salt/pull/55952
https://docs.saltstack.com/en/latest/topics/releases/3000.html#vendored-tornado-code-base
Vendoring stuff is explicitly not a solution:
<demize> shibumi: Myeah, and salt 3k has vendored an old tornado version to "solve" it, so I've been putting off updating it because I don't have the time to work on devendor it. .__.
<demize> shibumi: Because, you know, it's easier to vendor a 2 year old tornado version and hoping that no one finds any
<demize> security vulnerabilities in it than getting one of your employees to work on updating salt to support the new tornado versions.
So no, this is not going to happen, don't bother waiting.
"Please note that running Salt with Python 3.8 is currently not supported. It is recommended to not use a version higher than 3.7."
I have used AUR's salt-py3 without any problems, didn't test it with latest msgpack though...
Is tornado vendoring the only issue hindering this upgrade?
https://docs.saltstack.com/en/latest/topics/releases/3001.html
Presumably it should be good to go now?
https://github.com/saltstack/salt/issues/51883
[1] https://github.com/saltstack/salt/blob/v3001/salt/ext/tornado/__init__.py#L29
[2] https://github.com/saltstack/salt/pull/56169