HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/gluster.cpython-310.pyc
o

([QhX�@s:ddlZddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPlugin�	PluginOptc@sDeZdZdZdZdZdZdZdZe	ddd	d
�gZ
dd�Zd
d�ZdS)�GlusterzGlusterFS storage�gluster)�storage�virtz/run/gluster)�	glusterfszglusterfs-core)z
/etc/glusterdz/var/lib/glusterd�dumpFzenable glusterdump support)�default�descc
Cs�|�d�rI|�|j�s
dSz t�|jd�}|�t�|jd��|D]}t�|�q#WdStyH}z|�d|���WYd}~dSd}~wwdS)Nr
z/*.dump.[0-9]*z/glusterd_state_[0-9]*_[0-9]*z"Could not remove statedump files: )	�
get_option�path_exists�
statedump_dir�glob�extend�os�remove�OSError�
_log_error)�self�remove_files�name�err�r�</usr/lib/python3/dist-packages/sos/report/plugins/gluster.py�postprocs 
�����zGluster.postproccCs�|�d�|�d�|jddd�|�d�|jddd�|�gd	�t�d
��|�d�s6|�gd��n|�d
�|�d�rr|�|j�rR|�d�rQ|�|j�n|j�	d|j�|�
d�}|ddkrr|d��d}|�|�|jddd�}|ddkr�|d�
�D]D}|�d�s�q�|dd�}|�d|�d�d|�d�d|�d�d|�d �d!|�d"�d#|��d$|�d%�d&|�d�d'|��d(|��g
�q�dSdS))Nz,/var/lib/glusterd/geo-replication/secret.pemz6/var/lib/glusterd/glusterfind/glusterfind_*_secret.pemzgluster peer status�gluster_peer_status)�tagszgluster pool listzgluster volume status�gluster_v_status)z/etc/redhat-storage-releasez/etc/swift/z/etc/glusterd.rpmsavez/etc/glusterfsz/var/lib/glusterd/z(/run/gluster/shared_storage/nfs-ganesha/z$/var/lib/glusterd/glusterfind/.keys/z/run/gluster/*tier-dht/*�all_logs)z/var/log/glusterfs/*logz/var/log/glusterfs/*/*logz)/var/log/glusterfs/geo-replication/*/*logz/var/log/glusterfsr
zgluster(fs|fsd|d)z4Unable to generate statedumps, no such directory: %szgluster get-state�statusr�output���zgluster volume info�gluster_v_infozVolume Name:�zgluster volume get z allzgluster volume geo-replication z statuszgluster volume heal z infoz info split-brainzgluster volume status z clientszgluster snapshot list zgluster volume quota z listzgluster volume rebalance zgluster snapshot info zgluster snapshot status )�add_forbidden_path�add_cmd_output�
add_copy_specrr
rr�signal_process_usr1�soslog�warning�exec_cmd�split�collect_cmd_output�
splitlines�
startswith)r�state�
state_file�
volume_cmd�line�volnamerrr�setup*sb
�
�

�



��

�







��z
Gluster.setupN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�packages�filesr�option_listrr6rrrrrs�
r)rr�sos.report.pluginsrrrrrrrr�<module>s