Bug 1174237
Summary: | Composite views allow promotions beyond what they should | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Karl Abbott <kabbott> | ||||||
Component: | Content Views | Assignee: | Brad Buckingham <bbuckingham> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Jameer Pathan <jpathan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6.0.6 | CC: | andrew.schofield, bbuckingham, bkearney, cwelton, ehelms, jcallaha, kabbott, mmccune, xdmoon | ||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
Target Release: | Unused | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
URL: | http://projects.theforeman.org/issues/13057 | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 1314394 (view as bug list) | Environment: | |||||||
Last Closed: | 2016-07-27 09:12:08 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1314394 | ||||||||
Attachments: |
|
Description
Karl Abbott
2014-12-15 13:16:17 UTC
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. Karl, 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: https://github.com/Katello/katello/pull/5698 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-2.2.0.80-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: http://people.redhat.com/~mmccune/promote-error-message.png 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-2.2.0.80-1.el6.git.1.d748d52None.noarch foreman-assets >= 1.7.0 is needed by ruby193-rubygem-katello-2.2.0.80-1.el6.git.1.d748d52None.noarch ruby193-rubygem-sqlite3 is needed by ruby193-rubygem-katello-2.2.0.80-1.el6.git.1.d748d52None.noarch ruby193-rubygem(uglifier) >= 1.0.3 is needed by ruby193-rubygem-katello-2.2.0.80-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. https://access.redhat.com/errata/RHBA-2016:1501 |