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

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

Open
1 task done
silug opened this issue Feb 28, 2025 · 0 comments · May be fixed by #20
Open
1 task done

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

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

Comments

@silug
Copy link

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
@silug silug linked a pull request Feb 28, 2025 that will close this issue
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
Development

Successfully merging a pull request may close this issue.

1 participant