Bug #25452

Invalid content of CCV with two same repos with filters

Added by John Mitsch over 3 years ago. Updated over 3 years ago.

Content Views
Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:


Cloned from

Description of problem:
Use case:
- Content View CV1 with a repo with some applied filter(s)
- CV2 with the same repo with some another applied filter(s)
- CV1 and CV2 are used to define some specific content used for specific hosts; the CVs cant be merged
- CCV containing both CV1 and CV2 is required to define another specific content

But this CCV has invalid content for the "shared" repository. From practical experiments it seems like the repo contains just CV1 repo content OR CV2 repo content, but not the union.

Forcefully re-publishing v1_0 repository (or whatever version is the actual) and then re-publishing the -Library repository (or whatever LE is relevant) fixes the problem for the CCV - so it seems the content is in the pulp repo but it has not been published (wrong concurrency used when interleaving units associate or repo publish?).

Previously, we did not support having that, now there is just a warning "CCV publish will take longer". Therefore it is our understanding the use case is valid.

Version-Release number of selected component (if applicable):
Sat 6.3.4

How reproducible:

Steps to Reproduce:
1. sync a repo (e.g. Sat tools)
2. create a CV, attach the repo and apply a filter (e.g. Include RPM facter (only))
3. create another CV and do the same but with including different RPM, e.g. qpid-proton-c
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. shows expected number of packages
7. shows packages just from one CV, not from the other

Expected results:
7. to show packages from both CVs

Additional info:

Associated revisions

Revision 021586e3 (diff)
Added by John Mitsch over 3 years ago

Fixes #25452 - Duplicate repo in CCV causes mismatch

A composite content view containing two content views will only use
one filter for the repo and cause a mismatch between the published
repo on the filesystem and what pulp/katello displays.


#1 Updated by The Foreman Bot over 3 years ago

  • Pull request added

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Andrew Kofink over 3 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.1

#4 Updated by John Mitsch over 3 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF