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 1487402

Summary: Unable to apply errata to host collection
Product: Red Hat Satellite Reporter: Jonathon Turel <jturel>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, dseethal, ehelms, inecas, jomitsch, jsherril, nkathole, walden
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/21283
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1546210 (view as bug list) Environment:
Last Closed: 2018-02-21 17:03:20 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:
Bug Depends On:    
Bug Blocks: 1200113, 1443816    
Attachments:
Description Flags
Table where errata should be
none
Errata installtion in host collection
none
Verify errata installation on host collection none

Description Jonathon Turel 2017-08-31 19:12:39 UTC
Created attachment 1320702 [details]
Table where errata should be

Description of problem:

Using the 'Errata Installation' action from the Host Collection details page does not present applicable errata even though hosts in the collection have errata which are indeed applicable.

Version-Release number of selected component (if applicable): 6.3.0 Snap 13


How reproducible: Always


Steps to Reproduce:
1. Register a client into a content view which has applicable errata which are also applicable to the host.
2. Create a host collection and add the host above to it
3. Navigate to the Details tab for the host collection in (2) and select 'Errata Installation'

Actual results:

The table returns 0 results.

Expected results: The table should contain errata which are applicable to the hosts in the collection.


Additional info:

I discovered this while attempting to verify https://bugzilla.redhat.com/show_bug.cgi?id=1443816

Comment 3 Brad Buckingham 2017-09-14 13:26:21 UTC
Hi Walden,

Can you take a look at this one?  

I have confirmed that the behavior works correctly in the upstream, but not in Satellite 6.3 SNAP 14; therefore, I suspect that we are missing a commit either in katello or bastion.

From an initial look, when the user clicks on 'Errata Installation' from the host collections details pane, the POST api/v2/hosts/bulk/installable_errata is sent to the server without including any content host ids.  I.e.
   excluded: {ids: []}
   included: {ids: []}

Which results in the following response from the server:
   errorMessage: ["No hosts have been specified."]

Comment 4 Dan Seethaler 2017-09-18 17:15:19 UTC
Connecting redmine issue http://projects.theforeman.org/issues/19136 from this bug

Comment 5 Satellite Program 2017-09-18 18:06:09 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19136 has been resolved.

Comment 6 Walden Raines 2017-09-22 17:24:05 UTC
Created redmine issue http://projects.theforeman.org/issues/21077 from this bug

Comment 7 Walden Raines 2017-09-22 17:48:30 UTC
PR: https://github.com/Katello/katello/pull/6970

Comment 8 Walden Raines 2017-09-22 20:55:22 UTC
*** Bug 1493717 has been marked as a duplicate of this bug. ***

Comment 9 Satellite Program 2017-09-26 00:06:14 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21077 has been resolved.

Comment 10 Nikhil Kathole 2017-10-10 07:37:13 UTC
FailedQA

Version Tested:
Satellite-6.3 Snap 19

steps:
1. Registered a content host and has applicable errata
2. Created host collection and added host to it
3. Navigated to host collection and click on errata installation


It shows "There are no Errata associated with this Content Host to display."(see attachment)

Comment 11 Nikhil Kathole 2017-10-10 07:38:53 UTC
Created attachment 1336674 [details]
Errata installtion in host collection

Comment 12 Satellite Program 2017-10-10 18:08:15 UTC
Upstream bug assigned to dlobatog

Comment 14 Nikhil Kathole 2017-10-16 08:20:45 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 20

steps:
1. Registered content host
2. Created host collection and added host to host collection
3. Clicked on errata installation

Found listed errata which are applicable to the hosts in the collection.(see attachment)

Comment 15 Nikhil Kathole 2017-10-16 08:22:04 UTC
Created attachment 1339090 [details]
Verify errata installation on host collection

Comment 16 Bryan Kearney 2018-02-21 17:03:20 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, 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/RHSA-2018:0336