-
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] dnf5 installs packages it should download #67769
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. |
@Ofenhed You need to fill out the template for an issue, specifically version of salt, nothing will be done until the version of Salt is specified and OS, and how the problem can be duplicated, exact commands are welcome, otherwise, a fix for something else found might be made which does not address your issue. Understand you are probably using Fedora 41, but need it stated, also a Fedora package for Salt, or Salt one-dir architecture etc. |
@Ofenhed You stated
I am unable to find support for |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@dmurphy18 I've updated the issue with the requested information. |
@Ofenhed Perhaps you misunderstand me, but I could not find the option Looks like dnf5 has been quite altered since 2023, will need to examine other changes made to dnf5 since 2023 for what other additions need to be made / altered, see https://dnf5.readthedocs.io/en/latest/commands/download.8.html Also the Python version There is internal work to support Python versions 3.11, 3.12 and 3.13 but not ready for prime time yet and there are some issues using Salt with these versions of Python, the team is resource limited after the Broadcom acquisition at start of 2024. |
Description
There was a breaking change in #64675:salt/modules/yumpkg.py#L1711-R1719 that made it so that
pkg.downloaded
silently converts topkg.installed
.This is a very big issue for use cases such as VM:s with a common base image, where packages untrusted for certain domains are still downloaded for all domains and installed in the VM only when needed. This could include packages with automatically executing services, or packages containing files with permission attributes or suid flags set.
As far as I can tell, dnf5 still supports
--downloadonly
(but has issues withdnf -C install
, so it has greatly reduced its functionality). Unless there is some interoperability issues with other arguments, I suggest that the change to how--downloadonly
is handled is reverted.Setup
Steps to Reproduce the behavior
Create a list of packages to download, e.g.:
Expected behavior
Those packages are downloaded to the dnf cache, or an error is thrown if that transaction fails.
Actual behavior
Those packages are installed.
Versions Report
salt-minion --verions-report
dnf5 --version
The text was updated successfully, but these errors were encountered: