voxpupuli / puppet-yum

Puppet module for Yum
https://forge.puppet.com/puppet/yum
MIT License
16 stars 101 forks source link

Cleanup old kernels fails on RHEL8 #220

Open andylytical opened 3 years ago

andylytical commented 3 years ago

Affected Puppet, Ruby, OS and module versions/distributions

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