| Server IP : 65.1.209.187 / Your IP : 216.73.216.144 Web Server : nginx/1.24.0 System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64 User : ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
�
([QhC
� �l � d dl Z d dlmZmZmZmZ G d� de� Z G d� dee� Z G d� deee� Zy) � N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc �@ � � e Zd ZdZdZdZdZg d�ZdZd� Z � fd�Z
� xZS ) �OVNHostzOVN Controller�ovn_host)�network�virt�openstack_edpmzovn-controller.pid)z/var/lib/openvswitch/ovnz/usr/local/var/run/openvswitchz/run/openvswitch� c �� � t j j d� r8| j j t j j d� � | j d� r| j
d� n| j
d� | j
| j D �cg c] }| j || j � �� c}� | j
d� | j | j � d�| j � d�| j � d�g� | j d �
� dD ]) }| j |� s�| j d|� d
�� �+ y c c}w )N�
OVS_RUNDIR�all_logs�
/var/log/ovn/�/var/log/ovn/*.logz/etc/sysconfig/ovn-controllerz)ovs-ofctl -O OpenFlow13 dump-flows br-intzovs-vsctl list-brzovs-vsctl list Open_vSwitchzovn-controller)�units)z/etc/ovn/ovn-chassis.crtz/etc/ovn/cert_hostzopenssl x509 -in z -noout -dates)
�os�environ�get� pid_paths�append�
get_option�
add_copy_spec� path_join�pidfile�add_cmd_output�ovs_cmd_pre�add_journal�path_exists)�self�pp�paths �=/usr/lib/python3/dist-packages/sos/report/plugins/ovn_host.py�setupz
OVNHost.setup s> � �
�:�:�>�>�,�'��N�N�!�!�"�*�*�.�.��">�?��?�?�:�&�����/����3�4����%)�^�^�5�!� !�N�N�2�t�|�|�<� 5� 6�
���:�;������� � I�J���� � 1�2���� � ;�<�
� �
���/��0� G� �D�����%��#�#�&�t�f�N�;�� ��5s �%#Ec �b �� � t � fd�� j D � � xs t �� �
� S )Nc 3 �t �K � | ]/ }�j �j |�j � � �� �1 y �w)N)�path_isfiler r )�.0�pid_pathr! s �r$ � <genexpr>z(OVNHost.check_enabled.<locals>.<genexpr>: s3 �� �� � 0�� �$�$�T�^�^�H�d�l�l�%K�L� 0�s �58)�anyr �super�
check_enabled�r! � __class__s `�r$ r. zOVNHost.check_enabled9 s3 �� �� 0� $���0� 0� K�38�7�3H�3J� L� )�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr r r r% r. �
__classcell__�r0 s @r$ r r s6 �� �!�J��K�4�H�"�G��I�
�K��:L� Lr1 r c �&