Bug 796239
| Summary: | All Repos appear in template when product added - even though no repo selected | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Steve Reichard <sreichar> | ||||
| Component: | Content Management | Assignee: | Justin Sherrill <jsherril> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.0 | CC: | bkearney, jlaska, mmccune, scollier | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-08-22 18:28:43 UTC | Type: | --- | ||||
| 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: | 799149 | ||||||
| Bug Blocks: | 747354 | ||||||
| Attachments: |
|
||||||
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. 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/ (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..." 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? (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? 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. (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 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? (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 Yes, it has both UI, cli,and api implications. 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 Sorry, the referenced bug: https://bugzilla.redhat.com/show_bug.cgi?id=799149 *** Bug 759277 has been marked as a duplicate of this bug. *** mass move ON_QA after brewing Verified - can no longer add products to templates. Katello Version: 0.2.9-1.git.0.aede6b1.el6 |
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: