Bug 1518426 - Attempting to promote a content view to a lifecycle environment in another org is not immediately rejected
Summary: Attempting to promote a content view to a lifecycle environment in another or...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: satellite6-bugs
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-28 21:45 UTC by Justin Sherrill
Modified: 2019-11-05 23:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:10:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23185 0 None None None 2018-04-09 16:34:54 UTC

Description Justin Sherrill 2017-11-28 21:45:05 UTC
Description of problem:

When trying to promote a content view to a lifecycle environment in another org, the server initially accepts this and returns a task.  The task fails terribly and it is difficult to recover from 

(yes i did this by mistake).


Version-Release number of selected component (if applicable):
6.3 (likely possible in 6.2 as well)

How reproducible:
always

Steps to Reproduce:
1.  Create org 'a'
2.  Create a lifecycle env 'test' in org a
3.  Create org 'b'
4.  Create some content view in org b, and add one repo to it
5.  Publish this content view and grab the version id
6.  run:  

hammer content-view version promote  --organization="Org-A"  --to-lifecycle-environment=test --from-lifecycle-environment=Library  --id=3591 --force

Actual results:
Error: Runtime Error could not execute statement at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse:2,102

Error when candlepin catches this terrible terrible mistake

Expected results:
Immediate error with something like "This content view is not part of organization "Org-A"

Additional info:

Comment 2 Samir Jha 2018-04-09 16:34:53 UTC
Created redmine issue http://projects.theforeman.org/issues/23185 from this bug

Comment 3 Satellite Program 2018-04-17 20:05:55 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23185 has been resolved.

Comment 4 Chris Brown 2018-06-28 18:09:26 UTC
Verified in Satellite 6.4:

# hammer content-view version promote --organization="a" --to-lifecycle-environment=test --from-lifecycle-environment=Library --id=5 --force
Could not promote the content view:
  Validation failed: CV could not be promoted to test because the content view and the environment are not in the same organization!

Comment 6 Bryan Kearney 2018-10-16 19:10: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


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