Bug 1639390 - Invalid content of CCV with two same repos with filters
Summary: Invalid content of CCV with two same repos with filters
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.3.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: 6.6.0
Assignee: John Mitsch
QA Contact: Lai
URL:
Whiteboard:
: 1632984 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-15 15:31 UTC by Pavel Moravec
Modified: 2023-03-24 14:18 UTC (History)
7 users (show)

Fixed In Version: tfm-rubygem-katello-3.10.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:50:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25452 0 Normal Closed Invalid content of CCV with two same repos with filters 2021-01-13 08:35:56 UTC
Red Hat Knowledge Base (Solution) 3816991 0 None None None 2019-01-18 09:32:26 UTC

Description Pavel Moravec 2018-10-15 15:31:32 UTC
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:
100%


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:

Comment 1 Brad Buckingham 2018-10-16 18:26:00 UTC
*** Bug 1632984 has been marked as a duplicate of this bug. ***

Comment 3 John Mitsch 2018-11-14 00:08:33 UTC
Created redmine issue https://projects.theforeman.org/issues/25452 from this bug

Comment 4 Satellite Program 2018-12-06 21:04:33 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25452 has been resolved.

Comment 6 Lai 2019-06-21 20:14:33 UTC
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 and do the same but with including different RPM (e.g. exclude gofer)
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. 61 packages shown
7. 61 packages shown

Verified on 6.6.0 snap 7.

Please note that in sat6tool7, there's a total of 61 packages.

Comment 8 Bryan Kearney 2019-10-22 19:50:35 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, 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-2019:3172


Note You need to log in before you can comment on or make changes to this bug.