https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/ceph_common.cpython-310.pyc
o

C��g��@s8ddlmZddlmZmZmZGdd�deee�ZdS)�)�gethostname)�Plugin�RedHatPlugin�UbuntuPluginc@s\eZdZdZdZdZdZe�ZdZ	dde��de��d	e��d
dfZ
dZd
d�Zdd�Z
dS)�
CephCommonzCEPH common�ceph_common)�storage�virt�	container�ceph)zceph-(.*-)?(mon|rgw|osd).*)rzceph-mdszceph-common�
libcephfs1zceph-fs-commonzcalamari-serverzceph-nfs@pacemakerz	ceph-mds@z	ceph-mon@z	ceph-mgr@zceph-radosgw@*z
ceph-osd@*)�/etc/ceph/ceph.confz/var/snap/microceph/*cCs�|�d�}|jj�d�}|s6|�ddd��|s |�ddg�n|�dd	g�|�gd
��|�gd��n(|s@|�dd
g�n|�ddg�|jddd�gd�}|jdd�|D�dd�|�dg�dS)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�statuscSsg|]}d|���qS)z
microceph �)�.0�cmdrr�@/usr/lib/python3/dist-packages/sos/report/plugins/ceph_common.py�
<listcomp>psz$CephCommon.setup.<locals>.<listcomp>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�cmdsrrr�setup.sF
���
���
�zCephCommon.setupcCs*dg}dd�|��d�}|�d|d�dS)Nzrgw keystone admin passwordz(^(�|z
)\s*=\s*)(.*)r
z\1*********)�join�do_path_regex_sub)r!�protect_keys�regexrrr�postprocws�zCephCommon.postprocN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�
containersr�
ceph_hostname�packages�services�filesr$r*rrrrr
s"
�IrN)�socketr�sos.report.pluginsrrrrrrrr�<module>s

https://t.me/RX1948 - 2025