+
    G%@i                     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
Controllerzjuju 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1H 8 !
 L   2  225" 3 L
 H%* NN<+AB	 )H''0,1G0HI!%\ (  !* "447" 5 N
 h'1,"nn^H-EF"-m"<"<J''2:f3E2FG2:f3E2F G( () !%L	 ( : #= "* 11GHO"#6*"#=1"##@A"#;/"#?3   122L>)GHJ --\-JK--\02 ( 4KI8$)[-Ba-G
*84??A!DH*84??A!DH#x/<83K22<@$(	  K   	NN '> >? 	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   .dTJ22,D 3 : H%*!ZZ(8(BCN,];@@B
##%j\2-j\:0=0NK	%
  $ . #55%j\@ 6   x(A-'+zz+h2G'H$!1(!;!;(2|1U6]O%D
++-j\:-j\H3J<@3J<~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$ed3	5KbH 6D: :rN   r   )rB   r   r%   sos.report.pluginsr   r   r   r   rT   rN   r:   <module>rf      s&     
  > >^:fl ^:rN   