Bug 2139346

Summary: katello-agent use upgrade instead of upgrade-minimal when applying errata in dnf
Product: Red Hat Satellite Reporter: Ashfaqur Rahaman <arahaman>
Component: katello-agentAssignee: Ian Ballou <iballou>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.11.4CC: ahumbe, ashokk, ehelms, iballou, jortel, jpasqual, juwatts, osousa, paji, pcreech, peli, satellite6-bugs, vijsingh, wclark
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2150124 (view as bug list) Environment:
Last Closed: 2023-05-03 13:12:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ashfaqur Rahaman 2022-11-02 09:03:57 UTC
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 from Satellite 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):

satellite 6.9 to 6.11
rhel8

How reproducible:
100%

Steps to Reproduce:
1. register a rhel8 host in Satellite 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 

Additional info:

Its the same behavior in 6.9 and 6.11. it might be in other versions as well.

Comment 11 Ian Ballou 2022-11-15 18:00:39 UTC
Created redmine issue https://projects.theforeman.org/issues/35759 from this bug

Comment 13 Bryan Kearney 2022-11-17 22:35:29 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35759 has been resolved.

Comment 15 Ian Ballou 2022-11-19 03:57:50 UTC
A hotfix is now available for Satellite-managed RHEL 8 and RHEL 9 clients that use katello-agent.  Please contact RH support if it is needed.

Comment 26 errata-xmlrpc 2023-05-03 13:12:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6 Client Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2095

Comment 27 Brad Buckingham 2024-01-29 20:21:44 UTC
*** Bug 2150124 has been marked as a duplicate of this bug. ***