HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ceph_common.cpython-310.pyc
o

i��d"�@s8ddlmZmZmZddlmZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin)�gethostnamec@sNeZdZdZdZdZdZe�ZdZ	ddeded	ed
dfZ
dZd
d�ZdS)�Ceph_CommonzCEPH common�ceph_common)�storage�virt�	container�ceph)zceph-(.*-)?(mon|rgw|osd).*)rzceph-mdszceph-common�
libcephfs1zceph-fs-commonzcalamari-server�	librados2zceph-nfs@pacemakerzceph-mds@%szceph-mon@%szceph-mgr@%szceph-radosgw@*z
ceph-osd@*)z/etc/ceph/ceph.confz/var/snap/microceph/*cCs�|�d�}|jj�d�}|s2|�ddd��|s|�d�n|�d�|�gd��|�gd	��n|�d
dg�|�dg�dS)
N�all_logs�	microceph�	ceph_conf�ceph_log)z.*/ceph.confz/var/log/ceph(.*)?/ceph.log.*�/var/log/calamari/*.logz/var/log/calamari)z/var/log/ceph/**/ceph.logz /var/log/ceph/**/ceph.audit.log*rz
/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.logzceph -v)�
get_option�policy�package_manager�pkg_by_name�
add_file_tags�
add_copy_spec�add_forbidden_path�add_cmd_output)�selfr�
microceph_pkg�r�@/usr/lib/python3/dist-packages/sos/report/plugins/ceph_common.py�setup/s&
�
	
�
�zCeph_Common.setupN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�
containersr�
ceph_hostname�packages�services�filesrrrrrr
s �rN)�sos.report.pluginsrrr�socketrrrrrr�<module>s