-
Notifications
You must be signed in to change notification settings - Fork 49
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
Ledctl: add command to retrieve default controller #248
Conversation
7361edb
to
95ea477
Compare
95ea477
to
7a81037
Compare
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.
Few small comments, LGTM
99cad22
to
08be01b
Compare
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.
Hi,
please add description of new option to ledctl manual and new entry to ledctl help.
15d2b9d
to
3d2b53a
Compare
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.
Sorry, I just realized that we have to cover this in unit library tests:
https://github.com/intel/ledmon/blob/main/tests/lib_unit_test.c
4f20013
to
b008f46
Compare
I see that lib_unit_test script uses only slot feature. I've retested it and problem did not appear. |
@peluse could you please look? Especially for wording, I'm not sure if "best" is the appropriate. The feature is addressing is a scenario where multiple controllers are detected for one disk (NPEM, VMD). |
Add new command to ledctl, which enables to print the best available controller for given device. Output from this can be helpful when user must specify controller in other ledctl commands. Fixes intel#189 Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Add parameter tests for new command: --best-controller. Use new method to choose best controller for device. It is especially needed when VMD and NPEM are available on one platform. Skip IBPI test when drives are connected to better controller, than used to test. Test multipath drives only with best controller connected. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Add checking if controller used to find slot is not filtered out. It is needed to be checked for tests which are using drives instead of slots. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
- Print "unsupported controller type" instead of "?" when ledctl is not able to find supported controller for device - Add help option for "--best-controller" command - Align tests to new help mode Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Describe "--best-controller" option in ledctl manual. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Fix formatting error reported by YAPF. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
- change message for device without best controller Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Update ledctl.pod. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
b008f46
to
cd2be1f
Compare
758dc64
to
8f39281
Compare
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.
Small nitpicks from me
8f39281
to
d1a821a
Compare
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.
LGTM
d1a821a
to
57d6ab9
Compare
57d6ab9
to
39b6850
Compare
39b6850
to
bc62780
Compare
Rename --best-controller to --default-controller. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Add new command to ledctl, which enables to print the default,
preferred available controller for given device. Output from this
can be helpful when user must specify controller in other
ledctl commands.
Add parameter tests for new command: --default-controller.
Use new method to choose default controller for device. It is especially
needed when VMD and NPEM are available on one platform. Skip IBPI test
when drive is connected to different default controller, than used to test.
Test multipath drives only with default controller connected.