Skip to content

fix(event): fix cannot deactive BlockDevice#546

Merged
akhilerm merged 1 commit intoopenebs-archive:masterfrom
cospotato:master
Mar 1, 2021
Merged

fix(event): fix cannot deactive BlockDevice#546
akhilerm merged 1 commit intoopenebs-archive:masterfrom
cospotato:master

Conversation

@cospotato
Copy link
Copy Markdown
Contributor

Pull Request template

Why is this PR required? What issue does it fix?:

When I unplugged a disk from node, the BlockDevice was not become Inactive immediately until I restart (delete daemonset pod) the daemonset on the node.

What this PR does?:

fix cannot deactive BlockDevice when GPTBasedUUID is enabled

Does this PR require any upgrade changes?:

If the changes in this PR are manually verified, list down the scenarios covered::

Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

akhilerm
akhilerm previously approved these changes Feb 22, 2021
Copy link
Copy Markdown
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM.

@cospotato Can you add a changelog also.

@cospotato
Copy link
Copy Markdown
Contributor Author

@akhilerm Added changelog.

akhilerm
akhilerm previously approved these changes Feb 23, 2021
Copy link
Copy Markdown
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM

fixed cannot deactive BlockDevice immediately when "unplugged" device with
GPTBasedUUID enabled

Signed-off-by: cospotato <i@0x233.cn>
Copy link
Copy Markdown
Contributor

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #546 (47905bb) into master (368ef92) will increase coverage by 0.50%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
+ Coverage   48.41%   48.91%   +0.50%     
==========================================
  Files          73       73              
  Lines        3371     3365       -6     
==========================================
+ Hits         1632     1646      +14     
+ Misses       1581     1564      -17     
+ Partials      158      155       -3     
Impacted Files Coverage Δ
pkg/udev/mockdata.go 66.66% <100.00%> (-0.43%) ⬇️
pkg/udevevent/event.go 80.00% <100.00%> (+0.45%) ⬆️
cmd/ndm_daemonset/probe/udevprobe.go 67.03% <0.00%> (+1.67%) ⬆️
cmd/ndm_daemonset/probe/addhandler.go 77.31% <0.00%> (+3.09%) ⬆️
cmd/ndm_daemonset/probe/eventhandler.go 50.90% <0.00%> (+10.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7196834...47905bb. Read the comment docs.

@akhilerm akhilerm merged commit 7b96dec into openebs-archive:master Mar 1, 2021
@akhilerm
Copy link
Copy Markdown
Contributor

akhilerm commented Mar 1, 2021

Thank you for this fix @cospotato

@cospotato
Copy link
Copy Markdown
Contributor Author

@akhilerm I'm happy to help!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants