Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1709927

Summary: Content Hosts getting wrong gpgkey URL (i.e. not using /v2/ api)
Product: Red Hat Satellite Reporter: wclark
Component: Content CredentialsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Perry Gagne <pgagne>
Severity: medium Docs Contact:
Priority: high    
Version: 6.4CC: akapse, andrew.schofield, bwallace, chsimon, jjansky, roarora, rvdwees, tris.hoar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-18 13:07:44 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 wclark 2019-05-14 14:54:52 UTC
Since BZ#1684701, the 05-pulp-https.conf had the ProxyPass directive updated to use the new /v2/ API path for GPG Keys

In some cases the 05-pulp-https.conf is getting properly updated, but registered clients are still getting the old URL for gpgkey=... in /etc/yum.repos.d/redhat.repo

Suraj Patil found that in these cases, the below API call is still returning the old URL for GPG Keys

# curl -k -X GET https://<Your satellite hostname>:8443/rhsm/consumers/<Consumer ID of the client system>/ -cacert /etc/rhsm/ca/katello-server-ca.pem  --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem | python -m json.tool

.....
               "gpgUrl": "../../katello/api/repositories/1177/gpg_key_content",
.....

Comment 6 wclark 2019-05-16 13:41:48 UTC
A PR was submitted and merged that adds a rake task to the installer to update gpgUrls during update: https://github.com/Katello/katello/pull/8103

Comment 7 Brad Buckingham 2019-06-07 18:12:01 UTC
Hi William,

The PR mentioned in comment 6 is being tracked with bug 1717069.  Should we close this bugzilla as a duplicate of that one?