Bug 1650687

Summary: Unable to install custom packages via capsule due to GPG key failure
Product: Red Hat Satellite Reporter: Ram Nainsingh Tiruwa <ramsingh>
Component: Foreman ProxyAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: aruzicka, inecas
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-29 16:17:25 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:

Description Ram Nainsingh Tiruwa 2018-11-16 20:51:32 UTC
Description of problem:

clients register to capsule are unable to properly retrieve the GPG key of a  repository from the capsule.

Version-Release number of selected component (if applicable):

satellite-capsule-6.4.0-15.el7sat.noarch
satellite-common-6.4.0-15.el7sat.noarch
satellite-installer-6.4.0.7-2.el7sat.noarch



How reproducible:
Everytime

Steps to Reproduce:
1. Configure repository with custom gpg key
2. Publish and Promote repository
3. Build and/or subscribe system 
4. Attempt to install any package from the custom repository


Actual results:
Package fails to install with the following errors
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 64de1bb2: NOKEY
Retrieving key from https://<CAPSULE SERVER NAME>/katello/api/repositories/10/gpg_key_content


Expected results:
Download of custom GPG key from capsule as well as package installation.