-
Notifications
You must be signed in to change notification settings - Fork 547
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
[openshift] Capture ls long listing for /mnt #3910
base: main
Are you sure you want to change the base?
Conversation
This plugin is used to collect Openshift LSO details. This expands the ceph_osd plugin since storage nodes by default are not setup for ceph access. When gathering data from an OpenShift node when LSO is in use, we currently do not collect the symlink data location for LSO, which is always under /mnt. Many times this directory has pointers/symlinks to paths instead of devices. Signed-off-by: Jon Magrini <[email protected]>
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Removed unused import Removed whitespace per guidelines
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.
sos/report/plugins/openshift_lso.py
Outdated
@@ -0,0 +1,39 @@ | |||
# openshift_lso.py |
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.
Drop this top header line, please
sos/report/plugins/openshift_lso.py
Outdated
self.add_cmd_output([ | ||
'ls -lanR /mnt' | ||
]) |
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.
We have a standardized wrapper for dir listings so that stuff those types of collections are consistent across plugins - add_dir_listing(path)
.
I'm not keen to collect this by default, it's like collecting directory listing of As an example, I already do this on my laptop, it took 13 seconds and the file would have 863198 lines. So from my perspective is a -1 to include it by default in |
@jmagrini please check the pylint and flake8 tests, and resolve those 2, when you resolve the above issues that have been mentioned. So, this plugin will run whenever there is ceph-osd on a RedHat node, even if there is no OpenShift installed it will still give you the listing for |
Further remove whitespace Replace add_cmd_output with add_dir_listing Pylint rated at 10/10 Signed-off-by: Jon Magrini <[email protected]>
I forgot to do page refresh, some changes are needed. WIP on writing them.. |
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.
Please merge the four commits into one.
Ensure the final commit has DCO (Signed-off-by: Jon Magrini <[email protected]>
in commit message) - older 2 commits lack this hence failing DCO test.
Fix the flake8
/pylint
formatting issues:
sos/report/plugins/openshift_lso.py:13:1: E302 expected 2 blank lines, found 1
sos/report/plugins/openshift_lso.py:26:1: W293 blank line contains whitespace
sos/report/plugins/openshift_lso.py:28:1: W293 blank line contains whitespace
sos/report/plugins/openshift_lso.py:34:1: W293 blank line contains whitespace
This plugin is used to collect Openshift LSO details. This expands the
ceph_osd plugin since storage nodes by default are not setup for
ceph access. When gathering data from an OpenShift node when
LSO is in use, we currently do not collect the symlink data location
for LSO, which is always under /mnt. Many times this directory has
pointers/symlinks to paths instead of devices.
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines