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 2133343 - Content view filter will include module streams of other repos/arches if the errata contain rpms in different repos/arches.
Summary: Content view filter will include module streams of other repos/arches if the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.11.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.13.0
Assignee: Hao Chang Yu
QA Contact: Lucy Fu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-10 06:05 UTC by Hao Chang Yu
Modified: 2024-02-08 19:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2158579 2166759 (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:20 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.4 on RHEL7 (10.56 MB, application/x-rpm)
2022-12-05 13:13 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.4 on RHEL8 (10.51 MB, application/x-rpm)
2022-12-05 13:21 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.12.0 (10.33 MB, application/x-rpm)
2022-12-05 13:56 UTC, wclark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35610 0 Normal Closed Content view filter will include module streams of other repos/arches if the errata contain rpms in multiple repos/arche... 2022-11-02 11:30:46 UTC
Foreman Issue Tracker 35737 0 Normal Ready For Testing Content view filter errata by id will include module streams of other repos/arches 2022-11-09 02:10:11 UTC
Github Katello katello pull 10308 0 None Merged Fixes #35610 - CV filter copies modules not in the source repo 2022-11-09 02:13:37 UTC
Github Katello katello pull 10343 0 None open Fixes #35737 - Filter by id includes module streams of other arch 2022-11-09 02:13:37 UTC
Red Hat Issue Tracker SAT-13406 0 None None None 2022-11-10 23:30:12 UTC
Red Hat Issue Tracker SAT-13827 0 None None None 2022-11-10 23:30:15 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-10 06:05:58 UTC
Description of problem:
As per the summary.


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

Include errata until end date = 16/07/2022
Include all module streams without errata
Include all packages without errata
Include the following errata by id:
- RHSA-2022:7119
- RHSA-2022:7129
- RHSA-2022:7190
- RHSA-2022:7128
- RHSA-2022:7108
- RHSA-2022:7106
- RHSA-2022:7110
- RHSA-2022:7192
- RHSA-2022:7105
- RHSA-2022:7089
- RHSA-2022:7070
- RHSA-2022:7024
- RHSA-2022:7023
- RHSA-2022:6778
- RHSA-2022:6781
- RHSA-2022:6542
- RHSA-2022:6457
- RHSA-2022:6448
- RHSA-2022:6447
- RHSA-2022:6449
- RHSA-2022:6443
- RHSA-2022:6450
- RHSA-2022:6357
- RHSA-2022:6158
- RHSA-2022:5819
- RHSA-2022:5775
- RHSA-2022:5717
- RHSA-2022:5597

5. Publish new version of the content view.


Actual results:
Clicks into the module streams link you will see many ppcle64 module streams in the content view.

Expected results:
Should only include x86 64 module streams in the content view

Additional info:
Same issue in Satellite 6.10

This is because Katello uses "api.repositories_api.modify(repository_href, add_content_units: content_unit_href)" API in the Pulp3 to copy contents. This API can copy any contents without specifying the source repository.


Satellite 6.9.9 doesn't have this issue because Katello uses the copy API in pulp 2 to copy units from source repo to destination repos. Thus, units not in the source repo can't be copied.

Comment 1 Hao Chang Yu 2022-10-10 06:12:10 UTC
Raised an upstream bug https://projects.theforeman.org/issues/35610

Comment 3 Bryan Kearney 2022-10-25 20:04:22 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35610 has been resolved.

Comment 6 wclark 2022-12-05 12:20:40 UTC
Created attachment 1930051 [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 7 wclark 2022-12-05 13:13:55 UTC
Created attachment 1930104 [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 8 wclark 2022-12-05 13:21:04 UTC
Created attachment 1930107 [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 9 wclark 2022-12-05 13:56:01 UTC
Created attachment 1930115 [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 17 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.