Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 796239 - All Repos appear in template when product added - even though no repo selected
Summary: All Repos appear in template when product added - even though no repo selected
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Katello QA List
URL:
Whiteboard:
: 759277 (view as bug list)
Depends On: 799149
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-02-22 14:44 UTC by Steve Reichard
Modified: 2019-09-26 13:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:28:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
video (6.85 MB, video/ogg)
2012-02-22 14:44 UTC, Steve Reichard
no flags Details

Description Steve Reichard 2012-02-22 14:44:22 UTC
Created attachment 564993 [details]
video

Description of problem:


When I add the "Red Hat Enterprise Linux" product to my system template, all repos that have been enabled appear in my downloaded template, even when this does not make sence (i386 with X86_64 repos or 5.7 repos with 6.2).  If I show the template repos in the UI, I see no repos.

I have figured out to work around this.  While I thought I needed a product to select a distro, I recently found if I add just the repo I desire, I can add the distro.

So this may just be a documentation issue stating not to add a product that has incompatible repo.

recording attached.  I crate a new system template add the red hat product, slect a distro, show that no repos are in the template.  Save and download, then show that all the enabled repos are in the download template.

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


Red Hat Enterprise Linux Server release 6.2 (Santiago)
Linux cf-se3.cloud.lab.eng.bos.redhat.com 2.6.32-220.4.2.el6.x86_64 #1 SMP Mon Feb 6 16:39:28 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
PyYAML-3.09-14.el6_1.x86_64
facter-1.5.9-1.el6.noarch
js-1.8.5-6.el6.x86_64
mongodb-1.8.2-3.el6.x86_64
mongodb-server-1.8.2-3.el6.x86_64
puppet-2.6.11-1.el6_1.noarch
pymongo-1.9-8.el6_1.x86_64
tomcat6-6.0.24-35.el6_1.noarch
ruby-1.8.7.352-5.el6_2.x86_64
grinder-0.0.136-1.el6.noarch
postgresql-server-8.4.9-1.el6_1.1.x86_64
postgresql-8.4.9-1.el6_1.1.x86_64
candlepin-0.5.20-1.el6.noarch
pulp-0.0.265-1.el6.noarch
katello-0.1.238-4.el6.noarch
katello-all-0.1.238-4.el6.noarch
katello-cli-0.1.54-2.el6.noarch
katello-configure-0.1.64-5.el6.noarch




How reproducible:

easily and for a long time.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Mike McCune 2012-02-22 18:53:01 UTC
this is working as designed even if it is a bit confusing.  The user should only add repos + distros they want to the template.  Adding the entire product can definitely cause the issues you describe above.  In v 1.1 we will re-examine this workflow to improve this.

perhaps we may disable the option to add a product to a template since that really ends up causing more problems than solutions.

Comment 2 James Laska 2012-02-29 20:42:13 UTC
It should be possible not to add a single repository to a template, rather than the entire product.  This will allow you to create system templates that include *only* the package repo URLs for the added repositories.  For an example, see some of my recent templates at https://yttrium.idm.lab.bos.redhat.com/templates/

Comment 3 James Laska 2012-02-29 20:43:30 UTC
(In reply to comment #2)
> It should be possible not to add a single repository to a template, rather than
> the entire product.  This will allow you to create system templates that
> include *only* the package repo URLs for the added repositories.  For an
> example, see some of my recent templates at
> https://yttrium.idm.lab.bos.redhat.com/templates/

Ergh, phalanges!  "It should be possible to add a single repository..."

Comment 4 Steve Reichard 2012-03-01 13:20:47 UTC

I don't find this very intuitive.

You add a product and it adds all the repos, but they don't show up as being added in the GUI but will in the template?   If they showed up and I could unselect the ones I didn't want, I would understand that flow.  

So as comments 2 & 3 suggest and as I state in the original text there is a method to do the activity, but it is not flow I at least expected. Is this clearly documented?

Comment 5 James Laska 2012-03-01 13:30:20 UTC
(In reply to comment #4)
> 
> I don't find this very intuitive.

I think the challenge for me was understanding the current state of affairs.  Currently, the product is "Red Hat Enterprise Linux Server".  That includes *all* major and minor versions of RHEL.  So by adding the product "Red Hat Enterprise Linux Server" to a template, you are effectively adding *all* versions and updates of RHEL.

I'm not sure if this understanding of a product is something unique to katello, or something it is representing that's previously established by RHN (manifest).

So I guess the question now is whether that representation of a product is clearly understood + documented ... and whether it's the best way to visualize this data. 

As for intuitive, I don't know if this is correct, but I would have expected to see a product list that contained ...

 * Red Hat Enterprise Linux Server 6 [x86_64, i386]
 * Red Hat Enterprise Linux Server 5 [x86_64, i386]

Adding one of those products would then add all enabled+synced update releases of RHEL6 (or RHEL5 if selected).  So that might not be 100% intuitive either.

Should this be extended further ...

 * Red Hat Enterprise Linux Server 5.7 [x86_64, i386]
 * Red Hat Enterprise Linux Server 5.8 [x86_64, i386]
 * Red Hat Enterprise Linux Server 5Server [x86_64, i386]
 * Red Hat Enterprise Linux Server 6.1 [x86_64, i386]
 * Red Hat Enterprise Linux Server 6.2 [x86_64, i386]
 * Red Hat Enterprise Linux Server 6Server [x86_64, i386]

I suspect this might address your concerns regarding intuitiveness ... but might clutter up the UI horribly.  

Justin: Any thoughts on how katello is representing RHEL as a product?  Is lumping all major+minor versions of RHEL into a single "product" a katello construct, or something established elsewhere?

Comment 6 Steve Reichard 2012-03-01 14:13:19 UTC
An additional thought

Is the way repos handled consistent with other objects, say distros

When you add a product to the template the distro becomes selectable but is not added to the template until you select it.

When you add a prodcut to the template, all the repos get added to the template but no the UI, this un selectable/unselectable.

Comment 8 James Laska 2012-03-01 14:43:37 UTC
(In reply to comment #6)
> When you add a product to the template the distro becomes selectable but is not
> added to the template until you select it.
> 
> When you add a prodcut to the template, all the repos get added to the template
> but no the UI, this un selectable/unselectable.

Hi Steve, all valid points.  For Justin's sanity, can we keep one issue per bug?  Would you mind logging issues

Comment 9 Justin Sherrill 2012-03-01 14:49:04 UTC

If adding the RHEL product to a template doesn't work properly, I would advocate for just removing the ability to add products to a template.  No real point in having a broken feature causing support calls.


Thoughts Bryan?

Comment 12 James Laska 2012-03-01 15:00:46 UTC
(In reply to comment #9)
> 
> If adding the RHEL product to a template doesn't work properly, I would
> advocate for just removing the ability to add products to a template.  No real
> point in having a broken feature causing support calls.

Does this have any UI implications?

> katello> template info --name rhel-i386-server-6-cf-tools
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                                                                                                  Template Info
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> Id:                       9
> Name:                     rhel-i386-server-6-cf-tools
> Revision:                 9
> Description:
>     None
> Environment Id:           3
> Parent Id:                None
> Products:
>     
> Repositories:
>     Red Hat Enterprise Linux 6 Server RPMs i386 6Server
>     Red Hat CloudForms Tools for RHEL 6 RPMs i386 6Server
>     Red Hat CloudForms Tools for RHEL 6 Beta RPMs i386 6Server
> Packages:
>     aeolus-audrey-agent
>     katello-agent
>     open-vm-tools
>     rhev-agent
> Parameters:
>     
> Package Groups:
>     
> Package Group Categories:

Also, CLI implications?

> katello> template update -h
> Usage: katello [options]
> 
> Options:
>   -h, --help            show this help message and exit
>   -g                    grep friendly output
>   -v                    verbose, more structured output
>   -d DELIMITER          grep friendly output column delimiter
> <snip>
>   --add_product=ADD_PRODUCTS
>                         name of the product
>   --remove_product=REMOVE_PRODUCTS
>                         name of the product

Comment 13 Justin Sherrill 2012-03-01 18:54:36 UTC
Yes, it has both UI, cli,and api implications.

Comment 14 Justin Sherrill 2012-03-01 21:45:47 UTC
Disabled adding product to system templates in the UI.  
d46df430ae1cc90516e63d18fe01086293fa2ad6

Opened bug for cli/api as i figure it will be faster/safer for a backend member to handle that.

-Justin

Comment 15 Justin Sherrill 2012-03-01 21:46:20 UTC
Sorry, the referenced bug: https://bugzilla.redhat.com/show_bug.cgi?id=799149

Comment 17 Justin Sherrill 2012-03-06 13:26:59 UTC
*** Bug 759277 has been marked as a duplicate of this bug. ***

Comment 18 Mike McCune 2012-03-07 23:44:40 UTC
mass move ON_QA after brewing

Comment 19 Jeff Weiss 2012-03-09 21:04:54 UTC
Verified - can no longer add products to templates. 
Katello Version: 0.2.9-1.git.0.aede6b1.el6


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