Bug 1083236
Summary: | Cannot associate a gpg key to a repository | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Og Maciel <omaciel> | |
Component: | API | Assignee: | Partha Aji <paji> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | sthirugn <sthirugn> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.0.3 | CC: | bbuckingham, erezende, jmontleo, sthirugn | |
Target Milestone: | Unspecified | Keywords: | Reopened, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
URL: | http://projects.theforeman.org/issues/6023 | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1083256 (view as bug list) | Environment: | ||
Last Closed: | 2014-07-02 14:14:39 UTC | Type: | Bug | |
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: | 1083256 |
Description
Og Maciel
2014-04-01 18:17:55 UTC
*** Bug 1103789 has been marked as a duplicate of this bug. *** Created redmine issue http://projects.theforeman.org/issues/6023 from this bug should be fixed as of commit 4121731bf7313e874aa00e5a322c22a2fe1a5af5. Note you need to use gpg-key-id and not gpg-key-name while associating. There is a bz filed on that https://bugzilla.redhat.com/show_bug.cgi?id=1103944 and should probably be addressed after https://bugzilla.redhat.com/show_bug.cgi?id=1103945 is fixed. Running automation the test have failed. The GPG was not associated via CLI but is possible to associate via UI. # LANG=en_US hammer -v -u admin -p changeme --output csv repository create --product-id='130' --name='恖蜑姏速慚怤谎圞潿炫迴俉竛揋婚' --publish-via-http='true' --url='http://omaciel.fedorapeople.org/fakerepo01/' --gpg-key='u73z6m' --content-type='yum' Message,Id,Name Repository created,101,\u6056\u8711\u59cf\u901f\u615a\u6024\u8c0e\u571e\u6f7f\u70ab\u8ff4\u4fc9\u7adb\u63cb\u5a5a # LANG=en_US hammer -v -u admin -p changeme repository info --id='101' ID: 101 Name: \u6056\u8711\u59cf\u901f\u615a\u6024\u8c0e\u571e\u6f7f\u70ab\u8ff4\u4fc9\u7adb\u63cb\u5a5a Label: 0f74a682-0684-416f-a8de-4c599712e8a6 Organization: rl47usl2 Red Hat Repository: no Content Type: yum URL: http://omaciel.fedorapeople.org/fakerepo01/ Publish Via HTTP: yes Published At: http://qetello02.usersys.redhat.com/pulp/repos/rl47usl2/Library/custom/FPYGnBtjjyJADbCYNwwu/0f74a682-0684-416f-a8de-4c599712e8a6 Product: ID: 130 Name: YnnZIMaeHkNvKznrUtau GPG Key: Sync: Status: Not Synced Created: 2014/06/05 21:04:06 Updated: 2014/06/05 21:04:09 Content Counts: Completing the last comment follows the environment where have failed: * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.7-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.7-1.el6_5.noarch * candlepin-tomcat6-0.9.7-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.14-1.el6sat.noarch * foreman-compute-1.6.0.14-1.el6sat.noarch * foreman-gce-1.6.0.14-1.el6sat.noarch * foreman-libvirt-1.6.0.14-1.el6sat.noarch * foreman-ovirt-1.6.0.14-1.el6sat.noarch * foreman-postgresql-1.6.0.14-1.el6sat.noarch * foreman-proxy-1.6.0.6-1.el6sat.noarch * foreman-selinux-1.6.0-4.el6sat.noarch * foreman-vmware-1.6.0.14-1.el6sat.noarch * katello-1.5.0-25.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.45-1.el6sat.noarch * openldap-2.4.23-31.el6.x86_64 * pulp-katello-0.3-3.el6sat.noarch * pulp-nodes-common-2.4.0-0.18.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.18.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.18.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.18.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.18.beta.el6sat.noarch * pulp-selinux-2.4.0-0.18.beta.el6sat.noarch * pulp-server-2.4.0-0.18.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch * rubygem-hammer_cli-0.1.1-3.el6sat.noarch * rubygem-hammer_cli_foreman-0.1.1-8.el6sat.noarch * rubygem-hammer_cli_foreman_tasks-0.0.3-2.el6sat.noarch * rubygem-hammer_cli_katello-0.0.4-5.el6sat.noarch Note you need to use gpg-key-id and not gpg-key or gpg-key-name while associating. There is a bz filed on that https://bugzilla.redhat.com/show_bug.cgi?id=1103944 and should probably be addressed after https://bugzilla.redhat.com/show_bug.cgi?id=1103945 is fixed. Verified. Works fine in: 1. UI 2. CLI - using gpg key name or gpg key id Test Scenario 1: # hammer repository create --product-id='94' --name='newrepo' --publish-via-http='true' --url='**valid url**' --gpg-key='testgpgkey' --content-type='yum' Repository created # hammer repository list --organization=ACME_Corporation ---|------------------------------------------------------------|------------- ID | NAME | CONTENT TYPE ---|------------------------------------------------------------|------------- 11 | newrepo | yum ---|------------------------------------------------------------|------------- # hammer repository info --id=11 ID: 11 Name: newrepo Label: newrepo Organization: ACME_Corporation Red Hat Repository: no Content Type: yum URL: **** Publish Via HTTP: yes Published At: http://host/pulp/repos/ACME_Corporation/Library/custom/product1/newrepo Product: ID: 94 Name: product1 GPG Key: ID: 1 Name: testgpgkey Sync: Status: Not Synced Created: 2014/06/12 17:29:52 Updated: 2014/06/12 17:29:55 Content Counts: Test Scenario 2: # hammer repository create --product-id='94' --name='newtestrepo' --publish-via-http='true' --url='*valid url' --gpg-key-id=1 --content-type='yum' Repository created # hammer repository list --organization=ACME_Corporation ---|------------------------------------------------------------|------------- ID | NAME | CONTENT TYPE ---|------------------------------------------------------------|------------- 11 | newrepo | yum 12 | newtestrepo | yum ---|------------------------------------------------------------|------------- # hammer repository info --id=12 ID: 12 Name: newtestrepo Label: newtestrepo Organization: ACME_Corporation Red Hat Repository: no Content Type: yum URL: **** Publish Via HTTP: yes Published At: http://host/pulp/repos/ACME_Corporation/Library/custom/product1/newtestrepo Product: ID: 94 Name: product1 GPG Key: ID: 1 Name: testgpgkey Sync: Status: Not Synced Created: 2014/06/12 17:36:22 Updated: 2014/06/12 17:36:25 Content Counts: Version Tested: * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.7-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.7-1.el6_5.noarch * candlepin-tomcat6-0.9.7-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.16-1.el6sat.noarch * foreman-compute-1.6.0.16-1.el6sat.noarch * foreman-gce-1.6.0.16-1.el6sat.noarch * foreman-libvirt-1.6.0.16-1.el6sat.noarch * foreman-ovirt-1.6.0.16-1.el6sat.noarch * foreman-postgresql-1.6.0.16-1.el6sat.noarch * foreman-proxy-1.6.0.7-1.el6sat.noarch * foreman-selinux-1.6.0-4.el6sat.noarch * foreman-vmware-1.6.0.16-1.el6sat.noarch * katello-1.5.0-25.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.48-1.el6sat.noarch * openldap-2.4.23-32.el6_4.1.x86_64 * openldap-devel-2.4.23-32.el6_4.1.x86_64 * pulp-katello-0.3-3.el6sat.noarch * pulp-nodes-common-2.4.0-0.20.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.20.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.20.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.20.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.20.beta.el6sat.noarch * pulp-selinux-2.4.0-0.20.beta.el6sat.noarch * pulp-server-2.4.0-0.20.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch This was delivered with 6.0.3, which is the Satellite 6 Beta. This was delivered in 6.0.3, the Beta version of Satellite 6.0 This was delivered in the Satellite 6 Beta (6.0.3) |