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__/corosync.cpython-310.pyc
o

([Qh�	�@sZddlZddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�CorosynczCorosync cluster engine�corosync)�cluster)rc
Cs�|�gd��|�gd��|jddd�|�d�d}|�|�s#dSd}z8|�d�}t|d	d
d��!}|D]}t�||�rI|�t�||��	d��q5Wd�WdS1sVwYWdSt
y{}z|�d
|�d|���WYd}~dSd}~ww)N)z
/etc/corosyncz/var/lib/corosync/fdataz/var/log/cluster/corosync.log*)zcorosync-quorumtool -lzcorosync-quorumtool -szcorosync-cpgtoolzcorosync-cfgtool -szcorosync-blackboxzcorosync-objctl -azcorosync-cmapctl -m statszcorosync-cmapctl�corosync_cmapctl)�tagszkillall -USR2 corosyncz/etc/corosync/corosync.confz ^\s*(logging.)?logfile:\s*(\S+)$�rzUTF-8)�encoding�zcould not read from z: )�
add_copy_spec�add_cmd_output�exec_cmd�path_exists�	path_join�open�re�match�search�group�IOError�	_log_warn)�self�
corosync_conf�pattern�cconf�file�line�err�r!�=/usr/lib/python3/dist-packages/sos/report/plugins/corosync.py�setups.	�


��&�$��zCorosync.setupcCs|�ddd�dS)Nzcorosync-objctlz(.*fence.*\.passwd=)(.*)z\1******)�do_cmd_output_sub)rr!r!r"�postproc;s
�zCorosync.postprocN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr#r%r!r!r!r"r
s&rc@seZdZdZdS)�RedHatCorosync�0 Parent class Corosync's setup() will be called N)r&r'r(�__doc__r!r!r!r"r-Csr-c@seZdZdZdZdS)�DebianCorosyncr.)z/usr/sbin/corosyncN)r&r'r(r/�filesr!r!r!r"r0Gsr0)	r�sos.report.pluginsrrrrrr-r0r!r!r!r"�<module>s
6