-
Notifications
You must be signed in to change notification settings - Fork 20
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
Import cluster is failing when one or more storage nodes does not have at least one lvm #716
Conversation
…titions on disk bugzilla: 1683603 tendrl-bug-id: Tendrl#715 Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
@@ -59,18 +59,30 @@ def get_lvs(): | |||
{"message": str(err)} | |||
) | |||
return None | |||
out = out.split('\n') |
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.
out is u'' when no lvm in storage node
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.
So all we are doing here is checking non empty for out
and adding a exception handling for parsing the out
variable.
Looks good to me. Make sure this time we test all the possible scenarios.
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.
ok
@shtripat @nthomas-redhat @dahorak please review |
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.
LGTM
The pep8 issue is related to this PR or generic one? |
6f369a6
Codecov Report
@@ Coverage Diff @@
## master #716 +/- ##
========================================
Coverage ? 38.7%
========================================
Files ? 42
Lines ? 2108
Branches ? 287
========================================
Hits ? 816
Misses ? 1262
Partials ? 30
Continue to review full report at Codecov.
|
@shtripat I verified this fix |
bugzilla: 1683603 tendrl-bug-id: Tendrl#715 Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
6f369a6
to
823ffa8
Compare
bugzilla: 1683603
tendrl-bug-id: #715
Signed-off-by: GowthamShanmugasundaram gshanmug@redhat.com