Skip to content

Conversation

@SvenVD-be
Copy link
Contributor

@SvenVD-be SvenVD-be commented Sep 1, 2025

This solves the observed issue (on at least RHEL8) if repo_gpgcheck=1 AND baseurl is changed (by a yumrepo resources for example) AND no other puppet package with dnf -y (assumeyes) has been run then dnf asks to re-import already imported keys (the key needs to be imported into dnf's databases, which is separate from rpm database and it is a new database per baseurl https://bugzilla.redhat.com/show_bug.cgi?id=1768206). If puppet then runs dnf check-update because of a package has ensure => latest then it fails with: Warning: Puppet::Type::Package::ProviderDnf: Could not check for updates, '/bin/dnf check-update' exited with 1

Add assumeyes to check-update, this also makes it more consistent with the other dnf commands in yum.rb which also use "-y"

@SvenVD-be SvenVD-be changed the title Update yum.rb Update yum.rb add assumeyes to yum check-update. Sep 1, 2025
@SvenVD-be SvenVD-be changed the title Update yum.rb add assumeyes to yum check-update. Update yum.rb, add assumeyes to yum check-update. Sep 1, 2025
This solves the observed on at least RHEL8  if repo_gpgcheck=1 AND baseurl is changed (by a yumrepo resources for example) AND no other puppet package with dnf -y (assumeyes) has been run then dnf asks to re-import already imported keys
(the key needs to be imported into dnf's databases, which is separate from rpm database and it is a new database per baseurl https://bugzilla.redhat.com/show_bug.cgi?id=1768206)
If puppet then runs dnf check-update because of a package has ensure => latest then it fails with:
Warning: Puppet::Type::Package::ProviderDnf: Could not check for updates, '/bin/dnf check-update' exited with 1
Add assumeyes to check-update, this also makes it more consistent with the other dnf commands in yum.rb which also use "-y"
@kenyon kenyon changed the title Update yum.rb, add assumeyes to yum check-update. yum package provider: add assumeyes to yum check-update Sep 9, 2025
@binford2k binford2k merged commit 0ce65c0 into OpenVoxProject:main Sep 18, 2025
13 checks passed
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

Successfully merging this pull request may close these issues.

3 participants