Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions sos/report/plugins/openshift_lso.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright (C) 2007-2025 Red Hat, Inc., Jon Magrini <jmagrini@redhat.com>

# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# version 2 of the GNU General Public License.
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import (Plugin, RedHatPlugin)

class OpenshiftLSO(Plugin, RedHatPlugin):
"""
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 (basically two layers lower,
but the names can change). This is useful in determining if LSO
is setup correctly when also having a must-gather output.
Many times the LSO directory has pointers to paths instead of devices.
This can cause issues with lost access to the OCP backend storage
used by OpenShift.
"""

short_desc = 'Openshift LSO'

plugin_name = "openshift_lso"
profiles = ('storage', 'openshift', 'ceph')
# Each node runs the ceph-osd daemon,
# which interacts with logical disks attached to the node.
files = '/run/ceph/**/ceph-osd*'

def setup(self):
self.add_dir_listing('/mnt', tags=['ls_mnt'], recursive=True)