Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***