-
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
[BUG] Wrong parameter passed to dnf5 for list upgrades #67743
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
@extiop Sorry but from the versions report, using Python 3.11.6, this was installed from PyPI or from a Fedora package and not the supported Salt onedir architecture packages. Can you retry with the supported Salt released package. Not saying there isn't a problem, and needing to |
@extiop Well, just checked on Fedora 41 and looks like Looks like things got added back since |
@extiop Can you try all of this without using Qubes, that is, just using Salt and dnf|dnf5. On a Fedora 40 system with dnf and dnf5, I don't see any problems using Salt 3006.9
Note saying there isn't an issue, esp. going through |
And with Salt 3007.1
|
Description
dnf5 since fedora-41 is linked to
/usr/bin/dnf
(cf. this issue and it introduces breaking changes, notably for listing upgrades. Latest salt implementation (STS, i.e. 3007.x) uses exactly the same parameters for it in order to do the same things as done with /usr/bin/dnf4, but it does not work well.Setup
Steps to Reproduce the behavior
Essentially it is a wrapper to
salt-ssh
which passes notablylist upgrades
parameters to dnf on fedora:Expected behavior
list upgrades
command should list upgrades available via dnf5 on fedora-41.Versions Report
salt-call --local test.versions
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
qubesctl is a binary used in Qubes OS and is masterless usage of salt and testing repositories uses salt 3007.1 (cf. this comment).
Hence updates with latest salt versions (cf. this comment) is not working fine with fedora-41, notably with Qubes OS latest fedora templates. This is due to this commit from this PR and this line exactly shipped since salt 3007.1.
The fix is to use
--upgrades
instead ofupgrades
on above quoted line:[user@fedora-41 ~]$ /usr/bin/dnf list --upgrades Updating and loading repositories: Repositories loaded. Available upgrades c-ares.x86_64 1.34.4-3.fc41 updates double-conversion.x86_64 3.3.1-1.fc41 updates libaom.x86_64 3.11.0-1.fc41 updates tcl.x86_64 1:8.6.14-5.fc41 updates
The text was updated successfully, but these errors were encountered: