Project

General

Profile

Actions

Bug #35614

closed

Content view filter included errata not in the filter date range

Added by Hao Yu over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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.

Actions #1

Updated by Partha Aji over 1 year ago

  • Target version set to Katello 4.8.0
  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ian Ballou
  • Pull request https://github.com/Katello/katello/pull/10349 added
Actions #3

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.8.0 added
Actions #4

Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF