/usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__
Edit: /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/openstack.cpython-310.pyc (2614B)
o
G%@i @ s, d dl Z d dlmZ dZG dd deZdS ) N)Clusterz9/var/lib/mistral/overcloud/tripleo-ansible-inventory.yamlc @ s, e Zd ZdZdZg dZdd 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 nodesc C s | j jtddS )NT) need_root)primaryfile_exists INVENTORY)self r B/usr/lib/python3/dist-packages/sos/collector/clusters/openstack.py
check_enabled0 s zrhosp.check_enabledc
C s g }| dr dnd}zt| jt}W n ty/ } z
| d| td|d }~ww z'dD ]!}| | rT|| d D ]}|
|| d | | qDq3W |S tyu } z| d| d | W Y d }~|S d }~ww )
Nr external_ipctlplane_hostnamezError parsing yaml: z'Could not parse yaml for node addresses)
ControllerComputehostszError getting z host addresses: )
get_optionyaml safe_loadr read_filer
Exceptionlog_infolowerkeysappend log_error)r _nodes_addr_field_inverr_thostr r r
get_nodes3 s0
zrhosp.get_nodesN)__name__
__module____qualname____doc__cluster_nameoption_listr r$ r r r r
r s r )r sos.collector.clustersr r
r r r r r
s