Bug 1334996

Summary: REST Timeout during manifest import
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton, egolov, jcallaha, ktordeur, lzap, rjerrido, unwosu
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-installer-base-3.0.0.37-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:33:58 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:
Bug Depends On:    
Bug Blocks: 1115190, 1339766    

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