Skip to content
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

[V2V] Extend InfraConversionJob timeout #19373

Merged

Conversation

ghost
Copy link

@ghost ghost commented Oct 7, 2019

InfraConversionJob class inherits from Job class. And Job class implements a timeout mechanism with a default timeout of 5 minutes. A VM migration is likely to take more than 5 minutes, so this PR sets the DEFAULT_TIMEOUT constant self.current_job_timeout method to 36 hours to allow large VM to migrate.

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

@ghost
Copy link
Author

ghost commented Oct 7, 2019

@miq-bot add-label transformation, bug, ivanchuk/yes
@miq-bot add-reviewer @agrare

@@ -1,4 +1,7 @@
class InfraConversionJob < Job
# Override default timeout to allow large disks VM migration
DEFAULT_TIMEOUT = 36.hours
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer overriding the self.current_job_timeout method instead of redefining the constant

@miq-bot
Copy link
Member

miq-bot commented Oct 7, 2019

Checked commits fabiendupont/manageiq@1ff088e~...e701a4a with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@agrare agrare self-assigned this Oct 7, 2019
@agrare agrare merged commit 584f8bc into ManageIQ:master Oct 7, 2019
@agrare agrare added this to the Sprint 122 Ending Oct 14, 2019 milestone Oct 7, 2019
@ghost ghost deleted the v2v_extend_infraconversionjob_timeout branch October 7, 2019 14:40
simaishi pushed a commit that referenced this pull request Feb 21, 2020
…ionjob_timeout

[V2V] Extend InfraConversionJob timeout

(cherry picked from commit 584f8bc)

https://bugzilla.redhat.com/show_bug.cgi?id=1789433
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit cef2c6fdf9d01e3652cd0daa026fbe54a9a8ebd7
Author: Adam Grare <[email protected]>
Date:   Mon Oct 7 10:22:14 2019 -0400

    Merge pull request #19373 from fdupont-redhat/v2v_extend_infraconversionjob_timeout

    [V2V] Extend InfraConversionJob timeout

    (cherry picked from commit 584f8bcbf6f804a1fd5e3f1d92a87aa458987ed3)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants