-
Notifications
You must be signed in to change notification settings - Fork 92
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
Catch error when volume creation fails #269
Catch error when volume creation fails #269
Conversation
bdad5cf
to
f326119
Compare
volume = service.volumes.get(volume_attrs[:uuid]) | ||
status = volume.try(:status) | ||
if status == "error" | ||
raise MiqException::MiqProvisionError, "An error occurred while provisioning Instance #{volume.name}" |
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.
This error message is sort of confusing because it says Instance but then names a volume. It should probably be reworded to make it clear that a volume failed to be provisioned.
f326119
to
642e65f
Compare
Checked commit alexander-demicev@642e65f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
Looks good to me
@alexander-demichev Can this be |
@miq-bot add_label gaprindashvili/yes |
@simaishi Hi, sure. |
Catch error when volume creation fails (cherry picked from commit 2fae362) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1578125
Gaprindashvili backport details:
|
Add error handling for status "error"
https://bugzilla.redhat.com/show_bug.cgi?id=1562355