Bug 1597340

Summary: restrict_composite_view flag prevents CCV promotion even when component versions have been promoted
Product: Red Hat Satellite Reporter: wclark
Component: Content ViewsAssignee: Samir Jha <sajha>
Status: CLOSED ERRATA QA Contact: Mirek Długosz <mzalewsk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.2CC: egolov, sghai, wclark
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.7.0.12-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:34:24 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:

Description wclark 2018-07-02 16:01:50 UTC
Description of problem:

The restrict_composite_view flag is preventing CCV versions from being promoted even when all component CV versions have already been promoted to the target environment.

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

Reproduced on 6.3.1
Attempting to reproduce on 6.3.2 as well, but hitting an issue with the 'add_export_distributor' portion of the upgrade currently. I will update the BZ if/when I can reproduce on 6.3.2.

How reproducible:

Easy

Steps to Reproduce:
1. Create a CCV
2. Promote all component CV versions to an LCE
3. Observe that the CCV cannot be promoted to the same LCE when 'restrict_composite_view' is set to True

Actual results:

500 Internal Server Error

Expected results:

CCV Promotes without error

Additional info:

Disabling 'restrict_composite_view' allows the CCV to promote, but it should be able to promote even with 'restrict_composite_view' enabled when the component CVs have been promoted to the target LCE.

Comment 2 wclark 2018-07-02 22:14:25 UTC
I have now reproduced the issue on Satellite 6.3.2.

Comment 7 Samir Jha 2018-07-17 13:00:00 UTC
Created redmine issue http://projects.theforeman.org/issues/24273 from this bug

Comment 8 Satellite Program 2018-07-27 16:21:43 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/24273 has been resolved.

Comment 10 Mirek Długosz 2018-08-31 12:20:17 UTC
Issue could not be reproduced on latest Sat 6.4 snap.

When restrict_composite_view flag is set to true:
- it is possible to promote CCV to LCE where component CVs are already available
- it is not possible to promote CCV to LCE where component CVs are not yet available - error message directing user to flag is displayed

Tested on Satellite 6.4.0 snap 19.0 (tfm-rubygem-katello-3.7.0.17-1.el7sat.noarch) using web UI.

Comment 11 Bryan Kearney 2018-10-16 19:34:24 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-2018:2927