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 1883984

Summary: Content-view filter include errata with content type 'Erratum-Date and Type' doesn't work as expected for RHEL 8 content.
Product: Red Hat Satellite Reporter: Akshay Kapse <akapse>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: jsherril
Target Milestone: UnspecifiedKeywords: 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: 2020-10-02 00:33:29 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 Akshay Kapse 2020-09-30 16:46:25 UTC
Description of problem:
--- Content-view with filter include errata by date doesn't include packages as it should and causes dependacy problems on host.


How reproducible:
Easily

Steps to Reproduce:
1. Create a new content-view 
Example CV:
--- Repository set:
	- Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs x86_64 8 
	- Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs x86_64 8
--- Publish the cv: Approximately 17218 Packages
--- On the RHEL 8 host: 
	# yum clean all
	# yum repolist
repo id                                                         repo name                                                                                                     status
rhel-8-for-x86_64-appstream-rpms                                Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                      11,091
rhel-8-for-x86_64-baseos-rpms                                   Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                         5,056


2. Create a filter:
--- Name: Include Errata
	- Content Type: Erratum - Date and Type
	- Inclusion Type: Include
	- Start Date: Null
	- End Date: 31/08/2020 (any date can be selected in random while reproducing)
--- Publish the cv:  Approximately 10362 Packages

3. Actual results
--> On the RHEL 8 host: 
	# yum clean all
	# yum repolist
	Modular dependency problems:
	 Problem 1: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:8020020191122172113:31e953cd-0.x86_64
	 Problem 2: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:8010020190614154208:16b3ab4d-0.x86_64
	 Problem 3: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:8000020190425181943:75ec4169-0.x86_64
repo id                                                   repo name                                                                                                          status
rhel-8-for-x86_64-appstream-rpms                          Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                           6,388
rhel-8-for-x86_64-baseos-rpms                             Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                              3,311

--- Update "Solve Dependencies" to "Yes" and publish the cv: 11512 Packages
--> On the RHEL 8 host: 
	# yum clean all
	# yum repolist
	Modular dependency problems:
	 Problem 1: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:8020020191122172113:31e953cd-0.x86_64
	 Problem 2: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:8010020190614154208:16b3ab4d-0.x86_64
	 Problem 3: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:820190131191847:fbe42456-0.x86_64
	 Problem 4: conflicting requests
	  - nothing provides module(perl:5.26) needed by module freeradius:3.0:8000020190425181943:75ec4169-0.x86_64
repo id                                                  repo name                                                                                                          status
rhel-8-for-x86_64-appstream-rpms                         Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                           7,099
rhel-8-for-x86_64-baseos-rpms                            Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                              3,649


4. Expected results:
Filter type Include with errata by date should work. 
Atleast "Solve Dependencies" should solve the issue.

Additional info:
5. Workaround is by using the exclude filter rather than include filter:
--- Name: Exclude Errata
	- Content Type: Erratum - Date and Type
	- Inclusion Type: Exclude
	- Start Date: 31/08/2020 (any date can be selected in random while reproducing)
	- End Date: Null
--- Publish the cv:  Approximately 16988 Packages
-> On the RHEL 8 host (No dependency error): 
	# yum clean all
	# yum repolist
repo id                                                 repo name                                                                                                          status
rhel-8-for-x86_64-appstream-rpms                        Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                           10,970
rhel-8-for-x86_64-baseos-rpms                           Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                               4,979

Comment 1 Brad Buckingham 2020-10-01 14:09:28 UTC
Do you happen to see the same behavior with RHEL 7 content?

Comment 2 Akshay Kapse 2020-10-01 14:15:43 UTC
I have tried to test with RHEL7 content with base repositories but haven't found similar behavior as reported.

Comment 3 Justin Sherrill 2020-10-02 00:33:29 UTC
Since you say: "Workaround is by using the exclude filter rather than include filter:" I think this is intentional.  

When you only say say 'include errata within this date range', this will not include any modules that do not have errata.  So the 'base' set of modules that contain no errata are excluded.  

As part of https://bugzilla.redhat.com/show_bug.cgi?id=1853280  we added a new option to the modules filter 'original-module-streams', so that you can 'include' all these modules that contain no errata if you want.  

Until 6.8, you can use that workaround.    I'm going to close this bug as a duplicate of 1853280, but feel free to reopen if you disagree.

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

Comment 4 Justin Sherrill 2020-10-02 00:37:44 UTC
Oh and this feature was backported to 6.7.3 via: https://bugzilla.redhat.com/show_bug.cgi?id=1862264

So the customer should have access to it.