+
    Û1j  ã                   ó4   € ^ RI t ^ RIHt Rt ! R R]4      tR# )é    N)ÚClusterz9/var/lib/mistral/overcloud/tripleo-ansible-inventory.yamlc                   ó<   a € ] tR t^t o RtRt. ROtR tR tRt	V t
R# )Ú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.
zRed Hat OpenStack Platformc                óD   € V P                   P                  \        R R7      # )T)Ú	need_root)ÚprimaryÚfile_existsÚ	INVENTORY)Úselfs   &ÚB/usr/lib/python3/dist-packages/sos/collector/clusters/openstack.pyÚcheck_enabledÚrhosp.check_enabled0   s   € Ø�|‰|×'Ñ'¬	¸TÐ'ÓBÐBó    c                óp  € . pV P                  R 4      '       d   RMRp \        P                  ! V P                  P	                  \
        4      4      p R	 Fz  pT P                  TP                  4       4      '       g   K*  Y5,          R,          P                  4        F/  pTP                  Y5,          R,          T,          T,          4       K1  	  K|  	  T#   \         d&   pT P                  RT 24       \        R4      ThRp?ii ; i  \         d#   pT P                  RX RT 24        Rp?T# Rp?ii ; i)
úuse-ipÚexternal_ipÚctlplane_hostnamezError parsing yaml: z'Could not parse yaml for node addressesNÚhostszError getting z host addresses: )Ú
ControllerÚCompute)Ú
get_optionÚyamlÚ	safe_loadr   Ú	read_filer
   Ú	ExceptionÚlog_infoÚlowerÚkeysÚappendÚ	log_error)r   Ú_nodesÚ_addr_fieldÚ_invÚerrÚ_tÚhosts   &      r   Ú	get_nodesÚrhosp.get_nodes3   s  € ØˆØ(,¯©¸×(AÒ(A‘}Ø*ð 	ð	PÜ—>’> $§,¡,×"8Ñ"8¼Ó"CÓDˆDð	HÛ/�à—?‘? 2§8¡8£:×.Ô.Ø $¥¨Õ 1× 6Ñ 6Ö 8˜ØŸ™ d¥h¨wÕ&7¸Õ&=¸kÕ&JÖKó !9ñ 0ð ˆøô ô 	PØ�M‰MÐ0°°Ð6Ô7ÜÐEÓFÈCÐOûð	Pûô ô 	HØ�N‰N˜^¨B¨4Ð/@ÀÀÐF×GÐGØˆûð	Hús6   Ÿ3C Á'D Á?AD ÃDÃ  D Ä DÄD5ÄD0Ä0D5© N))r   Fz0use IP addresses instead of hostnames to connect)Ú
controllerTz%collect reports from controller nodes)ÚcomputeFz"collect reports from compute nodes)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úcluster_nameÚoption_listr   r'   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s(   ø‡ € ñð, 0€Lò€KòC÷ð r   r   )r   Úsos.collector.clustersr   r
   r   r)   r   r   Ú<module>r7      s   ðó å *àG€	ô2ˆGö 2r   