-
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] pkg.installed
state with dnf
should mark the package as installed
#62441
Comments
Ensure that on RHEL 8 based OS, packages installed by MetalK8s are marked as "installed by user" so that they do not get removed as "unused dependencies". This commit also fix a bug where the `kubelet` package get removed in post-upgrade step that remove the `calico-cni-plugin` package. See: saltstack/salt#62441
This would be applicable to |
but anything installed with |
If a package is already auto installed, and you add an installed state for it, then it will do nothing and not mark it as manual, right?
… On 15 Aug 2022, at 21:11, Kevin Landreth ***@***.***> wrote:
This would be applicable to apt systems too.
apt-mark manual <package>
but anything installed with apt-get/aptitude/apt should automatically have these packages marked as manually installed. Have you observed the same behavior in apt based systems? ref: https://github.com/saltstack/salt/blob/master/salt/modules/aptpkg.py#L821-L853
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
@OrangeDog thanks for that clarification, makes a ton of sense now. |
Description
A clear and concise description of what the bug is.
On RHEL-8-based OS, using
pkg.installed
should mark the package as "installed by user" so that it do not get removed by dependencies.Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Just a simple RockyLinux 8.6 OpenStack VM.
Steps to Reproduce the behavior
(Include debug logs if possible and relevant)
Expected behavior
A clear and concise description of what you expected to happen.
From previous example, I would expect the
lvm2-libs
to not be removed by thepkg.removed
, because thepkg.installed
would have run adnf mark install <pkg_name>
.Could be the default behavior of
pkg.installed
or at least have a boolean to "enforce package mark".Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Maybe, it's a feature but to me, it's kind of a bug according to the example I described
The text was updated successfully, but these errors were encountered: