Bug 2133343

Summary: Content view filter will include module streams of other repos/arches if the errata contain rpms in different repos/arches.
Product: Red Hat Satellite Reporter: Hao Chang Yu <hyu>
Component: Content ViewsAssignee: Hao Chang Yu <hyu>
Status: CLOSED ERRATA QA Contact: Lucy Fu <lufu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.3CC: lufu, osousa, pcreech, sbible, wclark
Target Milestone: 6.13.0Keywords: 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:
: 2158579 2166759 (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-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