Bug 1939538

Summary: Applying errata via Host Collection does not include in Applied Errata Report
Product: Red Hat Satellite Reporter: Ashfaqur Rahaman <arahaman>
Component: Errata ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Akhil Jha <akjha>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8.0CC: ahumbe, gscarbor, jsherril
Target Milestone: 6.10.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: Environment:
Last Closed: 2021-06-10 17:48:58 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 2021-03-16 15:18:41 UTC
Description of problem:

Applying errata in Host collection via katello-agent does not included in "Applied Errata Report". 


Version-Release number of selected component (if applicable):
6.7
6.8


How reproducible:
100%

Steps to Reproduce:

//Apply Errata:

1. Host collection >  Errata Installation >
2. Select Errata > Install Selected (Default it will select katello-agent)
3. Confirm Installation and wait for the errata task to complete 

// Generate Report: 

4. Monitor > Report Template > 
5. Generate report for "Host - Applied Errata"  

Actual results:

It does not contain any errata information applied through host collection (katello-agent) 

Expected results:

It should contain the errata which were applied via host collection 

Additional info:

- If we applied via bulk action , content host > Select host > Action > Manage errata > Select errata > Apply ,it results same. Does not included in report. 

- For bulk action or via host collection, errata application generate two tasks : 

~~~~
Label: Actions::Katello::Host::Erratum::ApplicableErrataInstall 
Label: Actions::BulkAction 
~~~~

- If we apply errata from individual host , it includes in report. the task generates is : 
~~~~
Label: Actions::Katello::Host::Erratum::Install 
~~~~

- If we apply the errata via "Remote Execution" instead of "katello-agent" , that also includes in Applied errata report. (It works for bulk or individual both) 

~~~~~
 Label: Actions::RemoteExecution::RunHostJob 
~~~~~

So it looks like the "Applied Errata" report only consider the below two actions : 

~~~~~
Label: Actions::Katello::Host::Erratum::Install 
Label: Actions::RemoteExecution::RunHostJob 
~~~~~

Comment 3 Justin Sherrill 2021-06-10 17:48:58 UTC

*** This bug has been marked as a duplicate of bug 1941096 ***