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 2018879

Summary: Satellite inventory sync reports 504 error
Product: Red Hat Satellite Reporter: Dhananjay Pramod Mule <dmule>
Component: RH Cloud - Cloud ConnectorAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: acassatta, aruzicka, aurankar, bbuckingham, ben.argyle, lphiri, momran, pdudley, pdwyer, rcavalca, robwilli, sshtein
Target Milestone: Unspecified   
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: 2023-01-25 17:58:53 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 Dhananjay Pramod Mule 2021-11-01 06:01:59 UTC
Description of problem:
Inventory sync on satellite causes 504 errors intermittently 

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


How reproducible:
Intermittently 

Steps to Reproduce:
1.
2.
3.

Actual results:
~~~ /var/log/foreman/production.log
 Started GET "/redhat_access/r/insights/platform/inventory/v1/hosts?insights_id=XXXXXXX" for XX.XX.XX.XX at 2021-10-26 04:02:15 +0100
 Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as JSON
   Parameters: {"insights_id"=>"XXXXXXX", "path"=>"platform/inventory/v1/hosts"}
 Action failed
 Backtrace for 'Action failed' error (RestClient::GatewayTimeout): 504 Gateway Timeout
~~~


Expected results:
Inventory sync should be successful every-time  
~~~
 Started GET "/redhat_access/r/insights/platform/inventory/v1/hosts?insights_id=XXXXXXX" for XX.XX.XX.XX at 2021-10-26 04:02:35 +0100
 Processing by InsightsCloud::Api::MachineTelemetriesController#forward_request as JSON
   Parameters: {"insights_id"=>"XXXXXXX", "path"=>"platform/inventory/v1/hosts"}
 Completed 200 OK in 147ms (Views: 0.1ms | ActiveRecord: 2.0ms | Allocations: 5739)
~~~


Additional info:

Comment 4 Lindani Phiri 2021-11-02 13:57:59 UTC
@Dhananjay
The URLs shown in the log snippet are related to insight client and not inventory sync.
Do we have more logs available?

Comment 5 Ben 2021-11-08 15:38:09 UTC
I'm one of the end-users suffering from this.  What logs do you required?

Comment 15 Paul Dudley 2022-12-22 17:09:23 UTC
Clearing needsinfo on dmule and adding logs here from an in-house example that directly matches a customer case. Logs are with debugging and REST requests also logged, should be helpful. Also setting severity to medium as I think this is affecting more customers than we realize/know of.

Comment 24 Shimon Shtein 2023-01-25 17:58:53 UTC

*** This bug has been marked as a duplicate of bug 2127180 ***