Project

General

Profile

Actions

Bug #27241

closed

Duplicate content views with same filter criteria in a CCV doesn't show full packages count

Added by Ian Ballou over 5 years ago. Updated over 5 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1722968

Description of problem:
Creating 2 content views with the same exclusion filter on a package and adding it to a CCV still applies the exclusion filter to the CCV.

Version-Release number of selected component (if applicable):
katello-3.12.0-0.5

How reproducible:
100%

Steps to Reproduce:
1. sync a repo (e.g. sat6tool7)
2. create a CV, attach the repo and apply a filter (e.g. exclude tracer-common)
3. create another CV with same filter.
4. publish the two CVs
5. create CCV containing those 2 CVs, and publish it
6. Check the CCV content in WebUI
7. Check the CCV content via yum / directly under /var/lib/pulp/published/yum/master/yum_distributor/<OrgID>-<CCVName>-Library-<repo-uuid> directory

Actual results:
6. 60 packages shown
7. 60 packages shown

Expected results:
Steps 6 and 7 should have the full package of 61.

Actual Results:
Steps 6 and 7 has 60 packages.

Additional info:
Please note that in sat6tool7, there's a total of 61 packages. When you publish a CCV with the 2 duplicate CV, there's a message that states:
"For the duplicate repositories, the packages in each Content View Version will combine regardless of the filters that were applied to the individual Content View Version."

Even though the message says "regardless of the filters that were applied", it seems the filters were still in effect. We either need to update the message or actually make sure that even duplicate CV with the same filters are taken into account to show the full number of packages.

Actions

Also available in: Atom PDF