Skip to content

fix(filter): add partition and device mapper check to validity filter#519

Merged
kmova merged 3 commits intoopenebs-archive:masterfrom
akhilerm:partition-invalid-filter
Dec 9, 2020
Merged

fix(filter): add partition and device mapper check to validity filter#519
kmova merged 3 commits intoopenebs-archive:masterfrom
akhilerm:partition-invalid-filter

Conversation

@akhilerm
Copy link
Copy Markdown
Contributor

@akhilerm akhilerm commented Dec 9, 2020

Why is this PR required? What issue does it fix?:
Repeated udev scan sometimes misses certain fields for devices like partition uuid, dm uuid etc. Since these fields are mandatory for generating the blockdevices unique ID, not having these fields may have issues with wrong blockdevices being created.

What this PR does?:

  • adds a new check in the device validity filter to make sure that only devices with a valid partition UUID or dm UUID are used for creating blockdevice resources.

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:

… filter

- add validation check for blockdevices of type partition and device mapper

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
@akhilerm akhilerm requested a review from kmova December 9, 2020 10:49
@akhilerm akhilerm added the bug bug to existing feature label Dec 9, 2020
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
@kmova kmova merged commit 4137e0d into openebs-archive:master Dec 9, 2020
akhilerm added a commit to akhilerm/node-disk-manager that referenced this pull request Dec 9, 2020
…openebs-archive#519)

add validation check for blockdevices of type partition and device mapper

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
kmova pushed a commit that referenced this pull request Dec 10, 2020
…#519)

add validation check for blockdevices of type partition and device mapper

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
@akhilerm akhilerm deleted the partition-invalid-filter branch December 13, 2021 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug bug to existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants