Bug 786222
Summary: | Unable to export a system template containing a <repository> for a single RHEL release | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | James Laska <jlaska> |
Component: | WebUI | Assignee: | Brad Buckingham <bbuckingham> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.1 | CC: | cpelland, cwelton, jturner, mmccune |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | katello-0.1.222-2.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 18:24:00 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: | |||
Bug Blocks: | 747354 |
Description
James Laska
2012-01-31 18:43:13 UTC
We need to allow picking of distributions based on *repo* and not product level. A fun side-effect when having a template that includes multiple <repositories> for different RHEL versions is that the resulting CloudForms image deployment fails spectacular. This is expected if you were to attempt to install packages from both RHEL5 and RHEL6.
> Error: Package: python-simplejson-2.0.9-8.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> Requires: python(abi) = 2.4
> Installed: python-2.6.6-29.el6.x86_64 (@koji-override-0/$releasever)
> python(abi) = 2.6
> Available: python-2.4.3-19.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-21.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-24.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-24.el5_3.6.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-27.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-27.el5_5.2.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-27.el5_5.3.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-43.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-44.el5.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.4.3-44.el5_7.1.x86_64 (Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5Server)
> python(abi) = 2.4
> Available: python-2.6.5-3.el6.i686 (Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6.1)
> python(abi) = 2.6
> Available: python-2.6.5-3.el6_0.2.i686 (Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6.1)
> python(abi) = 2.6
> Available: python-2.6.6-20.el6.x86_64 (Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6.1)
> python(abi) = 2.6
Escalating for consideration as a release blocker. I suspect promoting content from multiple product versions will be common.
commit - a5489f673436687b647d2736a59cff2a0ccc22f5 This commit changes the logic for adding of distributions to a system template. Before the commit, a template had to have a product associated with it, in order to assign a distribution. In addition, the distributions that could be assigned would be based on those that are available as part of the template's products. After this commit, a template has to have either a product or repository associated with it, to assign a distribution. The distributions available will be based on those available as part of those products & repos. This allows the user to create a template consisting of products, repos or a combination. Fix available for test in katello-0.1.222-2.el6 I believe the version of katello I'm testing has this fix, however the problem remains. Since distribution selection is not possible in the web-ui, I had to work around bug#788599 using katello shell... > template update --name configserver --add_distribution "ks-Red Hat Enterprise Linux-Server-6.2-x86_64" After promoting that template, the resulting system template still contains ... <!-- Template is not complete and will likely fail. --> <!-- - Exactly one distribution must be present to export a TDL --> and does not include a <install> section. I tested with the following package versions: * katello-0.1.235-2.el6.src.rpm * katello-certs-tools-1.0.2-2.el6.src.rpm * katello-cli-0.1.54-3.el6.src.rpm * katello-configure-0.1.64-3.el6.src.rpm * katello-httpd-ssl-key-pair-1.0-1.src.rpm * katello-qpid-broker-key-pair-1.0-1.src.rpm * katello-selinux-0.1.3-1.el6.src.rpm * katello-trusted-ssl-cert-1.0-1.src.rpm Apologies, I believe this issue *is* resolved. My previous test was using a template that had unpromoted changes present. After re-promoting the template (while working around bug#788599), the exported system template *does* contain a <install> section. I'll leave this in ON_QA until it's possible to truly confirm, without working around #788599. Apologies for the email traffic. QA Verified. After syncing multiple RHEL repos and subsequently trying to add only one to a template, the resulting template contains only the requested repo. getting rid of 6.0.0 version since that doesn't exist |