-
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
2016.3.0: modules.pkg.upgrade not liking not passing an argument. #33609
Comments
This also breaks the pkg.uptodate state, which calls pkg.upgrade without an argument. |
I'm seeing this too. Looks like commit b8b6ac7 made a change to I'm currently working around it with this patch:
Versions Report
|
I am able to replicate this and my git bisect also shows the same commit that @redmcg as the first bad commit. Thanks |
Please add a Unit Test |
I am also seeing this, and it breaks all my linux updates. How much longer is a bad regression like this going to survive on a latest, stable and recommended production release? Any expected update/fix timeframe? |
Looks like this is actually a duplicate of #33530 and there is a fix that will be included with 2016.3.1. Can anybody confirm this fix works for them? |
@Ch3LL That patch worked for me. But The output for my test follows (you can see the reported ERROR in there):
|
Also facing this odd issue. |
@danlsgiga you didn't provide any information about the version you are running, but the fix referenced in this issue is in 2016.3.1. Please attempt again on that version. |
@terminalmage the patch in 2016.3.1 is 'better' but there is still a regression in there.
|
@terminalmage I was at the same version at the time of my comment. Thanks for reporting back about the fix on 2016.3.1. I've tested and it works fine! |
@TheBigBear I noticed that too and fixed it in #34524. Just to be clear: the error that was logged did not represent a functional problem, it was logged because we were running pkg_resource.parse_targets when we didn't need to. |
@terminalmage I take your word for it. I was NOT saying this reminding 'error' in the log was an actual problem, seeing that the upgrade actually happened, but merely saying that the 2016.3.1 output and log still suggest there is an "[error]". Thanks for fixing this as well and getting rid of the extraneous (and wrong - I suppose?) log entry. Well done. Will test when it get's released and report back here if it's now gone. |
Yeah the log entry occurs when you invoke parse_targets with invalid input. We shouldn't have been calling it in the first place. This was caused by a community member adding the ability to specify packages to upgrade (see b8b6ac7), which uses |
Description of Issue/Question
since upgrading to 2016.3.0 having issues with upgrading. pkg.upgrade complains about NoneType when ran without an argument. which used to be how to upgrade an entire system.
Setup
Centos 7.2
Steps to Reproduce Issue
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: