-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix: do not filter out removable devices #147
Conversation
{"level":"info","ts":1649414296.9406986,"logger":"controller.lvmvolumegroup.vg-manager","msg":"does not match filter","reconciler group":"lvm.topolvm.io","reconciler kind":"LVMVolumeGroup","name":"vg1","namespace":"lvm-operator-system","Device.Name":"sr0","filter.Name":"isUsableByDeviceType"}
{"level":"info","ts":1649415065.6944656,"logger":"controller.lvmvolumegroup.vg-manager","msg":"does not match filter","reconciler group":"lvm.topolvm.io","reconciler kind":"LVMVolumeGroup","name":"vg1","namespace":"lvm-operator-system","Device.Name":"loop4","filter.Name":"isUsableByDeviceType"} |
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.
If, in future, there is a requirement to be able to configure the VG to not use loop devices , how would this be implemented?
Would it better to have one filter per type and add them to the list of filters for a VG dynamically depending on the configuration?
|
- hot pluggable devices are represented as removable in lsblk o/p - not all removable devices should be filtered out and this PR removes the existing filter - as a side effect ROM is being picked up for VG ops and that is filtered based on Type of device fixes: #109 Signed-off-by: Leela Venkaiah G <[email protected]>
Agree with Leela here. I don't think we need multiple filters for each device class. The current switch case usage would suffice. |
Can you elaborate on this seeing that the supported types would be dynamic?
|
If, in future, we want to allow dynamic device type config, the switch case will not work. Say we want to use loopDevices for one cluster and not the other, we need a way to dynamically determine the filters. |
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.
Approving for now but we should relook at the filter approach.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leelavg, nbalacha, sp98 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-4.10 |
@nbalacha: new pull request created: #193 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
the existing filter
filtered based on Type of device
fixes: #109
Signed-off-by: Leela Venkaiah G [email protected]