/usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__
NameSizeModeActions
ceph.cpython-310.pyc23710644editdlrm
jbon.cpython-310.pyc10400644editdlrm
juju.cpython-310.pyc72680644editdlrm
kubernetes.cpython-310.pyc17110644editdlrm
ocp.cpython-310.pyc119650644editdlrm
openstack.cpython-310.pyc26140644editdlrm
ovirt.cpython-310.pyc77720644editdlrm
pacemaker.cpython-310.pyc33030644editdlrm
saltstack.cpython-310.pyc27210644editdlrm
satellite.cpython-310.pyc17420644editdlrm
__init__.cpython-310.pyc153440644editdlrm
Edit: /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/ceph.cpython-310.pyc (2371B)
o G%@ib @s(ddlZddlmZGdddeZdS)N)Clusterc@s4eZdZdZdZdgZddiZdZdgZdd Z d S) cepha! This cluster profile is for Ceph Storage clusters, and is primarily built around Red Hat Ceph Storage 5. Nodes are enumerated via `cephadm`; if your Ceph deployment uses cephadm but is not RHCS 5, this profile may work as intended, but it is not currently guaranteed to do so. If you are using such an environment and this profile does not work for you, please file a bug report detailing what is failing. By default, all nodes in the cluster will be returned for collection. This may not be desirable, so users are encouraged to use the `labels` option to specify a colon-delimited set of ceph node labels to restrict the list of nodes to. For example, using `-c ceph.labels=osd:mgr` will return only nodes labeled with *either* `osd` or `mgr`. zCeph Storage Cluster ceph_commonzlog-size2)cephadm)labelsz3Colon delimited list of labels to select nodes withcsg|_|jddd}|ddks|d|d|jSt|dd}d d |d d D}|D] |rOtfd d|DsO| dq7|j dq7|jS)Nz0cephadm shell -- ceph orch host ls --format jsonT) need_rootstatusrz'Could not enumerate nodes via cephadm: outputcSsg|]}|r|qSr ).0labr r =/usr/lib/python3/dist-packages/sos/collector/clusters/ceph.py :sz"ceph.get_nodes..r:c3s|] }|dvVqdS)rNr )r_lnoder r <sz!ceph.get_nodes..z! filtered from list due to labelshostname) nodesexec_primary_cmd log_errorjsonloads splitlines get_optionsplitany log_debugappend)selfceph_outr_labelsr rr get_nodes,s$  zceph.get_nodesN) __name__ __module__ __qualname____doc__ cluster_name sos_plugins sos_optionspackages option_listr&r r r rrs r)rsos.collector.clustersrrr r r rs