+
    Û1j“  ã                   óJ   € ^ RI t ^ RIt^ RIt^ RIHtHtHt  ! R R]]4      tR# )é    N)ÚPluginÚUbuntuPluginÚ	PluginOptc                   óv   a € ] tR t^t o RtRtRtRtRt]	! RR]
RR7      ]	! RR	]R
R7      .tR tR tR tRtV tR# )ÚSunbeamzSunbeam Openstack ControllerÚsunbeamz/var/snap/openstack/commonúsunbeam-userÚubuntuz&The user used for sunbeam installation)ÚdefaultÚval_typeÚdescújuju-allow-loginFzAllow sos to login to jujuc                óÒ  € V P                  R 4       V P                  V P                   R2V P                   R2V P                   R2V P                   R2V P                   R2R.4       V P                  R4      p \        P
                  ! V4      pT'       Ed   T P                  . R'ORTR7       T P                  RTR7      pTR,          ^ 8X  dE   \        P                  ! TR,          4      pT F!  pT P                  RTR,           2RTR7       K#  	  T P                  RTR7      pTR,          ^ 8X  dY   \        P                  ! TR,          4      pTR,           F.  pT P                  RTR,           2RTR,           R2.RTR7       K0  	  TP                   R2p	T P                  T	 R2T	 R2T	 R2T	 R2T	 R2.4       T P                  R4      '       d   T P                  RT R 24       T P                  R!TR7      p
T P                  R"T^R#7      pR$pT
R,          ^ 8X  g   TR,          ^ 8X  d_    T
R,          P                  4       ^ ,          pTR,          P                  4       ^ ,          pR%T9   g   R%T9   d   T P                  T4       RpT'       g   T P                  R&4       R
# R
# R
#   \         d    T P                  RT R	24        R
# i ; i  \          d     LSi ; i)(zsnap.openstack.*z
/hooks.logz/state/daemon.yamlú#/state/truststore/sunbeam.maas.yamlz/state/database/info.yamlz/state/database/cluster.yamlz'/var/snap/openstack/current/config.yamlr	   zUser "z�" does not exist, will not collect juju information. Use `-k sunbeam.sunbeam-user` option to define the user to use to collect data for sunbeamNT)Úsnap_cmdÚrunasz#sunbeam manifest list --format yaml©r   ÚstatusÚoutputzsunbeam manifest show Ú
manifestidz%sunbeam deployment list --format yamlÚdeploymentszsunbeam deployment show Únamez --format yamlz/snap/openstack/commonz/*.logz/etc/**/*.logz/etc/**/terraform.tfvars.jsonz/logs/*.logz/reports/*.yamlr   zsu - z -c "sunbeam utils juju-login"zjuju whoamizjuju status)r   ÚtimeoutFÚ
Controllerzšjuju is not logged in, will not collect juju information. Use `-k sunbeam.juju-allow-login=True` to login or use `juju login` as the sunbeam user to login)zsunbeam cluster listz"sunbeam cluster list --format yamlzsunbeam manifest listzsunbeam deployment list)Úadd_service_statusÚadd_copy_specÚ
common_dirÚ
get_optionÚpwdÚgetpwnamÚKeyErrorÚ	_log_warnÚadd_cmd_outputÚcollect_cmd_outputÚyamlÚ	safe_loadÚpw_dirÚexec_cmdÚ
splitlinesÚ_get_juju_cmd_detailsÚ
IndexError)ÚselfÚsunbeam_userÚuser_pwdÚmanifest_rawÚ	manifestsÚmanifestÚdeployment_rawr   Ú
deploymentÚsb_snap_homedirÚjuju_whoamiÚjuju_statusÚ	logged_inÚj_whoamiÚj_statuss   &              Ú</usr/lib/python3/dist-packages/sos/report/plugins/sunbeam.pyÚsetupÚSunbeam.setup"   s`  € à×ÑÐ 2Ô3à×ÑØ�‰Ð˜zÐ*Ø�‰ÐÐ1Ð2Ø�‰ÐÐBÐCØ�‰ÐÐ8Ð9Ø�‰ÐÐ;Ð<Ø5ð
ô 	ð —‘ ~Ó6ˆð	Ü—|’| LÓ1ˆH÷ ˆ8Ø×Ñò !ð
  Lð  ô 2ð  ×2Ñ2Ø5Ø"ð 3ó ˆLð
 ˜HÕ%¨Ô*Ü ŸNšN¨<¸Õ+AÓB�	Û )�HØ×'Ñ'Ø0°¸,Õ1GÐ0HÐIØ!%¨\ð (ö ñ !*ð "×4Ñ4Ø7Ø"ð 5ó ˆNð
 ˜hÕ'¨1Ô,Ü"Ÿnšn¨^¸HÕ-EÓF�Ø"-¨m×"<Ð"<�JØ×'Ñ'Ø2°:¸fÕ3EÐ2FÐGØ2°:¸fÕ3EÐ2Fð G(ð (ð)ð !%¨Lð	 (ö :ñ #=ð "*§¡Ð 1Ð1GÐHˆOà×ÑØ"Ð# 6Ð*Ø"Ð# =Ð1Ø"Ð#Ð#@ÐAØ"Ð# ;Ð/Ø"Ð# ?Ð3ð ô ð �‰Ð1×2Ò2Ø—‘Ø˜L˜>Ð)GÐHôJð Ÿ-™-¨¸\˜-ÓJˆKØŸ-™-¨¸\Ø02ð (ó 4ˆKàˆIØ˜8Õ$¨Ô)¨[¸Õ-BÀaÔ-Gð
Ø*¨8Õ4×?Ñ?ÓAÀ!ÕD�HØ*¨8Õ4×?Ñ?ÓAÀ!ÕD�Hà# xÔ/°<À8Ô3KØ×2Ñ2°<Ô@Ø$(˜	÷ Ø—‘ðöñ ñK øô ô 	à�N‰NØ˜˜ð '>ð >ô?ò ð	ûôP "ô ñ ðús%   Á<J1 È5AK Ê1 KËKËK&Ë%K&c           
     óD  € V P                  R VRR7       V P                  RVR7      pVR,          ^ 8X  dë   \        P                  ! VR,          4      pVR,          P	                  4        F°  pV P                  RV 2R	V 2R
V 2R
V R2.VRR7       V P                  RV R2VR7      pVR,          ^ 8X  g   KO  \        P                  ! VR,          4      pVR,           F7  pV RVR,           2pV P                  RV 2RV R2RV 2RV R2.VRR7       K9  	  K²  	  R# R# )újuju controllersT)r   r   zjuju controllers --format jsonr   r   r   Úcontrollerszjuju models -c zjuju model-defaults -c zjuju controller-config -c z --format jsonÚmodelsÚ:r   zjuju status -m zjuju model-config -m N)r#   r$   ÚjsonÚloadsÚkeys)	r,   ÚuserÚjuju_controllersÚjuju_ctrl_jsonÚ
controllerÚjuju_modelsÚjuju_status_jsonÚmodelÚ
model_names	   &&       r:   r*   ÚSunbeam._get_juju_cmd_details†   sw  € Ø×ÑÐ.°dÀTÐÔJØ×2Ñ2Ø,°Dð 3ó :Ðð ˜HÕ%¨Ô*Ü!ŸZšZÐ(8¸Õ(BÓCˆNØ,¨]Õ;×@Ñ@ÖB�
à×#Ñ#Ø% j \Ð2Ø-¨j¨\Ð:Ø0°°Ð=Ø0°°¸NÐKð	%ð
 ¨ð $ô .ð #×5Ñ5Ø% j \°Ð@Øð 6ó  �ð ˜xÕ(¨AÖ-Ü'+§z¢z°+¸hÕ2GÓ'HÐ$à!1°(×!;Ð!;˜à(2 |°1°U¸6µ]°OÐ%D˜
à×+Ñ+Ø-¨j¨\Ð:Ø-¨j¨\¸ÐHØ3°J°<Ð@Ø3°J°<¸~ÐNð	-ð
 "&°ð ,ö 6ó	 "<ó! Cñ +ó    c                ó†   € V P                  V P                   R 24       V P                  R4       V P                  R4       R# )r   r>   zjuju controller-configN)Údo_file_private_subr   Údo_cmd_private_sub)r,   s   &r:   ÚpostprocÚSunbeam.postproc¨   s@   € à× Ñ Ø�‰ÐÐBÐCô	
ð 	×ÑÐ 2Ô3Ø×ÑÐ 8Ö9rN   © N)Úcloud)Ú	openstack)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú
short_descÚplugin_nameÚprofilesÚpackagesr   r   ÚstrÚboolÚoption_listr;   r*   rR   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r:   r   r      sb   ø‡ € à/€Jà€KØ€HØ€Hà-€Jñ 	�.¨(¸SØ?ô	AáÐ$¨e¸dØ3ô	5ð€KòbòH 6÷D:ð :rN   r   )rB   r   r%   Úsos.report.pluginsr   r   r   r   rT   rN   r:   Ú<module>rf      s&   ðó Û 
Û ß >Ñ >ô^:ˆf�lö ^:rN   