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 1983977

Summary: Unable to download latest insights-client Core Egg on clients after upgrading Satellite to 6.9.x
Product: Red Hat Satellite Reporter: James Jeffers <jjeffers>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahumbe, aruzicka, mmccune, osousa, peter.vreman, sshtein
Target Milestone: 6.9.4Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_rh_cloud-3.0.24.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1982468 Environment:
Last Closed: 2021-07-29 12:58: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:

Comment 2 Mike McCune 2021-07-20 17:06:00 UTC
Moving to POST as upstream PR is merged.

Comment 3 Ashish Humbe 2021-07-26 17:57:58 UTC
VERIFIED:

After upgrade to 6.9.4 ( latest SNAP)


We can register the client system successfully to Red Hat Insights via Satellite server.

From Satellite server: 

# rpm -qa | grep rh_cloud
tfm-rubygem-foreman_rh_cloud-3.0.24.1-1.el7sat.noarch



From client system:

# insights-client --version
Client: 3.1.1
Core: 3.0.233-1

From logs we can confirm that insight-core.egg was downloaded successfully. 

2021-07-26T13:35:04 [I|app|e9b5490b] Started GET "/redhat_access/r/insights/platform/module-update-router/v1/channel?module=insights-core" for 10.65.211.68 at 2021-07-26 13:
35:04 -0400
2021-07-26T13:35:04 [I|app|e9b5490b] Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as JSON
2021-07-26T13:35:04 [I|app|e9b5490b]   Parameters: {"module"=>"insights-core", "path"=>"platform/module-update-router/v1/channel"}
2021-07-26T13:35:04 [I|app|a0b51114] Started GET "/notification_recipients" for 10.64.54.31 at 2021-07-26 13:35:04 -0400
2021-07-26T13:35:04 [I|app|a0b51114] Processing by NotificationRecipientsController#index as JSON
2021-07-26T13:35:04 [I|app|a0b51114] Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.9ms | Allocations: 2241)
2021-07-26T13:35:04 [I|app|e9b5490b] Completed 200 OK in 358ms (Views: 0.2ms | ActiveRecord: 2.4ms | Allocations: 5575)
2021-07-26T13:35:04 [I|app|53ee7b8c] Started GET "/redhat_access/r/insights/v1/static/testing/insights-core.egg" for 10.65.211.68 at 2021-07-26 13:35:04 -0400
2021-07-26T13:35:04 [I|app|53ee7b8c] Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as 
2021-07-26T13:35:04 [I|app|53ee7b8c]   Parameters: {"path"=>"v1/static/testing/insights-core"}
2021-07-26T13:35:04 [I|app|53ee7b8c] Completed 200 OK in 455ms (Views: 0.3ms | ActiveRecord: 1.2ms | Allocations: 7586)




Debug log for reference: 

2021-07-26T13:48:08 [I|app|d07885fd] Started GET "/redhat_access/r/insights/v1/static/testing/insights-core.egg" for 10.65.211.68 at 2021-07-26 13:48:08 -0400
2021-07-26T13:48:08 [I|app|d07885fd] Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as 
2021-07-26T13:48:08 [I|app|d07885fd]   Parameters: {"path"=>"v1/static/testing/insights-core"}
2021-07-26T13:48:08 [D|tax|d07885fd] Current location set to none
2021-07-26T13:48:08 [D|tax|d07885fd] Current organization set to none
2021-07-26T13:48:08 [D|app|d07885fd] Request parameters for telemetry request: {"branch_id"=>"59efaa03-1810-4936-936c-b200064a1286"}
2021-07-26T13:48:08 [D|app|d07885fd] User agent for telemetry is: Foreman/2.3.1.21;foreman_rh_cloud/3.0.24.1;insights-client/3.1.1 (Core 3.0.233; requests 2.6.0) Red Hat Ent
erprise Linux Server 7.6 (CPython 2.7.5; Linux 3.10.0-957.1.3.el7.x86_64); systemd
2021-07-26T13:48:08 [D|app|d07885fd] Sending request to: https://cert-api.access.redhat.com/r/insights/v1/static/testing/insights-core.egg
2021-07-26T13:48:08 [D|app|d07885fd] RestClient.get "https://cert-api.access.redhat.com/r/insights/v1/static/testing/insights-core.egg?branch_id=59efaa03-1810-4936-936c-b200
064a1286", "Accept"=>"*/*", "Accept-Encoding"=>"gzip, deflate", "Content-Type"=>"", "User-Agent"=>"Foreman/2.3.1.21;foreman_rh_cloud/3.0.24.1;insights-client/3.1.1 (Core 3.0
.233; requests 2.6.0) Red Hat Enterprise Linux Server 7.6 (CPython 2.7.5; Linux 3.10.0-957.1.3.el7.x86_64); systemd"
 d07885fd | 
2021-07-26T13:48:08 [D|app|d07885fd] # => 200 OK | text/plain 1231003 bytes
 d07885fd | 
2021-07-26T13:48:08 [I|app|d07885fd] Completed 200 OK in 448ms (Views: 0.2ms | ActiveRecord: 1.3ms | Allocations: 7010)

Comment 8 errata-xmlrpc 2021-07-29 12:58:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.9.4 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:2948