Bug 1334996 - REST Timeout during manifest import
Summary: REST Timeout during manifest import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: jcallaha
URL:
Whiteboard:
: 1329091 1334383 (view as bug list)
Depends On:
Blocks: GSS_Sat6Beta_Tracker, GSS_Sat6_Tracker 1339766
TreeView+ depends on / blocked
 
Reported: 2016-05-11 05:52 UTC by Mike McCune
Modified: 2019-09-25 21:19 UTC (History)
8 users (show)

Fixed In Version: katello-installer-base-3.0.0.37-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:33:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 15170 0 High Closed REST Timeout during manifest import 2020-09-03 12:09:26 UTC
Red Hat Bugzilla 1334383 0 unspecified CLOSED Importing manifest via hammer fails if the import takes longer than 120 seconds 2021-02-22 00:41:40 UTC

Internal Links: 1334383

Description Mike McCune 2016-05-11 05:52:20 UTC
From closed bug here we have a user hitting a timeout during manifest import:

https://bugzilla.redhat.com/show_bug.cgi?id=1334627#c2

"""
I also encountered that on my testinstall, however my pulp was running fine while the initial import of the Manifest errored out with "RestClient::RequestTimeout: Katello::Resources::Candlepin::Owner: Request Timeout  (POST /candlepin/owners/ACME/imports)"

For me just clicking "refresh manifest" was enough to fix that issue, though.
"""

It looks like for 6.2 we regressed back to the old 120 second timeout:

:katello:

  :rest_client_timeout: 120

where in 6.1 we had this set to  

  :rest_client_timeout: 3600

we need to move this back to 3600 until we resolve ALL issues with async operations.

Comment 1 Mike McCune 2016-05-11 05:53:11 UTC
See this Candlepin RFE that is not complete:

https://bugzilla.redhat.com/show_bug.cgi?id=1313551

Comment 3 Mike McCune 2016-05-17 05:46:12 UTC
*** Bug 1329091 has been marked as a duplicate of this bug. ***

Comment 4 Bryan Kearney 2016-05-25 00:16:28 UTC
Upstream bug component is Content Management

Comment 5 Lukas Zapletal 2016-05-30 07:32:25 UTC
Is there a working workaround? I have increased the limit:

sed 's/:rest_client_timeout:.*/:rest_client_timeout: 5000/' -i /etc/foreman/plugins/katello.yaml

Restarted all the services.

But I am still getting a timeout after cca 120 seconds. It looks like the value is not being honored.

Comment 6 Lukas Zapletal 2016-05-30 07:58:28 UTC
So after few more tries, it started working. But I restarted all services for sure, not following...

Comment 7 Bryan Kearney 2016-06-01 17:28:16 UTC
*** Bug 1334383 has been marked as a duplicate of this bug. ***

Comment 8 jcallaha 2016-06-07 13:56:01 UTC
Verified in Satellite 6.2 Beta Snap 14. 
After 10 manifest imports, with various subscription combinations, I have not encountered the timeout issues seen in previous snaps. 

additionally
[root@rhsm-qe-1 ~]# cat /etc/foreman/plugins/katello.yaml | grep timeout
  :rest_client_timeout: 3600

Comment 9 Bryan Kearney 2016-07-27 11:33:58 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, 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-2016:1501


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