-
Notifications
You must be signed in to change notification settings - Fork 120
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] Allow a retry to let virt-v2v start #479
[V2V] Allow a retry to let virt-v2v start #479
Conversation
@miq-bot add-label transformation, enhancement, hammer/yes, blocker |
Checked commit fabiendupont@27bfa74 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@@ -44,8 +44,12 @@ def main | |||
@handle.set_state_var(:ae_state_progress, 'message' => 'Disks transformation succeeded.', 'percent' => 100) | |||
end | |||
rescue => e | |||
@handle.set_state_var(:ae_state_progress, 'message' => e.message) | |||
raise | |||
if @handle.root['ae_state_retries'] > 1 |
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.
@fdupont-redhat Are their specific exceptions that we should catch or is it that the first exception is always caught and ignored and along the way we suppress the exception which will never get raised.
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.
@mkanoor The exception will be raised again if it's legit, meaning that it actually failed. If it was only because virt-v2v-wrapper has not created the state file, a retry should be enough.
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.
👍
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.
@fdupont-redhat Looks good.
…sformation_check [V2V] Allow a retry to let virt-v2v start (cherry picked from commit 7e6c26d) https://bugzilla.redhat.com/show_bug.cgi?id=1653407
Hammer backport details:
|
In slow environments, virt-v2v-wrapper may need a few seconds to start virt-v2v and to create the state file. This can lead the transformation check to fail because the file doesn't exist. With this PR, we allow a retry of VMCheckTransformed, i.e. 1 minute, to let virt-v2v-wrapper start the conversion and create the state file.
Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1653407