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

Catch error when volume creation fails #269

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

alexander-demicev
Copy link

Add error handling for status "error"
https://bugzilla.redhat.com/show_bug.cgi?id=1562355

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}"
Copy link
Contributor

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.

@miq-bot
Copy link
Member

miq-bot commented Apr 14, 2018

Checked commit alexander-demicev@642e65f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Member

@aufi aufi left a 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

@mansam mansam merged commit 2fae362 into ManageIQ:master Apr 18, 2018
@agrare agrare added this to the Sprint 84 Ending Apr 23, 2018 milestone Apr 24, 2018
@simaishi
Copy link
Contributor

@alexander-demichev Can this be gaprindashvili/yes? The BZ is marked as bloker for the next release.

@alexander-demicev
Copy link
Author

@miq-bot add_label gaprindashvili/yes

@alexander-demicev
Copy link
Author

@simaishi Hi, sure.

simaishi pushed a commit that referenced this pull request May 15, 2018
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 08d88cbd9b49590af271bd201bd9cc132927a723
Author: Samuel Lucidi <[email protected]>
Date:   Wed Apr 18 12:19:44 2018 -0400

    Merge pull request #269 from alexander-demichev/error-on-volume-check
    
    Catch error when volume creation fails
    (cherry picked from commit 2fae362ce8b25106cb00f9e7ee57f1fec9544e70)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1578125

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.

6 participants