Skip to content

[Bug]: puppet agent not working with dnf5 #19

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

Closed
1 task done
silug opened this issue Feb 28, 2025 · 0 comments · Fixed by #20
Closed
1 task done

[Bug]: puppet agent not working with dnf5 #19

silug opened this issue Feb 28, 2025 · 0 comments · Fixed by #20
Labels
bug Something isn't working

Comments

@silug
Copy link
Contributor

silug commented Feb 28, 2025

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

@xxjack12xx reported the following in puppetlabs/puppet#9506:

puppet agent does not support dnf5 which is the current package manager in Fedora 41.

When having puppet install a package, the following error occurs:
Package[rsync-daemon]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install rsync-daemon' returned 2: Unknown argument "-d" for command "dnf5". Add "--help" for more information about the arguments. (corrective)

Expected Behavior

Packages should install with no errors.

Steps to Reproduce

  1. Try to install a package with a package resource

Environment

  • Version: openvox-agent-8.13.0-1.fc40.x86_64
  • Platform: Fedora release 41 (Forty One)

Additional Context

No response

Relevant log output

# puppet resource package nginx ensure=installed
Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install nginx' returned 2: Unknown argument "-d" for command "dnf5". Add "--help" for more information about the arguments.
Error: /Package[nginx]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install nginx' returned 2: Unknown argument "-d" for command "dnf5". Add "--help" for more information about the arguments.
package { 'nginx':
  ensure   => 'purged',
  provider => 'dnf',
}
@silug silug added the bug Something isn't working label Feb 28, 2025
hboetes pushed a commit to Stricken1670/puppet that referenced this issue Mar 15, 2025
… installed

The "-d 0" and "-e error_level" options are, to the best of my
knowledge, old yum options. On anything since centos 7 dnf is installed
and the old options are deprecated(see manpage). On fedora 41 support
for these options has been removed.

    Fixes OpenVoxProject#19
hboetes pushed a commit to Stricken1670/puppet that referenced this issue Mar 15, 2025
… installed

The "-d 0" and "-e error_level" options are, to the best of my
knowledge, old yum options. On anything since centos 7 dnf is installed
and the old options are deprecated(see manpage). On fedora 41 support
for these options has been removed.

    Fixes OpenVoxProject#19

readd newline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant