%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/collector/clusters/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/collector/clusters/__pycache__/ceph.cpython-312.pyc |
� i��db � �. � d dl Z d dlmZ G d� de� Zy)� N)�Clusterc �2 � e Zd ZdZdZdgZddiZdZdgZd� Z 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-size�2 )�cephadm)�labels� z3Colon delimited list of labels to select nodes withc � �� g | _ | j dd�� }|d dk( s#| j d|d � �� | j S t j |d j � d � }| j d � j d � D �cg c] }|s�|�� }}|D ]K �|r)t �fd�|D � � s| j �� d�� �.| j j �d � �M | j S c c}w )Nz0cephadm shell -- ceph orch host ls --format jsonT)� need_root�statusr z'Could not enumerate nodes via cephadm: �output���r �:c 3 �, �K � | ] }|�d v �� � y�w)r N� )�.0�_l�nodes ��=/usr/lib/python3/dist-packages/sos/collector/clusters/ceph.py� <genexpr>z!ceph.get_nodes.<locals>.<genexpr><