Bug 1228316

Summary: Content host -> errata tab: Not all applicable errata shown from my Library
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Walden Raines <walden>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney, mmccune, sthirugn, walden
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10774
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 16:04:53 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:
Attachments:
Description Flags
content host errata page showing 1 errata only
none
verification screenshot none

Description sthirugn@redhat.com 2015-06-04 15:09:40 UTC
Created attachment 1034779 [details]
content host errata page showing 1 errata only

Description of problem:
Content host -> errata tab: Not all applicable errata shown from my Library

Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 7

How reproducible:
Always

Steps to Reproduce:
1. Go to Content host -> Errata tab
2. Make sure that the content host is linked to a content view which has some filters to filter out errata
3. Select 'Library Synced Content' from Show From: dropdown

Actual results:
Not all errata from Library is shown

Expected results:
All applicable errata from Library should be shown.

Additional info:

Comment 3 sthirugn@redhat.com 2015-06-04 15:50:52 UTC
hammer cli is also failing:

Scenario:
1. Create content view rhel7partialcv with 7Server repo but filter out all errata after Jan 1, 2015

2. Register/Subscribe a content host to rhel7partialcv/QE environment

hammer> content-host errata list --content-host-id=4bab4d39-d574-4903-a789-67b7e9ff11d2 --organization-id=4 --content-view='rhel7partialcv'  --lifecycle-environment='QE'
-------------------------------------|----------------|--------|----------------------|------------
ID                                   | ERRATUM ID     | TYPE   | TITLE                | INSTALLABLE
-------------------------------------|----------------|--------|----------------------|------------
000f740b-ce6c-429d-a052-7ab3ee641329 | RHBA-2014:0946 | bugfix | unzip bug fix update |            
-------------------------------------|----------------|--------|----------------------|------------

3. Now querying the Default Org view, I should also see the filtered out applicable erratas:

hammer> content-host errata list --content-host-id=4bab4d39-d574-4903-a789-67b7e9ff11d2 --organization-id=4 --content-view='Default Organization View'  --lifecycle-environment=Library

-------------------------------------|----------------|--------|----------------------|------------
ID                                   | ERRATUM ID     | TYPE   | TITLE                | INSTALLABLE
-------------------------------------|----------------|--------|----------------------|------------
000f740b-ce6c-429d-a052-7ab3ee641329 | RHBA-2014:0946 | bugfix | unzip bug fix update |            
-------------------------------------|----------------|--------|----------------------|------------


Actual Result:
Step 3 only shows the same errata as Step 2 and does not include the applicable errata from default org view

Comment 4 Walden Raines 2015-06-04 16:02:39 UTC
I cannot reproduce this following the steps given, is there anything else that needs to be done in order to reproduce this?

Comment 5 Walden Raines 2015-06-10 17:28:31 UTC
I was able to reproduce this, moving back to assigned.

Comment 6 Walden Raines 2015-06-10 20:04:57 UTC
Created redmine issue http://projects.theforeman.org/issues/10774 from this bug

Comment 7 Walden Raines 2015-06-10 20:14:33 UTC
PR: https://github.com/Katello/katello/pull/5288

Comment 8 Walden Raines 2015-06-11 13:26:07 UTC
This was fixed with acf174784db0d3a37a0ff4518d603a823553f540, not sure why the script didn't move this bug to POST.

Comment 9 sthirugn@redhat.com 2015-06-17 04:24:29 UTC
*** Bug 1232331 has been marked as a duplicate of this bug. ***

Comment 11 Bryan Kearney 2015-06-26 14:32:46 UTC
Delivered in Snap10

Comment 12 sthirugn@redhat.com 2015-07-07 16:54:03 UTC
Verified in GA Snap 11.

UI verification: Screenshot attached
CLI verification as per Comment 3 - this still fails - I will do more research on this and file a new issue if needed.

Comment 13 sthirugn@redhat.com 2015-07-07 16:54:23 UTC
Created attachment 1049478 [details]
verification screenshot

Comment 14 Bryan Kearney 2015-08-12 16:04:53 UTC
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015.