Skip to content
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

Cleanup old kernels fails on RHEL8 #220

Open
andylytical opened this issue Aug 16, 2021 · 0 comments
Open

Cleanup old kernels fails on RHEL8 #220

andylytical opened this issue Aug 16, 2021 · 0 comments

Comments

@andylytical
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.9.0
  • Ruby: 2.7.3
  • Distribution: RedHat 8.4
  • Module version: 5.1.0

How to reproduce (e.g Puppet code you use)

In Puppet manifest:

include yum

On the node:

dnf config-manager --setopt=installonly_limit= --save
puppet agent -t

What are you seeing

Notice: /Stage[main]/Yum/Yum::Config[installonly_limit]/Augeas[yum.conf_installonly_limit]/returns: executed successfully (corrective)
Info: Yum::Config[installonly_limit]: Scheduling refresh of Exec[package-cleanup_oldkernels]
Notice: /Stage[main]/Yum/Exec[package-cleanup_oldkernels]/returns: package-cleanup has to be executed with one of the options: --dupes, --leaves, --orphans, --problems or --cleandupes
Error: /Stage[main]/Yum/Exec[package-cleanup_oldkernels]: Failed to call refresh: '/usr/bin/package-cleanup --oldkernels --count=3 -y' returned 1 instead of one of [0]
Error: /Stage[main]/Yum/Exec[package-cleanup_oldkernels]: '/usr/bin/package-cleanup --oldkernels --count=3 -y' returned 1 instead of one of [0]

What behaviour did you expect instead

No errors in the puppet agent output.

Output log

See messages above.

Any additional information you'd like to impart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant