-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salt-master doesn't work in fedora 31 + tornado 6 #54392
Comments
Salt doesn't support Tornado 6.0 yet but is looking at addressing the issue but are unable to give a timeframe as to when support will be available. |
I don't mean to throw fuel on this fire but I've now lost configuration and control of 15 hosts. They all have a fun memory leak too (if I leave salt-minion enabled). |
I'm running into this exact same issue. Could someone post a workaround regardless of 'hacky' it is? I'm thinking about installing tornado5 in an alternate location and changing these references.
|
@leifliddy You'd have to downgrade python3-tornado to the latest 4.x version. But I only see 6.0.2 in the Fedora repos. |
@brejoc thanks! tornado 5.x works fine with salt. In fact, I used the python2-tornado-5.0.2-5 rpm on Fedora 30 without issue. With Fedora 31, all of the python salt dependency packages were transitioned from python2 --> python3.
|
Alpine Linux upgraded to tornado 6 as well, so this is going to be an issue there. |
opensuse tumbleweed has had tornado 6 for awhile too: https://software.opensuse.org/package/python3-tornado |
I also experienced this in Fedora 31, and was able to solve it following the instructions in this comment: #54392 (comment) . Well done! |
It's true that there is tornado 6, but we also have several old tornado versions exactly for cases like this. So openSUSE is good for now. |
This issue isn't just for salt-master, it's for salt in general which includes salt-minions too. So this includes minions that are bootstrapped without providing the parameters to install from pip. Using salt-cloud/salt-bootstrap to install from pip requires 2 things. Installing from git, which is blocked due to an issue in salt-bootstrap, and to use a virtualenv which isn't available in salt-bootstrap for anything but ubuntu. I imagine most users would rather install python-tornado into their minion's global python packages and risk ruining dependencies rather than not communicate with any of their minions that salt-bootstrap can't install a downgraded tornado in. Can the OP update the title to something like "salt doesn't work with tornado 6 which is now default for most distributions"? |
saltstack/salt-bootstrap#1381 seems to have been merged, so the workaround that I had mentioned wrt installing For users that can't re-deploy, just ssh in and apply the directions mentioned in that comment as prior mentioned by thekabal. |
bootstrap using
will fail on Fedora31;
|
@53c70r, does saltstack/salt-bootstrap#1424 fix things? |
No since the Merge was 9 days ago and i executed the commands 3 days ago. |
vim bootstrap-salt.sh +3942
_PYEXE='python2' vim bootstrap-salt.sh +271 |
@53c70r, what about with '-x python3'? |
Works fine. |
If Salt would be upgraded to version 3000, the tornado dependency would be gone, since it's vendored in |
@itamarjp With Salt 2000 release a version of Tornado compatible with Salt is embedded in Salt, it utilizes Tornado v4.5.3. Salt 3000 is now available for current versions of Fedora. With the Sodium point release it is hope that Salt will be able to utilize bot Tornado v5.x and v6.x and work is on-going in this effort, and is currently under QA. If this satisfies the issue , please consider closing this issue. |
super glad that salt is finally vendorizing core dependencies. updating to newer releases should be significantly safer. |
closing this issue as fixed in 3000 |
https://bugzilla.redhat.com/show_bug.cgi?id=1748170
No module named 'tornado.stack_context'
https://www.tornadoweb.org/en/stable/releases/v6.0.0.html
APIs deprecated in Tornado 5.1 have been removed. This includes the tornado.stack_context
https://koji.fedoraproject.org/koji/buildinfo?buildID=1338741
The text was updated successfully, but these errors were encountered: