Bug 1306723 - [RFE] add multiple content views to a CCV which contain the same repository
[RFE] add multiple content views to a CCV which contain the same repository
Status: VERIFIED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Views (Show other bugs)
6.1.6
Unspecified Unspecified
medium Severity medium (vote)
: GA
: --
Assigned To: Brad Buckingham
Evgeni Golov
: FutureFeature, Triaged
: 1122696 1318373 (view as bug list)
Depends On:
Blocks: 1316897
  Show dependency treegraph
 
Reported: 2016-02-11 11:28 EST by Stuart Auchterlonie
Modified: 2017-08-16 03:56 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 6757 None None None 2016-08-24 17:36 EDT

  None (edit)
Description Stuart Auchterlonie 2016-02-11 11:28:19 EST
Description of problem:

User Story: The customer's security team want only the packages
which are essential to the operation of the system, to be installed
on the system, and no other packages to be available for installation
via yum.

To meet the criteria of the security team, multiple CV's are created.
"Infrastructure" is used as an example

1) Base OS CV - contains only the bare minimum packages & puppet modules for the system deployment. This is achieved by including the RHEL channel and applying
filters so that only the essential packages are included.

2) Infrastructure CV - contains the additional packages and puppet modules to 
support the key application / infrastructure components. This is acheived by
including the RHEL channel and applying filters so that only the *extra* package
are available in this CV.

The packages sets produced by CV1 and CV2 do no overlap.

The problem occurs when you try to combine CV1 and CV2 into a CCV.

You will get an error

"
An error occurred updating the Content View: Repository conflict: 'Red Hat Enterprise Linux 7 Server - Extended Update Support - RH Common RPMs x86_64 7.2' is in RHEL7.2 2.0, Infra 1.0.,Repository conflict: 'Red Hat Enterprise Linux 7 Server - Extended Update Support RPMs x86_64 7.2' is in RHEL7.2 2.0, Infra 1.0.,Repository conflict: 'Red Hat Satellite Tools 6.1 for RHEL 7 Server - EUS RPMs x86_64 7.2' is in RHEL7.2 2.0, Infra 1.0.
"

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

Satellite 6.1.6

How reproducible:

100%

Steps to Reproduce:
1. Create CV's as described above
2. Attempt to create CCV from those CV's
3.

Actual results:

Error above

Expected results:

As the package sets do no overlap, the CCV should produce a combined view
with all the packages & puppet modules.

Even if the package sets did overlap, as they are the same underlying
repository, the package set could be de-duped when generating the CCV.

Additional info:
Comment 6 Bryan Kearney 2016-07-08 16:37:56 EDT
Per 6.3 planning, moving out non acked bugs to the backlog
Comment 9 Brad Buckingham 2016-08-24 17:38:29 EDT
*** Bug 1122696 has been marked as a duplicate of this bug. ***
Comment 10 Brad Buckingham 2016-08-25 14:25:00 EDT
*** Bug 1318373 has been marked as a duplicate of this bug. ***
Comment 11 Brad Buckingham 2016-09-22 09:42:52 EDT
Upstream Katello PR: https://github.com/Katello/katello/pull/6339
Comment 12 Evgeni Golov 2017-08-16 03:56:06 EDT
VERIFIED

Version Tested:
Satellite 6.3 Snap 11

I created two CVs with both containing
 - Red Hat Satellite Tools 6.2 for RHEL 6 Server RPMs i386
 - Red Hat Satellite Tools 6.2 for RHEL 6 Server RPMs x86_64
I created an exclude filter for CV1 with
 - name: *, arch: x86_64, version: all
I created an exclude filter for CV2 with
 - name: *, arch: i686, version: all
I created a CCV with
 - CV1
 - CV2

(silly example, I know, but it should work :))

after publishing the CCV, I encounter no problems and the CCV contains all packages

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