This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 1893672 - OpenSCAP Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout
Summary: OpenSCAP Report not uploaded from proxy to Foreman server, cause: Failed to u...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Jameer Pathan
URL:
Whiteboard:
: 2049505 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-02 10:48 UTC by Ahmed Eladawy
Modified: 2024-06-06 00:36 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-06 00:36:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   SAT-18333 0 None Migrated None 2024-06-06 00:36:09 UTC

Description Ahmed Eladawy 2020-11-02 10:48:15 UTC
Description of problem:

- OpenSCAP Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout

DEBUG: running: /usr/bin/env bzip2 /tmp/d20201102-8784-ewp9ha/results.xml
Uploading results to https://[SATELLITE]:9090/compliance/arf/1
Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout

- And then a heavy CPU load is happening with the following :

13543 postgres  20   0 8853256 217464 209396 R  88.1  0.3   0:38.98 postgres: foreman foreman [local] SELECT

- Per customer comment :

The process worked fine on 6.7.1 and the issue started after upgrade to 6.7.4 and was not solved by updating to 6.7.5

- If we remove the logs on PostgreSQL then it working sometimes then the issue starts again .

- PostgreSQL tables sizes :

# su - postgres -c "psql foreman -c \"select to_char(count(*), 'FM9,999,999,999') as logscount from logs;\""
 logscount
------------
 20,688,600
(1 row)

# su - postgres -c "psql foreman -c \"select to_char(count(*), 'FM9,999,999,999') as reportscount from reports;\""
 reportscount
--------------
 410,555
(1 row)




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

Red Hat Satellite 6.7.5

How reproducible:

Fairly often in the customer's environment. Unable to reproduce locally.


Steps to Reproduce:
1. Run OpenSCAP scan on the satellite clients :

# /usr/bin/foreman_scap_client 1


Actual results:

The OpenSCAP report upload failed with the folling message :

Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout

Expected results:

No error.

Comment 1 Nikolaus Eppinger 2020-11-05 15:10:42 UTC
each upload caused a new select postgres process

Comment 5 Brad Buckingham 2023-05-08 12:47:51 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 7 Brad Buckingham 2023-06-12 23:12:55 UTC
Based upon feedback during auto-closure, leaving this bugzilla open a while longer for additional investigation.

Comment 8 Ron Lavi 2023-09-04 12:54:56 UTC
*** Bug 2049505 has been marked as a duplicate of this bug. ***

Comment 9 Ron Lavi 2023-09-04 13:07:04 UTC
The origin of the error might be with nokogiri that never free up the memory as explained in https://bugzilla.redhat.com/show_bug.cgi?id=2237152

Comment 11 Eric Helms 2024-06-06 00:36:10 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


Note You need to log in before you can comment on or make changes to this bug.