Using a content view filter to exclude errata after a certain date is not working correctly in Satellite 6.7. This was working as expected in Satellite 6.5. The filters were created in the Web UI, and also with hammer using these commands:
# hammer content-view filter create \
> --type erratum \
> --name "No errata after 20191110" \
> --description "No errata after 20191110" \
> --inclusion false \
> --organization-id 1 \
> --repository-ids 1,2,3 \
> --content-view CV-1
# hammer content-view filter rule create \
> --organization-id 1 \
> --content-view CV-1 \
> --content-view-filter "No errata after 20191110" \
> --date-type "issued" \
> --start-date 2019-11-10 \
> --types "security,bugfix,enhancement"
The repositories tested are:
￼Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs x86_64 8
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a content view with RHEL 8 repos (AppStream)
2. Create filter and filter rule that excludes erratas after a certain date (either issued or updated)
3. Publish Content View
Some errata are included that were both "updated" and "issued" after the filter date.
Erratas should only be included if they were issued/updated prior to the filter date.
Note 6.7 filters on the modular errata while 6.6 does not. Hence its expected to work in 6.7 but not 6.6
Connecting redmine issue https://projects.theforeman.org/issues/28988 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28988 has been resolved.
Steps to test:
1. Enable and sync "￼Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs x86_64 8"
2. Create a content view with RHEL 8 repos (AppStream1
3. Create filter and filter rule that excludes erratas after a certain date (either issued or updated) - I tested both for after 12/01/2019.
4. Publish Content View
5. Drill into version published and go to "Errata" tab.
Erratas only included if they issued/updated prior to the filter date. Saw "Update" columns on all errata before 12/01/2019.
Erratas should only be included if they were issued/updated prior to the filter date. You should see the list of dates on the "Updated" column with erratas before 12/01/2019.
Verified on 6.7.0_016
Additional note: Tested this using hammer commands as stated above and also produced same results.
Forgot to set to verified so setting it now.
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.