Bug 756955
Summary: | Not able to add package group to a template when two or more products are present in the template | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
Component: | API | Assignee: | Tomas Strachota <tstrachota> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.0 | CC: | bkearney, lzap |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 18:08:50 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
Sachin Ghai
2011-11-25 09:48:20 UTC
FYI I think we are missing one option in the katello template update --name lzap --org ACME_Corporation --add_anything xxx command. And it is -- product xxxx because the CLI dont know from which product it should add the element (package, group, etc). I believe that we don't want to require a product from which the packages should come from. In the template we only define what packages we want to be installed and don't care where they come from. Therefore no option --product is needed. I tried the described scenario but didn't manage to make it fail. It either returns a correct error message when the package group is not in any of the repos or adds the group. Tested with katello 0.1.170-1 Verified with following katello build: [root@dhcp201-176 ~]# rpm -qa | grep katello katello-glue-candlepin-0.1.178-1.el6.noarch katello-trusted-ssl-cert-1.0-1.noarch katello-common-0.1.178-1.el6.noarch katello-httpd-ssl-key-pair-1.0-1.noarch katello-repos-testing-0.1.5-1.el6.noarch katello-cli-0.1.35-1.el6.noarch katello-0.1.178-1.el6.noarch katello-configure-0.1.53-1.el6.noarch katello-glue-pulp-0.1.178-1.el6.noarch katello-qpid-broker-key-pair-1.0-1.noarch katello-cli-common-0.1.35-1.el6.noarch katello-certs-tools-1.0.2-1.el6.noarch katello-all-0.1.178-1.el6.noarch katello-glue-foreman-0.1.178-1.el6.noarch katello-repos-0.1.5-1.el6.noarch I can add package group to a template when multiple products were present. Earlier I was using wrong package group name. Verified with following steps: ======================== katello> template create --name urtemplate --org sghai_org Successfully created template [ urtemplate ] Added 'pulp' product first ============================ katello> template update --name urtemplate --org sghai_org --add_product pulp Successfully updated template [ urtemplate ] Added 'RHEL' ============ katello> template update --name urtemplate --org sghai_org --add_product "Red Hat Enterprise Linux Server" Successfully updated template [ urtemplate ] katello> template update --name urtemplate --org sghai_org --add_distribution "ks-Red Hat Enterprise Linux-Server-6.2-x86_64" Successfully updated template [ urtemplate katello> template update --name urtemplate --org sghai_org --add_package_group "Additional Development" Successfully updated template [ urtemplate ] katello> template update --name urtemplate --org sghai_org --add_package_group "Backup Client" Successfully updated template [ urtemplate ] |