-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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: 2019.2.0 -> 3000.2 #85561
salt: 2019.2.0 -> 3000.2 #85561
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this out locally and seems to be working for me! Thanks for this, been waiting a while for Salt to release this update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM, better formatting than before. Minor note on repetition of version in msgpack
.
Builds locally with nixpkgs-review
(note: no tests run other than build)
https://github.com/NixOS/nixpkgs/pull/85561
1 package built:
salt
Salt 3000.2 and 2019.2.4 are out, fixing two CVEs: https://docs.saltstack.com/en/latest/topics/releases/3000.2.html |
In that case, I suggest:
I'm not sure if the backports should be of 2019.2.4 or 3000.2. I don't know enough about this package to know how much breaking changes there are b/w 2019 & 3000. @Mic92, thoughts? |
I would backport 2019.2.4. Salt is non-trivial software. |
This is now being exploited in the wild. saltstack/salt#57057 |
Thanks for the reference @mweinelt, I’m lucky that I run salt in a vpn only. I tried to backport 2019.2.4 but it does work neither for 20.03 nor for 19.09:
3000.2 builds and seems to work fine in 19.09 (didn’t test thoroughly). |
Yep, is outdated and seems to work.
For some reason v2019.2.4 requires an older PyYAML version, ours is at 5.2 already, but I can't see that requirement in their repository. |
Since this is a standalone application, you can override the pyyaml version
to 5.X and build with that. I'm not able to post an example right now, but
a search for overridepythonattrs should show an example.
…On Sun, May 3, 2020, 9:31 AM Martin Weinelt ***@***.***> wrote:
Does anyone know if the salt-minion in 20.03 and 19.09 actually works?
Yep, is outdated and seems to work.
❯ git reset --hard release-20.03
HEAD is now at c0137eb Merge pull request #86604 from LibreCybernetics/backport-keybase-upgrades
❯ nix-build -A salt
these paths will be fetched (9.22 MiB download, 47.56 MiB unpacked):
/nix/store/02ra46sj0kh4alkz76cd3vnfmcdprd5b-salt-2019.2.0
copying path '/nix/store/02ra46sj0kh4alkz76cd3vnfmcdprd5b-salt-2019.2.0' from 'https://cache.nixos.org'...
/nix/store/02ra46sj0kh4alkz76cd3vnfmcdprd5b-salt-2019.2.0
❯ cd result/bin
❯ ls
salt salt-api salt-call salt-cloud salt-cp salt-key salt-master salt-minion salt-proxy salt-run salt-ssh salt-syndic salt-unity spm
❯ ./salt-minion --version
/nix/store/02ra46sj0kh4alkz76cd3vnfmcdprd5b-salt-2019.2.0/lib/python2.7/site-packages/salt/scripts.py:198: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. Salt will drop support for Python 2.7 in the Sodium release or later.
salt-minion 2019.2.0 (Fluorine)
For some reason v2019.2.4 requires an older PyYAML version, ours is at 5.2
already, but I can't see that requirement in their repository.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#85561 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNZYI4FXO6SWNFYE2BVBMLRPVW3FANCNFSM4MLZJ46A>
.
|
Interesting that 2019.2.0 works on 20.03, thanks @mweinelt, I thought it might suffer from the same bug as on unstable. salt 2019.2.4 requires an old PyYaml as specified here. |
LGTM.
|
Result of 1 package built:- salt |
Motivation for this change
salt-minion service failed for me since a while with the following error, so I upgraded salt itself and python from 2 to 3.
The error is gone now and minion and master work as expected.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)