id 2ddlZddlmZdZGddeZy)N)Clusterz9/var/lib/mistral/overcloud/tripleo-ansible-inventory.yamlc(eZdZdZdZgdZdZdZy)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 nodescD|jjtdS)NT) need_root)primary file_exists INVENTORY)selfs B/usr/lib/python3/dist-packages/sos/collector/clusters/openstack.py check_enabledzrhosp.check_enabled0s||'' T'BBcg}|jdrdnd} tj|jj t } dD]Z}|j|js#||djD]}|j||d||!\ |S#t $r$}|jd|zt dd}~wwxYw#t $r"}|jdd |Yd}~|Sd}~wwxYw) Nr external_ipctlplane_hostnamezError parsing yaml: %sz'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_thosts r get_nodeszrhosp.get_nodes3s(,(A}*  G>>$,,"8"8"CDD N/ L??288:. $R 1 6 6 8L d2hw&7&=k&JKL L  G MM2S8 9EF F G N NNBL M M  Ns52B. $C1:C. C7CC D 'DD N)__name__ __module__ __qualname____doc__ cluster_name option_listrr(rrrrs ,0LK Crr)rsos.collector.clustersrr rr/rrr1s * G 2G2r