+
    Û1jb	  ã                   ó0   € ^ RI t ^ RIHt  ! R R]4      tR# )é    N)ÚClusterc                   óF   a € ] tR t^t o RtRtR.tR^2/tRtR	.t	R t
RtV tR# )
Ú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`.
zCeph Storage ClusterÚceph_commonzlog-sizec                óª  a€ . V n         V P                  R RR7      pVR,          ^ 8X  g(   V P                  RVR,           24       V P                   # \        P                  ! VR,          P                  4       R,          4      pV P                  R4      P                  R4       Uu. uF  q3'       g   K  VNK  	  ppV Fƒ  oV'       dW   \        ;QJ d    V3R lV 4       F  '       g   K   RM	  R	M! V3R lV 4       4      '       g   V P                  S R
24       Ka  V P                   P                  SR,          4       K…  	  V P                   # u upi )z0cephadm shell -- ceph orch host ls --format jsonT)Ú	need_rootÚstatusz'Could not enumerate nodes via cephadm: ÚoutputÚlabelsÚ:c              3   ó:   <"  € T F  qSR ,          9   x € K  	  R# 5i)r   N© )Ú.0Ú_lÚnodes   & €Ú=/usr/lib/python3/dist-packages/sos/collector/clusters/ceph.pyÚ	<genexpr>Ú!ceph.get_nodes.<locals>.<genexpr><   s   øé € Ð"JÁ'¸B¨¨h­Ö#7Ã'ùs   ƒFz! filtered from list due to labelsÚhostnameéÿÿÿÿ)ÚnodesÚexec_primary_cmdÚ	log_errorÚjsonÚloadsÚ
splitlinesÚ
get_optionÚsplitÚanyÚ	log_debugÚappend)ÚselfÚceph_outr   ÚlabÚ_labelsr   s   &    @r   Ú	get_nodesÚceph.get_nodes,   s  ø€ ØˆŒ
Ø×(Ñ(Ø>Øð )ó 
ˆð
 ˜Õ! QÔ&Ø�N‰NØ9¸(À8Õ:LÐ9MÐNôð —:‘:Ðä—
’
˜8 HÕ-×8Ñ8Ó:¸2Õ>Ó?ˆØ"&§/¡/°(Ó";×"AÑ"AÀ#Ô"FÓNÑ"F˜3Ë#—3�3Ñ"FˆÐNÛˆDßŸs›sÔ"JÁ'Ó"JŸsŸsšsÔ"JÁ'Ó"J×JÒJØ—‘ $ Ð'HÐIÔJÙØ�J‰J×Ñ˜d :Õ.Ö/ñ	 ð �z‰zÐùò Os   Â%	EÂ3E)r   N)Úcephadm)r   Ú z3Colon delimited list of labels to select nodes with)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úcluster_nameÚsos_pluginsÚsos_optionsÚpackagesÚoption_listr&   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s@   ø‡ € ñð" *€Làð€Kð ˜rÐ"€KØ€HàMð€K÷ð ó    r   )r   Úsos.collector.clustersr   r   r   r7   r   Ú<module>r9      s   ðó å *ô1ˆ7ö 1r7   