관리-도구
편집 파일: pacemaker.cpython-39.opt-1.pyc
a -�_g> � @ s@ d dl Z d dlmZ d dlmZ d dlmZ G dd� de�ZdS )� N)�ElementTree)�Cluster)�sos_parse_versionc @ sF e Zd ZdZd gZdZdZg d�Zdd� Zdd� Z d d � Z dd� Zd S )� pacemakerz+Pacemaker High Availability Cluster Manager)r T))�onlineTzCollect nodes listed as online)�offlineTzCollect nodes listed as offline)� only-corosyncFz)Only use corosync.conf to enumerate nodesc C s� g | _ z^| �d�sTz| �� W n4 tyR } z| �d|� �� W Y d }~n d }~0 0 | j sb| �� W n4 ty� } z| �d|� �� W Y d }~n d }~0 0 dd� | j D �}|r�| �dd�|�� d�� | j S ) Nr zHFalling back to sourcing corosync.conf. Could not parse crm_mon output: z(Could not determine nodes from cluster: c S s g | ]}d |vr|�qS )�.� )�.0�nr r �D/usr/lib/python3.9/site-packages/sos/collector/clusters/pacemaker.py� <listcomp>/ � z'pacemaker.get_nodes.<locals>.<listcomp>zWARNING: Node addresses '�,z�' may not resolve locally if you are not running on a node in the cluster. Try using option '-c pacemaker.only-corosync' if these connections fail.)�nodes� get_option�get_nodes_from_crm� Exception�log_warn�get_nodes_from_corosyncZ log_error�join)�self�errZ_shortsr r r � get_nodes s&