File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/corosync.cpython-39.pyc
a
^��cb � @ sZ d dl mZmZmZmZ d dlZG dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginNc @ s, e Zd ZdZdZdZdZdd� Zdd� Zd S )
�CorosynczCorosync cluster engine�corosync)Zcluster)r c
C s� | � g d�� | �g d�� | jddd� | �d� d}| �|�sFd S d}zbt| �d�d ��>}|D ](}t�||�rb| � t�||�� d
�� qbW d � n1 s�0 Y W n6 t
y� } z| �d||f � W Y d }~n
d }~0 0 d S )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-cmapctlZcorosync_cmapctl)�tagszkillall -USR2 corosyncz/etc/corosync/corosync.confz ^\s*(logging.)?logfile:\s*(\S+)$�r� zcould not read from %s: %s)Z
add_copy_specZadd_cmd_outputZexec_cmdZpath_exists�openZ path_join�re�match�search�group�IOErrorZ _log_warn)�selfZ
corosync_conf�pattern�f�line�e� r �?/usr/lib/python3.9/site-packages/sos/report/plugins/corosync.py�setup s"