Bug 799052 - Promoting template with assigned repo should fail if product is not already in the target environment
Promoting template with assigned repo should fail if product is not already i...
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: Martin Bacovsky
Katello QA List
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-03-01 11:39 EST by Ivan Necas
Modified: 2014-09-18 11:32 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-15 14:55:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Script for reproducing the error (1013 bytes, application/x-shellscript)
2012-03-01 11:40 EST, Ivan Necas
no flags Details

  None (edit)
Description Ivan Necas 2012-03-01 11:39:00 EST
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce (see attached script):
1.create org, env, provider, product, repo
2.create template
3.add only repo to the template
4.promote template
Actual results:
Repo is being promoted (fails on another error - see https://bugzilla.redhat.com/show_bug.cgi?id=799036)

Expected results:
Refusing to promote template with repo of product, that is not already promoted.
Comment 1 Ivan Necas 2012-03-01 11:40:20 EST
Created attachment 566884 [details]
Script for reproducing the error
Comment 2 Martin Bacovsky 2012-03-07 07:41:27 EST
Comment 3 Martin Bacovsky 2012-03-13 12:01:48 EDT
Pushed to master:

$ git log|grep 799052 -B4|grep commit
commit bb1509fc450730f74f229adc4ab96b217f26885f
commit 777d5b1974b1ad1c4a79c05c849d7ee29c986f7f

The changes should land in katello-0.2.13

Unittest was added as well
Comment 6 Jeff Weiss 2012-03-15 21:15:57 EDT
×Failed to promote: Cannot promote the changset 'changeset-1331760780096' because the repo 'mytestrepo-1331760763090' does not belong to any promoted product.

Comment 7 errata-xmlrpc 2012-05-15 14:55:56 EDT
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.


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