Bug 2133615

Summary: Content view filter included errata not in the filter date range
Product: Red Hat Satellite Reporter: Hao Chang Yu <hyu>
Component: Content ViewsAssignee: Ian Ballou <iballou>
Status: CLOSED ERRATA QA Contact: Lucy Fu <lufu>
Severity: medium Docs Contact:
Priority: high    
Version: 6.11.3CC: ahumbe, iballou, lufu, musalman, osousa, pcreech, wclark
Target Milestone: 6.13.0Keywords: Regression, 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:
: 2158573 2166757 (view as bug list) Environment:
Last Closed: 2023-05-03 13:22:16 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
Hotfix RPM for Satellite 6.10.7
none
Hotfix RPM for Satellite 6.11.4 on RHEL7
none
Hotfix RPM for Satellite 6.11.4 on RHEL8
none
Hotfix RPM for Satellite 6.12.0 none

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