-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set timeout for inventory refresh calls #14245
Conversation
The settings.yml contains timeout only for RHV service calls. However when services are invoked as part of the refresh process, no timeout is provided for these calls, letting the Net::HTTP 60 seconds default timeout to be the affective timeout. The 60 seconds default timeout is too short, therefore the default timeout for inventory service calls to RHV is set to 1 hour. http://bugzilla.redhat.com/1430722
Checked commit masayag@5565e5a with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add_label blocker, euwe/yes, providers/rhevm |
@oourfali wdyt regarding docs? I think new options should also have new docs :) |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@masayag is this timeout per API call? 1 hour seems like a very long time for an API call |
@agrare This timeout is per API call, same timeout is set for the :service (which is an explicit call for the API not as part of the refresh). We hit that on a setup which had a slow network, where a request for all of the vms took over 10 minutes. |
Makes sense to have the same timeout as the other service, but if you need a 1hr timeout per API call I think we're going to have bigger problems haha |
Set timeout for inventory refresh calls (cherry picked from commit 0a7255b) https://bugzilla.redhat.com/show_bug.cgi?id=1431620
Euwe backport details:
|
The settings.yml contains timeout only for RHV service calls. However
when services are invoked as part of the refresh process, no timeout
is provided for these calls, letting the Net::HTTP 60 seconds default
timeout to be the affective timeout.
The 60 seconds default timeout is too short, therefore the default
timeout for inventory service calls to RHV is set to 1 hour.
http://bugzilla.redhat.com/1430722