Skip to content

Conversation

@akhilerm
Copy link
Contributor

Signed-off-by: Akhil Mohan akhil.mohan@datacore.com

Why is this PR required? What issue does it fix?:
NDM crashes when trying to add zpool labels to the disk from used by probe due to uninitialized map.

What this PR does?:
Earlier the blockdevice labels map was initialized in the customtag probe
which causes undeclared map, if the labels are used before using customtag probe.
Now the label initialization happens before the probes are run.

Does this PR require any upgrade changes?:
No

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:

earlier the blockdevice labels map was initialized in the customtag probe
which causes undeclared map, if the labels are used before using customtag probe.
Now the label initialization happens before the probes are run.

Signed-off-by: Akhil Mohan <akhil.mohan@datacore.com>
Signed-off-by: Akhil Mohan <akhil.mohan@datacore.com>
@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2021

Codecov Report

Merging #663 (5ba7144) into develop (7c64d44) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #663      +/-   ##
===========================================
+ Coverage    45.10%   45.11%   +0.01%     
===========================================
  Files           79       79              
  Lines         3971     3970       -1     
===========================================
  Hits          1791     1791              
+ Misses        2009     2008       -1     
  Partials       171      171              
Impacted Files Coverage Δ
cmd/ndm_daemonset/probe/customtagprobe.go 23.33% <ø> (-4.80%) ⬇️
cmd/ndm_daemonset/controller/probe.go 100.00% <100.00%> (ø)
cmd/ndm_daemonset/probe/udevprobe.go 48.22% <0.00%> (-0.80%) ⬇️
cmd/ndm_daemonset/probe/addhandler.go 70.91% <0.00%> (+0.98%) ⬆️

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 7c64d44...5ba7144. Read the comment docs.

Copy link

@Ab-hishek Ab-hishek left a comment

Choose a reason for hiding this comment

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

LGTM

@akhilerm akhilerm merged commit 7094461 into openebs-archive:develop Dec 24, 2021
@akhilerm akhilerm deleted the fix-labels-issue branch December 24, 2021 05:02
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.

3 participants