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 2133615 - Content view filter included errata not in the filter date range
Summary: Content view filter included errata not in the filter date range
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.11.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.13.0
Assignee: Ian Ballou
QA Contact: Lucy Fu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-11 04:47 UTC by Hao Chang Yu
Modified: 2023-05-03 13:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2158573 2166757 (view as bug list)
Environment:
Last Closed: 2023-05-03 13:22:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Hotfix RPM for Satellite 6.10.7 (9.30 MB, application/x-rpm)
2022-12-05 12:18 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.4 on RHEL7 (10.56 MB, application/x-rpm)
2022-12-05 13:11 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.4 on RHEL8 (10.51 MB, application/x-rpm)
2022-12-05 13:19 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.12.0 (10.33 MB, application/x-rpm)
2022-12-05 13:54 UTC, wclark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35614 0 Normal Closed Content view filter included errata not in the filter date range 2022-12-05 11:11:37 UTC
Red Hat Issue Tracker SAT-13680 0 None None None 2022-12-02 18:30:33 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:23:24 UTC

Description Hao Chang Yu 2022-10-11 04:47:57 UTC
Description of problem:
As per subject.

Steps to Reproduce:
1. Enable and sync RHEL 8 Baseos and Appstream x86_64 repos
2. Create a content view and add both repos
3. Create the following filters.

Include errata until end date = 26/07/2022
Include all module streams without errata
Include all packages without errata

4. Publish the content view.


Actual results:

The following 2 errata are included even they are not within the filter date range.

RHEA-2022:6453
Issued: Sep 13, 10:00 AM
Last Updated On: Sep 13, 10:00 AM

RHEA-2022:6454
Issued: Sep 13, 10:00 AM
Last Updated On: Sep 13, 10:00 AM



Expected results:
Exclude the 2 errata


Additional info:
1. The errata (RHEA-2022:6453 and RHEA-2022:6454) are included because all their packages are already included by the filter. In other word, the errata within the filter date range contain all packages of those 2 errata.

See line https://github.com/Katello/katello/blob/master/app/lib/katello/util/errata.rb#L58


2. We tested the same filters in Satellite 6.9.9 but it doesn't include the 2 errata. That is because Satellite 6.9.9 doesn't more more check. It excluded those 2 errata because their module streams are not in the filter date range.

See line https://github.com/Katello/katello/blob/KATELLO-3.18/app/models/katello/repository.rb#L366

3. In short:

Satellite 6.9: An erratum will be included only when all packages and all module streams in the erratum are included in the repo.
Satellite 6.10+: An erratum will be included when all packages in the erratum are included in the repo.


4. I guess if the module stream of one modular erratum is not included in the repo, the erratum is probably not installable on client so the behaviour in Satellite 6.9.9 looks correct to me.

Comment 1 Hao Chang Yu 2022-10-11 04:54:12 UTC
Upstream bug created https://projects.theforeman.org/issues/35614

Comment 8 Bryan Kearney 2022-11-10 20:03:34 UTC
Upstream bug assigned to iballou

Comment 9 Bryan Kearney 2022-11-10 20:03:37 UTC
Upstream bug assigned to iballou

Comment 12 wclark 2022-12-05 12:18:32 UTC
Created attachment 1930048 [details]
Hotfix RPM for Satellite 6.10.7

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2044314, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.10.7 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # yum install ./tfm-rubygem-katello-4.1.1.60-4.HOTFIXRHBZ2133615.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 13 wclark 2022-12-05 13:11:26 UTC
Created attachment 1930103 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL7

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # yum install ./tfm-rubygem-katello-4.3.0.50-2.HOTFIXRHBZ2133615.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 14 wclark 2022-12-05 13:19:51 UTC
Created attachment 1930106 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL8

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # dnf install ./rubygem-katello-4.3.0.50-2.HOTFIXRHBZ2133615.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 15 wclark 2022-12-05 13:54:19 UTC
Created attachment 1930114 [details]
Hotfix RPM for Satellite 6.12.0

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.12.0 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # dnf install ./rubygem-katello-4.5.0.20-2.HOTFIXRHBZ2133615.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 20 errata-xmlrpc 2023-05-03 13:22:16 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 (Important: Satellite 6.13 Release), 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-2023:2097


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