Bug 828909
| Summary: | Unable to import GPG key to consumer from server | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Martin Bacovsky <mbacovsk> | ||||||
| Component: | Infrastructure | Assignee: | Martin Bacovsky <mbacovsk> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sachin Ghai <sghai> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.0.0 | CC: | bkearney, cwelton, mmccune, omaciel, sghai | ||||||
| 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: | 2014-07-02 14:06:58 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: | 1022462 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Martin Bacovsky
2012-06-05 15:04:45 UTC
I believe this is in. Verified with snap6 compose3 katello-1.4.6-44.el6sat.noarch katello-qpid-client-key-pair-1.0-1.noarch katello-configure-1.4.7-7.el6sat.noarch katello-glue-elasticsearch-1.4.6-44.el6sat.noarch katello-foreman-all-1.4.6-44.el6sat.noarch katello-candlepin-cert-key-pair-1.0-1.noarch ruby193-rubygem-foreman-katello-engine-0.0.17-6.el6sat.noarch katello-common-1.4.6-44.el6sat.noarch pulp-katello-plugins-0.2-1.el6sat.noarch katello-configure-foreman-1.4.7-7.el6sat.noarch katello-cli-1.4.3-26.el6sat.noarch katello-certs-tools-1.4.4-1.el6sat.noarch katello-qpid-broker-key-pair-1.0-1.noarch katello-selinux-1.4.4-4.el6sat.noarch katello-glue-pulp-1.4.6-44.el6sat.noarch katello-glue-candlepin-1.4.6-44.el6sat.noarch katello-cli-common-1.4.3-26.el6sat.noarch katello-all-1.4.6-44.el6sat.noarch ruby193-rubygem-katello_api-0.0.3-4.el6sat.noarch signo-katello-0.0.23-2.el6sat.noarch ruby193-rubygem-katello-foreman-engine-0.0.12-3.el6sat.noarch I didn't face the reported issue. I installed a package on consumer via UI. And it imports the gpg-key on client automatically. I did not import it manually on client gpgcheck was enabled under redhat.repo and I installed zsh package on client. Please see the screenshot. Created attachment 815295 [details]
package install success
From cli: on server: ============= [root@cloud-qe-8 ~]# katello -u admin -p admin system packages --install zsh --name dhcp201-165.englab.pnq.redhat.com --env DEV --org "Katello Infrastructure" Performing remote action [ 38f25ded-6434-43d9-bf95-5e9090dfee00 ]... Remote action finished:zsh-4.3.10-5.el6.x86_64 [root@cloud-qe-8 ~]# on client: ========= [root@dhcp201-165 ~]# rpm -qa | grep zsh [root@dhcp201-165 ~]# rpm -qa | grep zsh zsh-4.3.10-5.el6.x86_64 For custom repos, gpgcheck always set to '0', not sure what is expected there. So filed a bz 1022462. Once that clarified, I'll verify this too. Punting it to MDP3 since this is blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1022462 Verified with sat6 beta snap10. For custom repos, if you associate the key with repo while creation then it is set to '1' in redhat.repo on client, otherwise set to '0' [root@shost yum.repos.d]# yum repolist Loaded plugins: package_upload, product-id, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. ACME_Corporation_fake_zoo | 2.1 kB 00:00 ACME_Corporation_fake_zoo/primary | 3.7 kB 00:00 ACME_Corporation_fake_zoo 32/32 repo id repo name status ACME_Corporation_fake_zoo zoo 32 repolist: 32 [root@shost yum.repos.d]# cat redhat.repo # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # # If this file is empty and this system is subscribed consider # a "yum repolist" to refresh available repos # [ACME_Corporation_fake_zoo] name = zoo baseurl = https://dhcp207-55.lab.eng.pnq.redhat.com/pulp/repos/ACME_Corporation/Library/custom/fake/zoo enabled = 1 gpgcheck = 1 gpgkey = https://dhcp207-55.lab.eng.pnq.redhat.com/katello/api/repositories/11/gpg_key_content sslverify = 1 sslcacert = /etc/rhsm/ca/candlepin-local.pem sslclientkey = /etc/pki/entitlement/752459387118277068-key.pem sslclientcert = /etc/pki/entitlement/752459387118277068.pem I installed package from UI and key was auto imported on client. I installed cow package on client. logs from client: ================== [root@shost ~]# rpm -qa | grep gpg-pubkey gpg-pubkey-f78fb195-4f0d5ba1 [root@shost ~]# rpm -qa | grep cow cow-2.2-3.noarch [root@shost ~]# Please see screenshot for package install from server. It was successfully installed and key is imported on client too. Created attachment 910372 [details]
package installed on client
This was delivered with 6.0.3, which is the Satellite 6 Beta. |