Current File : //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ceph_common.cpython-312.pyc
�

-�_g���>�ddlmZddlmZmZmZGd�deee�Zy)�)�gethostname)�Plugin�RedHatPlugin�UbuntuPluginc�Z�eZdZdZdZdZdZe�ZdZ	dde��de��d	e��d
dfZ
dZd
�Zy)�
CephCommonzCEPH common�ceph_common)�storage�virt�	container�ceph)zceph-(.*-)?(mon|rgw|osd).*)r
zceph-mdszceph-common�
libcephfs1zceph-fs-commonzcalamari-serverzceph-nfs@pacemakerz	ceph-mds@z	ceph-mon@z	ceph-mgr@zceph-radosgw@*z
ceph-osd@*)z/etc/ceph/ceph.confz/var/snap/microceph/*c�2�|jd�}|jjjd�}|sd|j	ddd��|s|jddg�n|jdd	g�|jgd
��|j
gd��nd|s|jdd
g�n|jddg�|jdd��gd�}|j|D�cgc]}d|����	c}d��|jdg�ycc}w)N�all_logs�	microceph�	ceph_conf�ceph_log)z.*/ceph.confz/var/log/ceph(.*)?/ceph.log.*z/var/log/calamari/*.logz/var/log/ceph/**/ceph.logz/var/log/calamariz/var/log/ceph/**/ceph.log*)z /var/log/ceph/**/ceph.audit.log*z
/etc/ceph/z/etc/calamari/z/var/lib/ceph/tmp/)z/etc/ceph/*keyring*z/var/lib/ceph/*keyring*z/var/lib/ceph/*/*keyring*z/var/lib/ceph/*/*/*keyring*z/var/lib/ceph/osdz/var/lib/ceph/monz/var/lib/ceph/tmp/*mnt*z/etc/ceph/*bindpass*z(/var/snap/microceph/common/logs/ceph.logz./var/snap/microceph/common/logs/ceph.audit.logz)/var/snap/microceph/common/logs/ceph.log*z//var/snap/microceph/common/logs/ceph.audit.log*zsnap info microceph)�subdir)zclient config listzcluster config listzcluster listzUcluster sql 'select * from config where key NOT LIKE                     "%keyring%"'z	disk listz
log get-level�statusz
microceph zceph -v)�
get_option�policy�package_manager�pkg_by_name�
add_file_tags�
add_copy_spec�add_forbidden_path�add_cmd_output)�selfr�
microceph_pkg�cmds�cmds     �@/usr/lib/python3/dist-packages/sos/report/plugins/ceph_common.py�setupzCephCommon.setup.sI���?�?�:�.�����3�3�?�?��L�
����� +�1;� �
�
��"�"�-�/�$��
�"�"�'�0�$��

��� �
�
�#�#�%�
���"�"�>�D�$��
�"�"�?�E�$��

��� 5�k��J�
�D�
���t� D��:�c�U�!3� D�'2�
 �
4�	
����
�	��!Es�,DN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�
containersr�
ceph_hostname�packages�services�filesr#��r"rr
sa���J��K�7�H�0�J��M�M��H�	�
�M�?�#�
�M�?�#�
�M�?�#���
�H�
'�E�Gr0rN)�socketr�sos.report.pluginsrrrrr/r0r"�<module>r3s"���A�A�h���|�hr0