If you have a content view (lets call it CV-A) that is in the Library environment. Now if I create a composite content view (lets call it CCV-A) and I add CV-A to this:
I should NOT be able to promote CCV-A beyond the Library environment as the content views it is a member of are not at that level. I.e. I should not be able to promote CCV-A beyond the lowest environment of the content views.
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
If this were implemented as a toggle, would that suffice? I can envision that some users want to add view to a Composite and then promote the Composite expecting it to populate the environment with the views attached without the overhead of having to promote the individual views themselves since the Composite is it's own entity.
Hi Eric, a toggle should be sufficient so long as this can be set via the API / hammer too.
clearing the needinfo
Created redmine issue http://projects.theforeman.org/issues/13057 from this bug
Upstream bug component is WebUI
Upstream Katello PR:
Attached are some test RPMs for Satellite 6.1.5 (must be 6.1.5) to test the first iteration of this feature.
== INSTALLATION INSTRUCTIONS ==
1) Download ruby193-rubygem-katello packages from this BZ
2) Install (EL7 example):
# rpm -Uvh rpm -Uvh ruby193-rubygem-katello-22.214.171.124-1.el7sat.git.1.d748d52None.noarch.rpm
3) Restart services:
# katello-service restart
4) Login to Satellite webui and modify Administrator -> Settings -> Katello -> restrict_composite_view to 'true'
5) Attempt to publish a Composite Content View with Component Content View versions that do *not* exist in the target Environment.
Created attachment 1115985 [details]
RHEL7 Test Build
You should see an error message like this if the contained Content View is not available in the target env:
Created attachment 1115990 [details]
RHEL6 Test Build
Thanks Mike. I should be able to take a look at this in the next day or so.
Hi Mike - the RHEL 6 RPM is a src rpm, can you add a non src as I can't build it:
# rpmbuild -bb --define "scl ruby193" rubygem-katello.spec
error: Failed build dependencies:
ruby193-rubygems-devel is needed by ruby193-rubygem-katello-126.96.36.199-1.el6.git.1.d748d52None.noarch
foreman-assets >= 1.7.0 is needed by ruby193-rubygem-katello-188.8.131.52-1.el6.git.1.d748d52None.noarch
ruby193-rubygem-sqlite3 is needed by ruby193-rubygem-katello-184.108.40.206-1.el6.git.1.d748d52None.noarch
ruby193-rubygem(uglifier) >= 1.0.3 is needed by ruby193-rubygem-katello-220.127.116.11-1.el6.git.1.d748d52None.noarch
(This is on 6.1.5)
Mike - ignore that. I ended up patching locally. I started testing late Friday so will have some feedback for you early in the week.
Andrew, thanks for patching manually. Looking forward to the feedback
Moving this to 6.1.8 (MAR-2016) while we await feedback from users.
Verified in Satellite 6.2 Beta Snap 6 Compose 1. After changing the admin flag, and trying to promote past the lowest promoted level, you get this error message.
The action requested on this composite view cannot be performed until all of the component content view versions have been promoted to the target environment: QA. This restriction is optional and can be modified in the Administrator -> Settings page using the restrict_composite_view flag.
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.