Bug 1377725

Summary: Applicable erratas are not shown for content hosts
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: Errata ManagementAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: aagrawal, bbuckingham, bkearney, djuran, jcallaha, jsherril, paji, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.0.0.115-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1426425 (view as bug list) Environment:
Last Closed: 2017-05-01 13:54:55 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: 1426425, 1435022    

Description Anand Agrawal 2016-09-20 13:09:58 UTC
Description of problem:

When selecting a specific errata and view what hosts it's applicable to, it shows a list. When checking "Only show content hosts where the errata is currently installable in the host's Lifecycle Environment", it shows much larger list, almost all hosts. This isn't right

Installable always means applicable also. Applicable might not be installable (if not published). Errata can't be installable if it's not applicable.

So, errata which is installable for host is also applicable for host. So, applicable list should be larger than installable

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

6.2

How reproducible:
Always

Steps to Reproduce:
1. Go to Content > Errata
2. Select one or more errata
3. Click apply
4. A list of host will be listed
5. Click on the checkbox "Only show content hosts where the errata is currently installable in the host's Lifecycle Environment"

6. New list will be populated with more hosts

Actual results:

I can see some host, which have installable errata but those hosts do not show up for applicable.

Expected results:

The list of the applicable host should be greater than the list of installable host, because Installable always means applicable also.

Comment 7 Brad Buckingham 2016-09-30 18:26:17 UTC
Created redmine issue http://projects.theforeman.org/issues/16762 from this bug

Comment 8 Brad Buckingham 2016-10-03 17:43:02 UTC
Upstream Katello PR: https://github.com/Katello/katello/pull/6369

Comment 10 Peter Ondrejka 2016-11-01 10:37:44 UTC
Verified in Sat 6.3 snap 5, installable content hosts are now listed correctly in the errata view.

Comment 13 Satellite Program 2017-02-23 21:12:07 UTC
Please add verifications steps for this bug to help QE verify

Comment 15 Brad Buckingham 2017-03-08 16:33:15 UTC
The following scenario allowed for recreation of the issue (prior to the fix):

Scenario (from UI)

- have multiple content hosts that have installable errata; however, have different errata for some of the hosts... e.g. host 1 has errata A & B, host 2 has errata A & B, host 3 has errata C

- go to Content > Errata
select errata id for A
- click 'Content Hosts'
- observe that hosts 1 & 2 are listed
- click checkbox next to 'Only show content hosts where the errata is currently installable in the host's Lifecycle Environment.'

Result:
- all 3 hosts are shown; however, host 3 does not need errata A

Comment 16 Peter Ondrejka 2017-03-27 12:13:15 UTC
Verified in Satellite 6.2.9-1 using steps from comment #15. Installable hosts for an erratum are now listed correctly

Comment 18 errata-xmlrpc 2017-05-01 13:54:55 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/RHBA-2017:1191