/usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__
NameSizeModeActions
ceph.cpython-310.pyc23710644editdlrm
jbon.cpython-310.pyc10400644editdlrm
juju.cpython-310.pyc72680644editdlrm
kubernetes.cpython-310.pyc17110644editdlrm
ocp.cpython-310.pyc119650644editdlrm
openstack.cpython-310.pyc26140644editdlrm
ovirt.cpython-310.pyc77720644editdlrm
pacemaker.cpython-310.pyc33030644editdlrm
saltstack.cpython-310.pyc27210644editdlrm
satellite.cpython-310.pyc17420644editdlrm
__init__.cpython-310.pyc153440644editdlrm
Edit: /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/openstack.cpython-310.pyc (2614B)
o G%@i @s,ddlZddlmZdZGdddeZdS)N)Clusterz9/var/lib/mistral/overcloud/tripleo-ansible-inventory.yamlc@s,eZdZdZdZgdZddZddZdS) 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|jjtddS)NT) need_root)primary file_exists INVENTORY)selfr B/usr/lib/python3/dist-packages/sos/collector/clusters/openstack.py check_enabled0szrhosp.check_enabledc Csg}|dr dnd}z t|jt}Wnty/}z |d|td|d}~wwz'dD]!}||rT||d D]}| ||d||qDq3W|Styu}z| d|d |WYd}~|Sd}~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_nodes3s0  zrhosp.get_nodesN)__name__ __module__ __qualname____doc__ cluster_name option_listrr$r r r r rs  r)rsos.collector.clustersrr rr r r r s