idb .ddlZddlmZGddeZy)N)Clusterc2eZdZdZdZdgZddiZdZdgZdZ y ) 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 withcg|_|jdd}|ddk(s#|jd|d|jStj|dj d}|j d jd Dcgc]}|s| }}|D]K|r)tfd |Ds|jd .|jjd M|jScc}w)Nz0cephadm shell -- ceph orch host ls --format jsonT) need_rootstatusrz'Could not enumerate nodes via cephadm: outputr :c3,K|] }|dv yw)r N).0_lnodes =/usr/lib/python3/dist-packages/sos/collector/clusters/ceph.py z!ceph.get_nodes..<s"JB2h#7"Jsz! filtered from list due to labelshostname) nodesexec_primary_cmd log_errorjsonloads splitlines get_optionsplitany log_debugappend)selfceph_outrlab_labelsrs @r get_nodeszceph.get_nodes,s (( >)  !Q& NN9(8:L9MN ::  8H-88:2>?"&//(";"A"A#"FN3#3NN 0Ds"J'"JJ$'HIJ JJ  d:. /  0 zzOs C<C<N) __name__ __module__ __qualname____doc__ cluster_name sos_plugins sos_optionspackages option_listr(rrrrs8"*LKr"KHMKr2r)rsos.collector.clustersrrrr2rr4s *171r2