Bug #35759
closedkatello-agent use upgrade instead of upgrade-minimal when applying errata in dnf
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2139346
Description of problem:
Katello-agent does not update-minimal for dnf as it does for yum. When we specify "dnf upgrade-minimal --advisory RHSA-xxxxx" from Client, it pulls the exact version of kernel as per the advisory, not the latest one available. However, when apply the same errata using katello-agent, it pushes the latest version available in the repository, not the version from errata.
Version-Release number of selected component (if applicable):
Katello 3.18+
rhel8
How reproducible:
100%
Steps to Reproduce:
1. register a rhel8 host in Katello where there are two errata available of the same package kernel.1 and kernel.2
2. Install katello-agent in client
3. Apply the errata to the host which has kernel.1 via katello-agent
Actual results:
kernel.2 installed
Expected results:
kernel.1 will be installed