AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/sos/collector/clusters/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/sos/collector/clusters/__pycache__/openstack.cpython-310.pyc
o

���b�@s,ddlZddlmZdZGdd�de�ZdS)�N)�Clusterz9/var/lib/mistral/overcloud/tripleo-ansible-inventory.yamlc@s,eZdZdZdZgd�Zdd�Zdd�ZdS)	�rhospa�
    This cluster profile is for use with Red Hat OpenStack Platform
    environments.

    Different types of nodes may be enumerated by toggling the various profile
    options such as Controllers and Compute nodes. By default, only Controller
    nodes are enumerated.

    Node enumeration is done by inspecting the ansible inventory file used for
    deployment of the environment. This is canonically located at
    /var/lib/mistral/overcloud/tripleo-ansible-inventory.yaml. Similarly, the
    presence of this file on the primary node is what triggers the automatic
    enablement of this profile.

    Special consideration should be taken for where `sos collect` is being run
    from, in that the hostnames of the enumerated nodes must be resolveable
    from that system - not just from the primary node from which those nodes
    are discovered. If this is not possible, consider enabling the `use-ip`
    cluster option to instead have this profile source the IP addresses of the
    nodes in question.
    zRed Hat OpenStack Platform))�use-ipFz0use IP addresses instead of hostnames to connect)�
controllerTz%collect reports from controller nodes)�computeFz"collect reports from compute nodescCs|jjtdd�S)NT)�	need_root)�primary�file_exists�	INVENTORY)�self�r�B/usr/lib/python3/dist-packages/sos/collector/clusters/openstack.py�
check_enabled0szrhosp.check_enabledc
Cs�g}|�d�r	dnd}zt�|j�t��}Wnty-}z|�d|�td��d}~wwz'dD]!}|�|���rR||d�	�D]}|�
||d||�qBq1W|Styq}z|�d||f�WYd}~|Sd}~ww)	Nr�external_ip�ctlplane_hostnamezError parsing yaml: %sz'Could not parse yaml for node addresses)�
Controller�Compute�hostsz#Error getting %s host addresses: %s)�
get_option�yaml�	safe_loadr�	read_filer
�	Exception�log_info�lower�keys�append�	log_error)r�_nodes�_addr_field�_inv�err�_t�hostrrr
�	get_nodes3s0��������zrhosp.get_nodesN)�__name__�
__module__�__qualname__�__doc__�cluster_name�option_listrr$rrrr
rsr)r�sos.collector.clustersrr
rrrrr
�<module>s


Anon7 - 2022
AnonSec Team