Bug 1883984 - Content-view filter include errata with content type 'Erratum-Date and Type' doesn't work as expected for RHEL 8 content.
Summary: Content-view filter include errata with content type 'Erratum-Date and Type' ...
Keywords:
Status: CLOSED DUPLICATE of bug 1853280
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-30 16:46 UTC by Akshay Kapse
Modified: 2023-12-15 19:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-02 00:33:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.