Closed Ab-hishek closed 2 years ago
Merging #670 (305ef99) into develop (9f40337) will increase coverage by
0.50%
. The diff coverage is71.42%
.
@@ Coverage Diff @@
## develop #670 +/- ##
===========================================
+ Coverage 44.83% 45.33% +0.50%
===========================================
Files 79 79
Lines 3970 3990 +20
===========================================
+ Hits 1780 1809 +29
+ Misses 2023 2012 -11
- Partials 167 169 +2
Impacted Files | Coverage Δ | |
---|---|---|
cmd/ndm_daemonset/filter/pathfilter.go | 69.38% <50.00%> (-7.54%) |
:arrow_down: |
cmd/ndm_daemonset/probe/udevprobe.go | 50.00% <100.00%> (+3.35%) |
:arrow_up: |
pkg/udev/common.go | 88.05% <100.00%> (+0.75%) |
:arrow_up: |
pkg/udev/mockdata.go | 67.12% <100.00%> (+0.45%) |
:arrow_up: |
pkg/udev/udev.go | 90.00% <0.00%> (ø) |
|
pkg/udev/device.go | 100.00% <0.00%> (ø) |
|
pkg/udev/monitor.go | 80.00% <0.00%> (ø) |
|
pkg/udev/enumerate.go | 58.33% <0.00%> (ø) |
|
pkg/udev/listentry.go | 0.00% <0.00%> (ø) |
|
... and 3 more |
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 2936ea7...305ef99. Read the comment docs.
@akhilerm could you review this PR?
Signed-off-by: Abhishek Agarwal abhishek.agarwal@mayadata.io
Why is this PR required? What issue does it fix?: This PR fixes the issue - https://github.com/openebs/openebs/issues/3491
What this PR does?: This PR adds extra dev links(apart from
by-id
and by-path) info which we get from the
udev` probe. This are useful to filter out bds when a disk is configured with some custom udev rules and uses those rules inside the path filter config of ndm.Does this PR require any upgrade changes?: No
If the changes in this PR are manually verified, list down the scenarios covered::
KERNEL=="sdb1",SYMLINK+="openebs_storage_02"
udevadm control --reload
/dev/openebs_storage_02
using exclude path filter:OUTPUT
: Listing bds withkubectl get bd -n openebs
doesn't list the above disk. b. Include the disk with symlink:/dev/openebs_storage_02
using include path filter:OUTPUT
: Listing bds withkubectl get bd -n openebs
does list the above disk.blockdevice-0db0a0b21ddbc52266b551d2d1c53791 abhishek-mayadata 7812939776 Unclaimed Active 4s
is the one having the custom udev ruleAny additional information for your reviewer? : Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>