+
    Û1jì@ ã                   ó€  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RI	H
t
 ^ RI	Ht ^ RIHt ^ RIt^ RIHtHtHtHtHtHtHtHt ^ RIHt ^ RIHt ^ R	IHt ^ RIt^ R
I H!t!H"t"H#t#H$t$H%t%H&t&H't'H(t(H)t)H*t* ^ RI+H,t, ^ RI-H.t. ]P^                  ]P`                  3t1RR lt2R t3. ROt40 Rmt5 ! R R]4      t6R# )é    N)Údatetime)ÚThreadPoolExecutor)ÚTimeoutError)Úrmtree)ÚImporterHelperÚSoSTimeoutErrorÚboldÚsos_get_command_outputÚTIMEOUT_DEFAULTÚlistdirÚis_executableÚscrub_url_credential)Ú_sos)Ú__version__)ÚSoSComponent)
ÚReportÚSectionÚCommandÚ
CopiedFileÚCreatedFileÚAlertÚNoteÚPlainTextReportÚ
JSONReportÚ
HTMLReport)Ú
SoSCleaner)Ú	SoSUploadc                 óf  € . pT pV'       d   \        V 4      R ,          pMRpV FU  p\        V4      \        V4      ,           \        V4      ,           ^H8”  d   VP                  V4       TpWW,           V,           pKW  	  V\        V4      ) R V8X  d   VR\        V4      )  pVP                  V4       V# )Ú Ú N)ÚlenÚappend)Ú
first_lineÚitemsÚindentÚsepÚlinesÚlineÚnewlineÚitems   &&&&    Ú5/usr/lib/python3/dist-packages/sos/report/__init__.pyÚ_format_listr,   .   s¡   € Ø€EØ€DßÜ�j“/ CÕ'‰àˆÛˆÜˆt‹9”s˜4“yÕ ¤3 s£8Õ+¨bÔ0Ø�L‰L˜ÔØˆDØ�{˜SÕ Šñ	 ð
 ŒS�‹XˆIˆJÐ˜3ÔØ�J”c˜#“h�YÐˆØ	‡L�L�ÔØ€Ló    c                ó4   € \         P                  ! V R R4      # )zÕThis function will format --since arg to append 0s if enduser
didn't. It's used in the _get_parser.
This will also be a good place to add human readable and relative
date parsing (like '2 days ago') in the future z<014sz%Y%m%d%H%M%S)r   Ústrptime)Údates   &r+   Ú_format_sincer1   @   s   € ô
 ×Ò  U˜|¨nÓ=Ð=r-   c                   óR  a a€ ] tR t^Rt oRtRtRt/ RRbRRbRRbRR	bR
RbRRbRRbRRbRR	bR. bR. bR. bRRbRRbRRbR. bR^db/ R. bRRbR. bRR	bRRbRRbRRbR ^bR!RbR"R#bR$. bR%. bR&. bR'RbR(RbR)RbR*RbC/ R+RbR,R	bR-. bR.RbR/]bR0]bR1. bR2RbR3RbR4RbR5. bR6RbR7RbR8RbR9RbR:RbR;RbCR<RR=RR>RR?RR@RRARRBRRCRRDRRER	RFR	RGRH/CtV 3RI lt	]
RJ 4       t]
RK 4       tRL tRM tRN tRO tRP tRQ tRR tRS tRT tR‰RU ltRV tRW tRX tRY tRZ tR[ tR\ tR] t]R^ 4       t RŠR_ lt!R` t"Ra t#Rb t$Rc t%Rd t&Re t'R‹Rf lt(Rg t)Rh t*Ri t+Rj t,Rk t-Rl t.Rm t/Rn t0Ro t1Rp t2Rq t3RŒRr lt4Rs t5Rt t6Ru t7Rv t8Rw t9Rx t:Ry t;Rz t<R{ t=R| t>R} t?R~ t@R tAR€ tBR� tCR‚ tDRƒ tER„ tFR… tGR† tHR‡ tIRˆtJVtKV ;tL# )�Ú	SoSReportzYRun a set of commands and file collections and save them to a report for
future analysis
z.Collect files and command output in an archiveTÚ
alloptionsFÚall_logsÚbuildÚcase_idr    ÚchrootÚautoÚcleanÚcontainer_runtimeÚkeep_binary_filesÚdescÚdomainsÚdisable_parsersÚskip_cleaning_filesÚdry_runÚestimate_onlyÚexperimentalÚenable_pluginsÚjournal_sizeÚkeywordsÚkeyword_fileNÚplugoptsÚlabelÚlist_pluginsÚlist_presetsÚlist_profilesÚlog_sizeÚlow_priorityÚmap_fileú /etc/sos/cleaner/default_mappingÚskip_commandsÚ
skip_filesÚskip_pluginsÚ
namespacesÚ	no_reportÚno_env_varsÚno_postprocÚ	no_updateÚnoteÚonly_pluginsÚpresetÚplugin_timeoutÚcmd_timeoutÚprofilesÚsinceÚverifyÚallow_system_changesÚ	usernamesÚuploadÚ
upload_urlÚupload_directoryÚupload_userÚupload_passÚupload_methodÚupload_no_ssl_verifyÚupload_protocolÚupload_s3_endpointÚupload_s3_regionÚupload_s3_bucketÚupload_s3_access_keyÚupload_s3_secret_keyÚupload_s3_object_prefixÚupload_targetÚ
add_presetÚ
del_presetÚtreat_certificatesÚ	obfuscatec                óV  <€ \         SV `  WV4       . V n        . V n        . V n        \
        V n        W n        R V n        / V n	        V P                  4        V P                  4        V P                  P                  4       V n        V P                  P                   P#                  R4      V n        V P'                  4        RpV P                  P                  V n        V P(                  P                  '       d   RpMAV P                  P+                  4       '       d"   V P                  \,        P.                  8w  d   RpV P0                  P3                  RV P                   RV R24       V P(                  P4                  \6        9  ds   V P0                  P9                  RV P(                  P4                   24       \:        P<                  ! 4        V P>                  PA                  4        V PC                  ^4       V PE                  4        V PG                  4        V PI                  4        R	# )
Ú/ÚreportÚdefaultÚcmdlineÚpolicyzset sysroot to 'z' (Ú)zinvalid chroot mode: N)%ÚsuperÚ__init__Úloaded_pluginsÚskipped_pluginsÚall_optionsÚdefault_env_varsÚenv_varsÚ_argsÚsysrootÚestimated_plugsizesÚprint_headerÚ
_set_debugr{   Úis_rootÚ_is_rootÚmanifestÚ
componentsÚadd_sectionÚ	report_mdÚ_set_directoriesÚoptsÚin_containerÚosr&   ÚsoslogÚdebugr8   Úchroot_modesÚerrorÚloggingÚshutdownÚtempfile_utilr:   Ú_exitÚ_check_container_runtimeÚ_get_namespacesÚ_get_hardware_devices)ÚselfÚparserÚargsrz   ÚmsgÚ	__class__s   &&&& €r+   r~   ÚSoSReport.__init__œ   s•  ø€ Ü‰Ñ˜ wÔ/Ø ˆÔØ!ˆÔØˆÔÜ(ˆŒØŒ
ØˆŒØ#%ˆÔ à×ÑÔØ�‰ÔàŸ™×+Ñ+Ó-ˆŒð Ÿ™×1Ñ1×=Ñ=¸hÓGˆŒà×ÑÔàˆØ—{‘{×*Ñ*ˆŒà�9‰9××ÐØ‰CØ�[‰[×%Ñ%×'Ò'¨D¯L©L¼B¿F¹FÔ,BØˆCØ�‰×ÑÐ,¨T¯\©\¨N¸#¸c¸UÀ!ÐDÔEà�9‰9×Ñ¤<Ô/Ø�K‰K×ÑÐ 5°d·i±i×6FÑ6FÐ5GÐHÔIÜ×ÒÔØ×Ñ×$Ñ$Ô&Ø�J‰J�qŒMà×%Ñ%Ô'Ø×ÑÔØ×"Ñ"Ö$r-   c                ó\  € VP                  R R4      pVP                  RRRRRRR7       VP                  R	RR
RRR7       VP                  RRRR\        RR7       VP                  RRRRRR7       VP                  RRRRR7       VP                  RRRRRRR7       VP                  RRRR 7       VP                  R!R"\        RR#R$R%7       VP                  R&RR'R(7       VP                  R)RR*R(7       VP                  R+RR,RR-R7       VP                  R.R/R0R1\        R2. R37       VP                  R4\        ^dR5R6R77       VP                  R8R9R:R0R;\        R<. R37       VP                  R=R>RR?R@R7       VP                  RARBRRCRRDR7       VP                  RERRFR(7       VP                  RGRRHRRIR7       VP                  RJRRK\        ^RLRM7       VP                  RNRRRORP7       VP                  RQRRRR 7       VP                  RSRTR0RU\        RV. R37       VP                  RWRRXRRYR7       VP                  RZRR[RR\R7       VP                  R]RR^RR_R`7       VP                  Ra\        RR#RbR%7       VP                  RcRdR0Re\        Rf. R37       VP                  RgR\        RhRRi7       VP                  RjRRkR 7       VP                  RlRRmR 7       VP                  RnRoRpR0Rq\        . RrRM7       VP                  Rs. R0RtRuRv7       VP                  Rw. R0RxRyRv7       VP                  RzRR{RR|R7       VP                  R}RR~RRR7       VP                  R€RRR�RP7       VP                  R‚RRƒR 7       VP                  R„RR…R 7       VP                  R†RR‡R 7       VP                  RˆRR‰R 7       VP                  RŠR. RÐOR‹RŒ7       VP                  R�RRRŽR�7       VP                  R�RR‘R 7       VP                  R’RR“R 7       VP                  R”RR•R 7       VP                  R–RR—R 7       VP                  R˜RR™R 7       VP                  RšRR›R 7       VP                  RœR. RÑOR�RŒ7       VP                  4       pVP                  Rž\        RRŸR 7       VP                  R¡\        RR¢R 7       VP                  R£R¤4      pVP                  R¥R¦R§R¨RRR©Rª7       VP                  R«R¬. R0R­Rª7       VP                  R®R0. R¯R°R±7       VP                  R²R³R0. R´RµR±7       VP                  R¶R0. R·R¸R±7       VP                  R¹RRºR»R¼7       VP                  R½RRR¾R¿R±7       VP                  RÀRÁRÂRÃRÄ7       VP                  RÅRRRÆRÇRv7       VP                  RÈRÉ. R0RÊRª7       VP                  RËRÌ. RÒORÍRÎRÏ7       R# )ÓzReport Optionsz.These options control how report collects dataz-az--alloptionsÚ
store_truer4   Fz%enable all options for loaded plugins)ÚactionÚdestry   Úhelpz
--all-logsr5   z-collect all available logs regardless of sizez--sinceÚstorer_   NzbEscapes archived files older than date. This will also affect --all-logs. Format: YYYYMMDD[HHMMSS])r¦   r§   ry   Útyper¨   z--buildr6   z;preserve the temporary directory and do not package resultsz	--case-idr7   zspecify case identifier)r¦   r§   r¨   z-cz--chrootr8   r9   zHchroot executed commands to SYSROOT [auto, always, never] (default=auto)z--container-runtimezLDefault container runtime to use for collections. 'auto' for policy control.)ry   r¨   z--descz--descriptionr    zDescription for a new preset)rª   r¦   ry   r¨   z	--dry-runz#Run plugins but do not collect data)r¦   r¨   z--estimate-onlyzzApproximate disk space requirements for a real sos run; disables --clean and --collect, sets --threads=1 and --no-postprocz--experimentalrC   zenable experimental pluginsz-ez--enable-pluginsÚextendrD   zenable these plugins)r¦   r§   rª   r¨   ry   z--journal-sizerE   z+limit the size of collected journals in MiB)rª   ry   r§   r¨   z-kz--plugin-optionz
--plugoptsrH   z7plugin options in plugname.option=value format (see -l)z--labelz--namerI   z"specify an additional report labelz-lz--list-pluginsrJ   z)list plugins and available plugin optionsz--list-presetsz#display a list of available presetsz--list-profilesrL   zBdisplay a list of available profiles and plugins that they includez
--log-sizerM   z6limit the size of collected logs (not journals) in MiB)r¦   r§   rª   ry   r¨   z--low-priorityz(generate report with low system priority)r¦   ry   r¨   z--namespaceszDlimit number of namespaces to collect output for - 0 means unlimitedz-nz--skip-pluginsrS   zdisable these pluginsz--no-reportrU   z disable plaintext/HTML reportingz--no-env-varsrV   z$Do not collect environment variablesz--no-postprocrW   zDisable all post-processing)ry   r§   r¦   r¨   z--notezBehaviour notes for new presetz-oz--only-pluginsrZ   zenable these plugins onlyz--presetzA preset identifier)r¦   rª   r¨   ry   z--plugin-timeoutzset a timeout for all pluginsz--cmd-timeoutz%set a command timeout for all pluginsz-pz	--profilez
--profilesr^   z)enable plugins used by the given profilesz--skip-commandsrQ   zdo not execute these commands)ry   r¦   r§   r¨   z--skip-filesrR   zdo not collect these filesz--verifyr`   z+perform data verification during collectionz--allow-system-changesra   zJRun commands even if they can change the system (e.g. load kernel modules)z--uploadz+Upload archive to a policy-default locationz--upload-urlz&Upload the archive to specified serverz--upload-directoryz$Specify upload directory for archivez--upload-userz'Username to authenticate to server withz--upload-passz'Password to authenticate to server withz--upload-methodz HTTP method to use for uploading)ry   Úchoicesr¨   z--upload-no-ssl-verifyz'Disable SSL verification for upload url)ry   r¦   r¨   z--upload-s3-endpointz#Endpoint to upload to for S3 bucketz--upload-s3-regionz!Region to upload to for S3 bucketz--upload-s3-bucketz"Name of the S3 bucket to upload toz--upload-s3-access-keyzAccess key for the S3 bucketz--upload-s3-secret-keyzSecret key for the S3 bucketz--upload-s3-object-prefixzPrefix for the S3 object/keyz--upload-protocolz$Manually specify the upload protocolú--add-presetz#Add a new named command line preset)rª   r¦   r¨   z--del-presetz$Delete the named command line presetzCleaner/Masking Optionsz7These options control how data obfuscation is performedz--cleanz	--cleanerz--maskr:   zObfuscate sensitive information)r§   ry   r¦   r¨   z	--domainsr>   z$Additional domain names to obfuscatez--disable-parsersr?   zCDisable specific parsers, so that those elements are not obfuscated)r¦   ry   r§   r¨   z--skip-cleaning-filesz--skip-masking-filesr@   zBList of files to skip/ignore during cleaning. Globs are supported.z
--keywordsrF   zList of keywords to obfuscatez--keyword-filerG   z&Provide a file a keywords to obfuscate)ry   r§   r¨   z--no-updaterX   z%Do not update the default cleaner mapz
--map-filerO   rP   z;Provide a previously generated mapping file for obfuscation)r§   ry   r¨   z--keep-binary-filesr<   zGKeep unprocessable binary files in the archive instead of removing themz--usernamesrb   zList of usernames to obfuscatez--treat-certificatesru   rt   z™How to treat the certificate files [.csr .crt .pem]. Defaults to "obfuscate" after convert the file to text.  "Key" certificate files are always removed.)ry   r¬   r§   r¨   )r9   ÚputÚpost)r9   ÚhttpsÚftpÚsftpÚs3)ru   ÚkeepÚremove)Úadd_argument_groupÚadd_argumentr1   ÚstrÚintÚadd_mutually_exclusive_group)ÚclsrŸ   Ú
report_grpÚ
preset_grpÚcleaner_grps   &&   r+   Úadd_parser_optionsÚSoSReport.add_parser_optionsÃ   sb  € à×.Ñ.ØØ<óˆ
ð 	×Ñ  n¸\Ø%1¸5Ø%Lð 	 ô 	Nð 	×Ñ °\Ø%/¸ð&/ð 	 ô 	0ð 	×Ñ 	°'Ø%,°dÄð&@ð 	 ô 	Að
 	×Ñ 	°,Ø%,°eð&;ð 	 ô 	<ð 	×Ñ °GÀ)Ø%>ð 	 ô 	@à×Ñ  j¸Ø%-°vð&Lð 	 ô 	Mð 	×ÑÐ 5¸vð&Oð 	 ô 	Pð 	×Ñ ¨/ÄØ'.¸Ø%Cð 	 ô 	Fð 	×Ñ °LØ%Jð 	 ô 	Là×ÑÐ 1¸,ð&5ð 	 ô 	6ð
 	×ÑÐ 0¸Ø%3¸UØ%Bð 	 ô 	Dð 	×Ñ Ð&8ÀØ%5¼CØ%;ÀRð 	 ô 	Ið 	×ÑÐ 0´sÀCØ%3ð&.ð 	 ô 	/ð 	×Ñ Ð&7¸Ø'/Ø%/´cð&7Ø@Bð	 	 ô 	Dð
 	×Ñ 	¨8¸GØ%,Ø%Ið 	 ô 	Kð 	×Ñ Ð&6¸|Ø%3¸Uð&/ð 	 ô 	0ð 	×ÑÐ 0¸Ø%Jð 	 ô 	Là×ÑÐ 1¸,Ø%4¸eð&Bð 	 ô 	Cð 	×Ñ °WÀ:Ü%(°"ð&=ð 	 ô 	>ð 	×ÑÐ 0¸Ø(-Ø%Oð 	 ô 	"ð 	×Ñ ¸ð&Fð 	 ô 	Gð 	×Ñ Ð&6¸xØ%3¼#Ø%<Àbð 	 ô 	Jð 	×Ñ °lØ%0¸%Ø%Gð 	 ô 	Ið 	×Ñ ¸Ø%2¸EØ%Kð 	 ô 	Mð 	×Ñ ¸Ø%2¸<Ø%Bð 	 ô 	Dð 	×Ñ ¬s¸7ÈBØ%Eð 	 ô 	Gà×Ñ Ð&6¸xØ%3¼#Ø%@È"ð 	 ô 	Nð 	×Ñ 
°7ÄØ%:ÀFð 	 ô 	Là×ÑÐ 2¸DØ%Dð 	 ô 	Fà×Ñ ¸Ø%Lð 	 ô 	Nà×Ñ  k°<Ø'/°jÄsØ(*ð&0ð 	 ô 	1ð
 	×ÑÐ 1¸2ÀhØ%4Ø%Dð 	 ô 	Fð 	×Ñ ¸À8Ø%1Ø%Að 	 ô 	Cð 	×Ñ 
°<Ø%-°uð&2ð 	 ô 	3ð 	×ÑÐ 8ÀØ%;ÀUð&Jð 	 ô 	Kð 	×Ñ 
°<Èð&0ð 	 ô 	1ð 	×Ñ ¸Ø%Mð 	 ô 	Oà×ÑÐ 4¸dØ%Kð 	 ô 	Mà×Ñ ¸Ø%Nð 	 ô 	Pà×Ñ ¸Ø%Nð 	 ô 	Pà×ÑÐ 1¸6Ú(?Ø%Gð 	 ô 	Ið 	×ÑÐ 8À%Ø'3Ø%Nð 	 ô 	Pð 	×ÑÐ 6ÀØ%Jð 	 ô 	Là×ÑÐ 4¸dØ%Hð 	 ô 	Jà×ÑÐ 4¸dØ%Ið 	 ô 	Kà×ÑÐ 8À$Ø%Cð 	 ô 	Eà×ÑÐ 8À$Ø%Cð 	 ô 	Eà×ÑÐ ;ÀTØ%Cð 	 ô 	Eà×ÑÐ 3¸Vò)/à%Kð 	 ô 	Mð  ×<Ñ<Ó>ˆ
Ø×Ñ ´SÀØ%Jð 	 ô 	Là×Ñ ´SÀØ%Kð 	 ô 	Mð ×/Ñ/Ø%ØEó
ˆð 	× Ñ  ¨K¸Ø&-Ø).°|Ø&Gð 	!ô 	Ið 	× Ñ  °9ÀbØ(0Ø&Lð 	!ô 	Nð 	× Ñ Ð!4¸XØ)+Ð2Cð(Kð 	!ô 	Mð 	× Ñ Ð!8Ø!7ÀØ)+Ð2Gð(Hð 	!ô 	Jð
 	× Ñ  °hÈØ&0Ø&Eð 	!ô 	Gð 	× Ñ Ð!1¸4Ø&4Ø&Nð 	!ô 	Pð 	× Ñ  °|Ø).°[Ø&Mð 	!ô 	Oð 	× Ñ  °JØ)Kð(?ð 	!ô 	Að 	× Ñ Ð!6ÀØ(4Ø&9ð'Ið 	!ô 	Jð
 	× Ñ  °[È"Ø(0Ø&Fð 	!ô 	Hð 	× Ñ Ð!7ÀÚ)HØ&:ð%/ð	 	!ö 	1r-   c                óB  € VP                  R 4       VP                  R4       VP                  R4       VP                  R4       VP                  RR7      pVP                  R4       VP                  R4       VP                  RR7      pVP                  R	\        R
4       R\        R4       24       VP                  R\        R4       R24       RRRRRR/pRpVP	                  4        F  w  rgVP                  RVR V 2RR7       K   	  VP                  V4       R# )zSoS Report Detailed HelpzâThe report command is the most common use case for SoS, and aims to collect relevant diagnostic and troubleshooting data to assist with issue analysis without actively performing that analysis on the system while it is in use.z‘Additionally, sos report archives can be used for ongoing inspection for pre-emptive issue monitoring, such as that done by the Insights project.zëThe typical result of an execution of 'sos report' is a tarball that contains troubleshooting command output, copies of config files, and copies of relevant sections of the host filesystem. Root privileges are required for collections.zHow Collections Are Determined)ÚtitlezÁSoS report performs its collections by way of 'plugins' that individually specify what files to copy and what commands to run. Plugins typically map to specific components or software packages.aF  Plugins may specify different collections on different distributions, and some plugins may only be for specific distributions. Distributions are represented within SoS by 'policies' and may influence how other SoS commands or options function. For example policies can alter where the --upload option defaults to or functions.zSee Alsoz5For information on available options for report, see zsos report --helpz and zman sos-reportzThe following zsos helpz sections may be of interest:
zreport.pluginsz'Information on the plugin design of soszreport.plugins.$pluginz!Information on a specific $pluginÚpoliciesz+How sos operates on different distributionsr    Ú	z<36F)r)   N)Ú	set_titleÚadd_textr�   r	   r$   )r»   ÚsectionÚpsecÚssecÚ
help_linesÚhelplnÚlnÚvalues   &&      r+   Údisplay_helpÚSoSReport.display_helpš  sO  € à×ÑÐ4Ô5Ø×Ñð.ô	
ð 	×Ñð'ô	
ð 	×Ñð<ô	
ð ×"Ñ"Ð)IÐ"ÓJˆØ�‰ðô	
ð 	�‰ðô	
ð ×"Ñ"¨Ð"Ó4ˆØ�‰ØCÜÐ'Ó(Ð)¨¬tÐ4DÓ/EÐ.FðHô	
ð 	�‰˜¤t¨JÓ'7Ð&8ð 9$ð $ô 	%ð ÐGØ$Ð&IØÐEð
ˆ
ð
 ˆØ#×)Ñ)Ö+‰IˆBØ�M‰M˜B˜r #˜h u gÐ.¸ˆMÖ>ñ ,à�‰�fÖr-   c                óf   € V P                   P                  R \        R\         R24       R 24       R# )Ú
zsos report (version r|   N)Úui_logÚinfoÚ_r   ©rž   s   &r+   r‡   ÚSoSReport.print_headerÑ  s-   € Ø�‰×Ñ˜2œaÐ"6´{°mÀ1Ð EÓFÐGÀrÐJÖKr-   c           	     ó¸   € R RV P                  4       RV P                  4       /RV P                  4       RV P                  4       RV P	                  4       /V n        R# )ÚstorageÚblockÚfibreÚnetworkÚnamespaced_networkÚfstypeN)Ú_get_block_devsÚ_get_fibre_devsÚ_get_network_devsÚ_get_network_namespace_devicesÚ_get_devices_by_fstypeÚdevicesrÕ   s   &r+   r�   ÚSoSReport._get_hardware_devicesÔ  s[   € àØ˜×-Ñ-Ó/Ø˜×-Ñ-Ó/ðð �t×-Ñ-Ó/Ø  $×"EÑ"EÓ"GØ�d×1Ñ1Ó3ð
ˆŽr-   c                óH  € V P                   P                  R8w  Ed†   V P                   P                  P                  4       pVR9   d/   / V P                  n        V P
                  P                  R4       R# V P                  P                  '       g$   RV R2pV P
                  P                  V4       R# WP                  P                  P                  4       9  dL   RP                  R V P                  P                  P                  4        4       4      p\        RV RV 24      hV P                  P                  V,          V P                  P                  R	&   V P
                  P                  R
V P                  P                  R	,          P                   R24       R# R# )a3  Check the loaded container runtimes, and the policy default runtime
(if set), against any requested --container-runtime value. This can be
useful for systems that have multiple runtimes, such as RHCOS, but do
not have a clearly defined 'default' (or one that is determined based
entirely on configuration).
r9   z0Disabled all container runtimes per user option.zVWARNING: No container runtimes are active, ignoring option to set default runtime to 'ú'
ú, c              3   ó8   "  € T F  pVR 8w  g   K  Vx € K  	  R# 5i)ry   N© ©Ú.0Úps   & r+   Ú	<genexpr>Ú5SoSReport._check_container_runtime.<locals>.<genexpr>ò  s    é € ð "5Ñ-H¨Ø%&¨)¡^÷ #$¢!Ó-Hùs   ‚	�
zCannot use container runtime 'z1': no such runtime detected. Available runtimes: ry   z"Set default container runtime to 'Ú'N)ÚnoneÚoffÚdiabled)r�   r;   Úlowerr{   Úruntimesr“   rÓ   ÚwarningÚkeysÚjoinÚ	ExceptionÚname)rž   Úcrunr¡   Úvalids   &   r+   r›   Ú"SoSReport._check_container_runtimeß  s_  € ð �9‰9×&Ñ&¨&Õ0Ø—9‘9×.Ñ.×4Ñ4Ó6ˆDØÐ1Ô1Ø')�—‘Ô$Ø—‘× Ñ ØFöð —[‘[×)×)Ð)ð<Ø<@¸6ÀðF�à—‘×#Ñ# CÖ(ØŸ[™[×1Ñ1×6Ñ6Ó8Ô8ØŸ	™	ñ "5¨T¯[©[×-AÑ-A×-FÑ-FÔ-Hó "5ó 5�äÐ"@ÀÀð GNà#( 'ð!+ó ,ð ,ð 37·+±+×2FÑ2FÀtÕ2L�—‘×$Ñ$ YÑ/Ø—‘× Ñ ðØŸ™×,Ñ,¨YÕ7×<Ñ<Ð=¸Qð@öñ' 1r-   c                ó<  €  . p. ROpV FV  p\         P                  P                  RV 24      '       g   K-  VP                  \        P                  ! RV R24      4       KX  	  V#   \
         d+   pT P                  P                  RT 24       . u Rp?# Rp?ii ; i)zŸEnumerate a list of fibrechannel devices on this system so that
plugins can iterate over them

These devices are used by add_device_cmd() in the Plugin class.
z/sys/class/z/*z!Could not get fibre device list: N)Úfc_hostÚfc_transportÚfc_remote_portsÚ	fc_vports)r’   ÚpathÚisdirr«   Úglobrø   r“   r–   )rž   ÚdevsÚdevdirsÚdevdirÚerrs   &    r+   rß   ÚSoSReport._get_fibre_devsþ  s�   € ð	ØˆDòˆGó "�Ü—7‘7—=‘= ;¨v¨hÐ!7×8Ô8Ø—K‘K¤§	¢	¨K¸°x¸rÐ*BÓ CÖDñ "ð ˆKøÜô 	Ø�K‰K×ÑÐ AÀ#ÀÐGÔHØ�Iûð	ús"   ‚0A& ·.A& Á&BÁ1BÂBÂBc                ój  €  \         P                  ! R4       Uu. uF  pRV 2NK
  	  pp\        R4      p. pVR,          ^ 8X  dW   VR,          P                  4        F;  pVP	                  4       ^ ,          P                  RR4      pVP                  V4       K=  	  V Uu. uF&  pVP                  R4      '       g   K  Wt9  g   K$  VNK(  	  pp\        \        V4      \        V4      ,
          4      p	V	# u upi u upi   \         d+   p
T P                  P                  R	T
 24       . u R
p
?
# R
p
?
ii ; i)z˜Enumerate a list of block devices on this system so that plugins
can iterate over them

These devices are used by add_device_cmd() in the Plugin class.
z
/sys/blockz/dev/zlosetup --all --noheadingsÚstatusÚoutputÚ:r    Úloopz!Could not get block device list: N)r’   r   r
   Ú
splitlinesÚsplitÚreplacer"   Ú
startswithÚlistÚsetrø   r“   r–   )rž   ÚdÚdevice_listÚloop_devicesÚreal_loop_devicesÚloop_devÚloop_deviceÚdevÚghost_loop_devsÚdev_listr  s   &          r+   rÞ   ÚSoSReport._get_block_devs  s$  € ð	Ü02·
²
¸<Ô0HÓIÑ0H¨1˜U 1 #›;Ñ0HˆKÐIÜ1Ð2NÓOˆLØ "ÐØ˜HÕ%¨Ô*Ø ,¨XÕ 6× AÑ AÖ C�HØ"*§.¡.Ó"2°1Õ"5×"=Ñ"=¸cÀ2Ó"F�KØ%×,Ñ,¨[Ö9ñ !Dñ /:ó @©k sØ"%§.¡.°×"8ô  #à"%Ñ">÷  #˜s©kˆOð @ô œC Ó,¬s°?Ó/CÕCÓDˆHØˆOùò Jùò@øô
 ô 	Ø�K‰K×ÑÐ AÀ#ÀÐGÔHØ�Iûð	úsF   ‚C= šC3¨A7C= ÂC8Â=C8ÃC8Ã'C= Ã3
C= Ã=D2ÄD-Ä'D2Ä-D2c                ó4   € R V P                  4       /V n        R# )rÛ   N)Ú_get_network_namespacesrT   rÕ   s   &r+   rœ   ÚSoSReport._get_namespaces+  s   € à�t×3Ñ3Ó5ð
ˆŽr-   c                óÎ  € R. R. R. R. /p \        RV P                  P                  R7      '       d    VP                  V P	                  4       4       VR,          '       gN   V P
                  P                  R4       VP                  V P                  4       4       V P                  4       VR&   V#   \         d*   pT P
                  P                  RT 24        R	p?T# R	p?ii ; i)
aË  Helper to encapsulate network devices probed by sos. Rather than
probing lists of distinct device types like we do for storage, we can
do some introspection of device enumeration where a single interface
may have multiple device types. E.G an 'ethernet' device could also be
a bond, and that is pertinent information for device iteration.

:returns:   A collection of enumerated devices sorted by device type
:rtype:     ``dict`` with keys being device types
ÚethernetÚbridgeÚteamÚbondÚnmcli)r…   zZNetwork devices not enumerated by nmcli. Will attempt to manually compile list of devices.z%Could not enumerate network devices: N)r   r�   r…   ÚupdateÚ_get_nmcli_devsr“   r”   Ú_get_eth_devsÚ_get_bridge_devsrø   rõ   )rž   Ú_devsr  s   &  r+   rà   ÚSoSReport._get_network_devs0  sÙ   € ð ˜Ø�bØ�BØ�Bð	
ˆð	OÜ˜W¨d¯i©i×.?Ñ.?×@Ó@Ø—‘˜T×1Ñ1Ó3Ô4à˜×$Ô$Ø—‘×!Ñ!ð8ôð —‘˜T×/Ñ/Ó1Ô2Ø"&×"7Ñ"7Ó"9��h‘ð ˆøô ô 	OØ�K‰K×ÑÐ"GÈÀuÐ M×NÐNØˆûð	Oús   ŒAB0 Á!AB0 Â0C$Â;CÃC$c                óh   € / pV P                   R,           F  pRV P                  V4      /W&   K  	  V# )zaEnumerate the network devices that exist within each network
namespace that exists on the system
rÛ   r#  )rT   r*  )rž   Ú_nmdevsÚnmsps   &  r+   rá   Ú(SoSReport._get_network_namespace_devicesO  s?   € ð ˆØ—O‘O I×.Ð.ˆDà˜D×.Ñ.¨tÓ4ðˆG‹Mñ /ð ˆr-   c                óÌ  € / p \        R4      pVR,          ^ 8X  ds   VR,          P                  4       R,           FP  pVP                  4       w  rEWQ9  d   V.W&   MW,          P                  V4       VR,          P                  V4       KR  	  \	        \        VR,          4      4      VR&   V#   \         d*   pT P                  P                  RT 24        Rp?T# Rp?ii ; i)zrUse nmcli, if available, to enumerate network devices. From this
output, manually grok together lists of devices.
znmcli --fields DEVICE,TYPE devr  r  ºé   NNr#  zCould not parse nmcli devices: N)	r
   r  r  r"   r  r  rø   r“   r”   )rž   r,  Ú_ndevsr  ÚdnameÚdtyper  s   &      r+   r)  ÚSoSReport._get_nmcli_devsZ  sÞ   € ð ˆð	GÜ+Ð,LÓMˆFØ�hÕ 1Ô$Ø! (Õ+×6Ñ6Ó8¸×<Ð<�CØ#&§9¡9£;‘L�EØÔ)Ø(- w˜šà�×+Ñ+¨EÔ2Ø˜*Õ%×,Ñ,¨UÖ3ñ =ô !%¤S¨¨zÕ):Ó%;Ó <ˆE�*Ñð ˆøô ô 	GØ�K‰K×ÑÐ ?À¸uÐE×FÐFØˆûð	Gús   „B)B/ Â/C#Â:CÃC#c                óÀ  € R.p. pV'       g&    \        RR4       Uu. uF  pWB9  g   K  VNK  	  ppMW RV R2p\	        V4      pVR,          ^ 8X  d8   VR,          P                  4        F  pW‚9  g   K  VP                  V4       K  	  RTRV U	u. uF  q™P                  R4      '       g   K  V	NK  	  up	RV U
u. uF  qªP                  R4      '       g   K  V
NK  	  up
/# u upi   \         d)   pT P                  P                  RT 24        Rp?L‹Rp?ii ; i  \         d,   pT P                  P                  R	T R
T 24        Rp?LÄRp?ii ; iu up	i u up
i )aà  Enumerate a list of ethernet network devices so that plugins can
reliably iterate over the same set of devices without doing piecemeal
discovery.

These devices are used by `add_device_cmd()` when `devices` includes
"ethernet" or "network".

:param namespace:   Inspect this existing network namespace, if
                    provided
:type namespace:    ``str``

:returns:   All valid ethernet devices found, potentially within a
            given namespace
:rtype:     ``list``
Úbonding_mastersz/sys/class/netNz.Failed to manually determine network devices: zip netns exec z ls /sys/class/netr  r  z'Could not determine network namespace 'z' devices: r#  r&  Útun)r   rø   r“   rõ   r
   r  r"   r  )rž   Ú	namespaceÚ	filt_devsÚ	_eth_devsr  r  Ú_nscmdÚ_nsoutÚ_nsethÚbdÚtds   &&         r+   r*  ÚSoSReport._get_eth_devsn  sr  € ð  'Ð'ˆ	Øˆ	ßðô
 $+Ð+;¸TÔ#BóÙ#B˜CØÑ+÷ �CÑ#Bð ð �	ðØ)¨)¨Ð4FÐG�Ü/°Ó7�Ø˜(Õ# qÔ(Ø"(¨Õ"2×"8Ñ"8Ö":˜Ø!Ö2Ø%×,Ñ,¨VÖ4ñ #;ð ˜	Ø¡)ÓE¡)˜B¯}©}¸V×/D—R�R¡)ÑEØ¡ÓC¡˜2¯m©m¸E×.B—B�B¡ÑCð
ð 	
ùò+øô ô Ø—‘×#Ñ#ØDÀSÀEÐJ÷ñ ûðûô ô Ø—‘×#Ñ#Ø=¸i¸[ð I Ø #˜uð&÷ñ ûðüò FùÚCsa   �C' �C"ªC"°C' ´<D Á5D ÂE
Â.E
Â;EÃEÃ"C' Ã'DÃ2DÄDÄEÄ(!EÅEc                óº  € . p \        R^R7      pXR,          ^ 8X  dM   VR,          P	                  4       R,           F*  p VP                  VP                  4       ^ ,          4       K,  	  V#   \         d)   pT P                  P                  RT 24        Rp?LŠRp?ii ; i  \         d-   pT P                  P                  RT R	T 24        Rp?K˜  Rp?ii ; i)
zÃEnumerate a list of bridge devices so that plugins can reliably
iterate over the same set of bridges.

These devices are used by `add_device_cmd()` when `devices` includes
"bridge" or "network".
z
brctl show©Útimeoutz$Unable to enumerate bridge devices: Nr  r  r3  z"Could not parse device from line 'z': )r
   rø   r“   rõ   r  r"   r  rÓ   )rž   Ú_bridgesÚ_boutr  Ú_blines   &    r+   r+  ÚSoSReport._get_bridge_devs   sÔ   € ð ˆð	NÜ*¨<ÀÔDˆEð ��?˜aÔØ �/×4Ñ4Ó6°r×:Ð:�ðØ—O‘O F§L¡L£N°1Õ$5Ö6ñ ;ð ˆøô ô 	NØ�K‰K×ÑÐ"FÀsÀeÐ L×MÑMûð	Nûô !ô Ø—K‘K×$Ñ$Ø<¸V¸HÀCÈÀuÐM÷ò ûðús/   „A- Á&B#Á-B Á8BÂB Â#CÂ.!CÃCc                ó0  € . p\        R4      pVR,          ^ 8X  d{   VR,          P                  4        F_  pVP                  4       '       g   VR,          P                  4       '       d   K8  VP                  VP	                  R4      ^ ,          4       Ka  	  V# )zŸEnumerate a list of network namespaces on this system so that
plugins can iterate over them

Note that stderr is not collected, so no handling of error lines.
zip netnsr  r  :Nr4  Nr   )r
   r  Úisspacer"   Ú	partition)rž   Úout_nsÚip_netnsr(   s   &   r+   r   Ú!SoSReport._get_network_namespaces¶  sy   € ð ˆä)¨*Ó5ˆØ�HÕ Ô"Ø  Õ*×5Ñ5Ö7�Ø—<‘<—>’> T¨"¥X×%5Ñ%5×%7Ò%7ÙØ—‘˜dŸn™n¨SÓ1°!Õ4Ö5ñ 8ð ˆr-   c                óž  € / p\        R 4      pVR,          ^ 8w  d   V# VR,          P                  4        F”  pVP                  4       P                  4       p\	        V4      ^8X  d   VP                  ^ R4       RV^ ,          9   d   RV^ &   VP                  V^ ,          . 4       W^ ,          ,          P                  V^,          4       K–  	  V# )zlsblk -snrpo FSTYPE,NAMEr  r  ÚunknownÚextÚext4)r
   r  Ústripr  r!   ÚinsertÚ
setdefaultr"   )rž   Ú_dev_fstypesr,  r(   Úhelpers   &    r+   râ   Ú SoSReport._get_devices_by_fstypeÆ  s³   € ØˆÜ&Ð'AÓBˆØ��?˜aÔØÐØ˜8•_×/Ñ/Ö1ˆDØ—Z‘Z“\×'Ñ'Ó)ˆFÜ�6‹{˜aÔØ—‘˜a Ô+Ø˜˜q�	Ô!Ø"��q‘	Ø×#Ñ# F¨1¥I¨rÔ2Ø �Õ#×*Ñ*¨6°!­9Ö5ñ 2ð Ðr-   c                ó"  € R V P                   RV P                  RV P                  RV P                  RV P                  RV P
                  RV P                  RV P                  P                  RV P                  R	V P                  R
V P                  /# )ÚcmddirÚlogdirÚrptdirÚtmpdirr“   r{   r…   Ú	verbosityÚcmdlineoptsrã   rT   )r]  r^  r_  r`  r“   r{   r…   r�   ra  rã   rT   rÕ   s   &r+   Úget_commonsÚSoSReport.get_commonsÕ  su   € à�d—k‘kØ�d—k‘kØ�d—k‘kØ�d—k‘kØ�d—k‘kØ�d—k‘kØ�t—|‘|Ø˜Ÿ™×,Ñ,Ø˜4Ÿ9™9Ø�t—|‘|Ø˜$Ÿ/™/ð
ð 	
r-   c                ó6   € V P                   P                  4       # ©N)r™   ÚnewrÕ   s   &r+   Úget_temp_fileÚSoSReport.get_temp_fileä  s   € Ø×!Ñ!×%Ñ%Ó'Ð'r-   c                óê   € V P                   P                  V P                  R 4       V P                   P                  V P                  R 4       V P                   P                  V P                  R 4       R# )ií  N)ÚarchiveÚmakedirsr]  r^  r_  rÕ   s   &r+   Ú_make_archive_pathsÚSoSReport._make_archive_pathsç  sJ   € Ø�‰×Ñ˜dŸk™k¨5Ô1Ø�‰×Ñ˜dŸk™k¨5Ô1Ø�‰×Ñ˜dŸk™k¨5Ö1r-   c                ó0   € R V n         RV n        RV n        R# )Úsos_commandsÚsos_logsÚsos_reportsN)r]  r^  r_  rÕ   s   &r+   r�   ÚSoSReport._set_directoriesì  s   € Ø$ˆŒØ ˆŒØ#ˆŽr-   c                óˆ   € V P                   P                  '       d   V P                  \        n        R V n        R# RV n        R# )TFN)r�   r”   Ú
_exceptionÚsysÚ
excepthookÚraise_pluginsrÕ   s   &r+   rˆ   ÚSoSReport._set_debugñ  s*   € Ø�9‰9�?�?ˆ?Ø!Ÿ_™_ŒCŒNØ!%ˆDÖà!&ˆDÖr-   c                ó:  € \        \        R4      '       g%   \        P                  P                  4       '       g   \        P                  ! WV4       R# \
        P                  ! WV^\        P                  R7       \        4        \        P                  ! 4        R# )z)Wrap exception in debugger if not in tty Úps1)ÚlimitÚfileN)Úhasattrrv  ÚstderrÚisattyÚ__excepthook__Ú	tracebackÚprint_exceptionÚstdoutÚprintÚpdbÚpm)ÚetypeÚeval_Úetraces   &&&r+   ru  ÚSoSReport._exceptionø  s`   € ô ”3˜×Ò¤c§j¡j×&7Ñ&7×&9Ò&9ô ×Ò˜u¨VÖ4ô ×%Ò% e°FÀ!Ü+.¯:©:õ7äŒGä�FŠFŽHr-   c                óV  € V P                   '       g   V P                  '       d`   \        P                  ! 4       w  r4p\        P
                  ! W4V\        P                  R 7       \        4        \        P                  ! V4       V'       d   V'       d   V P                  W4       R# R# R# ))r}  N)rx  Úexit_processrv  Úexc_infor‚  rƒ  r„  r…  r†  Úpost_mortemÚ_log_plugin_exception)rž   ÚplugnameÚfuncrˆ  ÚvalÚtbs   &&&   r+   Úhandle_exceptionÚSoSReport.handle_exception  sj   € Ø××Ð ×!2×!2Ð!2ä"Ÿ|š|›~ÑˆU˜ä×%Ò% e°"¼3¿:¹:ÕFÜŒGä�OŠO˜BÔßŸØ×&Ñ& xÖ6ñ ‰8r-   c                ój  € \        V R R4      '       dF   V P                  P                  V P                  \        P
                  P                  RR4      R7       \        V RR4      '       dH   V P                  P                  V P                  \        P
                  P                  RR4      R7       R# R# )Úsos_log_fileNrq  úsos.log©r§   Úsos_ui_log_fileúui.log)Úgetattrrk  Úadd_filer˜  r’   r  r÷   r›  rÕ   s   &r+   Ú_add_sos_logsÚSoSReport._add_sos_logs  sŒ   € ô
 �4˜¨×.Ò.Ø�L‰L×!Ñ! $×"3Ñ"3Ü')§w¡w§|¡|°JÀ	Ó'Jð "ô Lä�4Ð*¨D×1Ò1Ø�L‰L×!Ñ! $×"6Ñ"6Ü')§w¡w§|¡|°JÀÓ'Ið "ö Kñ 2r-   c                óŽ  a € S P                   P                  pS P                   P                  '       g   R # \        VR4      '       g   R# V'       d(   S P	                  VP                  4       4      '       g   R # \        ;QJ d)    V 3R lVP                   4       F  '       g   K   R # 	  R# ! V 3R lVP                   4       4      # )Tr^   Fc              3   óT   <"  € T F  qSP                   P                  9   x € K  	  R # 5irf  )r�   r^   )rë   rì   rž   s   & €r+   rí   Ú+SoSReport._is_in_profile.<locals>.<genexpr>'  s    øé € ÐJÑ4I¨q˜Ÿ	™	×*Ñ*Ö*Ó4Iùs   ƒ%()r�   rZ   r^   r~  Ú_is_not_specifiedrù   Úany)rž   Úplugin_classrZ   s   f& r+   Ú_is_in_profileÚSoSReport._is_in_profile  s‰   ø€ Ø—y‘y×-Ñ-ˆØ�y‰y×!×!Ð!ÙÜ�| Z×0Ò0Ùß × 6Ñ 6°|×7HÑ7HÓ7J× KÒ KÙß‹sÔJ°L×4IÒ4IÓJ�sŒsÐJŠsÐJˆsÔJ°L×4IÒ4IÓJÓJÐJr-   c                ó2   € WP                   P                  9   # rf  )r�   rS   ©rž   Úplugin_names   &&r+   Ú_is_skippedÚSoSReport._is_skipped)  s   € ØŸi™i×4Ñ4Ñ4Ð4r-   c                óÔ   € V! V P                  4       4      P                  4       '       * ;'       d9    WP                  P                  9  ;'       d    WP                  P                  9  # rf  )rc  Úcheck_enabledr�   rD   rZ   ©rž   r«  ÚpluginClasss   &&&r+   Ú_is_inactiveÚSoSReport._is_inactive,  sX   € Ù × 0Ñ 0Ó 2Ó3×AÑAÓCÔC÷ :ð :Ø§9¡9×#;Ñ#;Ñ;÷:ð :à§9¡9×#9Ñ#9Ñ9ð	;r-   c                óÔ   € V! V P                  4       4      P                  4       '       * ;'       d9    WP                  P                  9  ;'       d    WP                  P                  9  # rf  )rc  Údefault_enabledr�   rD   rZ   r°  s   &&&r+   Ú_is_not_defaultÚSoSReport._is_not_default1  sX   € Ù × 0Ñ 0Ó 2Ó3×CÑCÓEÔE÷ :ð :Ø§9¡9×#;Ñ#;Ñ;÷:ð :à§9¡9×#9Ñ#9Ñ9ð	;r-   c                ón   € V P                   P                  ;'       d    WP                   P                  9  # rf  )r�   rZ   rª  s   &&r+   r¤  ÚSoSReport._is_not_specified6  s.   € Ø—	‘	×&Ñ&÷ :ð :Ø§9¡9×#9Ñ#9Ñ9ð	;r-   c                ó†   € V P                   P                  VP                  4       V! V P                  4       4      V34       R # rf  )r€   r"   rù   rc  )rž   r¦  Úreasons   &&&r+   Ú_skipÚSoSReport._skip:  s;   € Ø×Ñ×#Ñ#Ø×ÑÓÙ˜×)Ñ)Ó+Ó,Øð%
ö 	r-   c                ó„   € V P                   P                  VP                  4       V! V P                  4       4      34       R # rf  )r   r"   rù   rc  )rž   r¦  s   &&r+   Ú_loadÚSoSReport._loadA  s8   € Ø×Ñ×"Ñ"Ø×ÑÓÙ˜×)Ñ)Ó+Ó,ð$
ö 	r-   c           
     ó	  € \         P                  P                  P                  p\	        \         P                  P                  4      pVP                  4       p. V n        \        4       V n        \        V P                  P                  4      pV P                  P                  p. pV P                  P                  '       d4   VP                  \         P                  P                  P                  4       \!        WV,           4      pV P                  P"                  p\%        V P                  P                  4      p	V EF‹  p
\&        P(                  P+                  V
4      w  r¼ V! W·4      pV'       g   K8  V P                  P-                  V4      pV! VV P                  P                  R 7      '       ga   V P.                  P1                  \3        RV
 R24      4       V P                  P4                  ^ 8”  d   V P7                  V\3        R4      4       K×  V P                  P                  V4       V P9                  V4      pV'       g   V P7                  V\3        R4      4       EK)  V P;                  V4      '       d   V P7                  V\3        R4      4       EK^  V P=                  W¾4      '       d   V P7                  V\3        R4      4       EK“  V P?                  W¾4      '       d   V P7                  V\3        R4      4       EKÈ  \A        VR4      '       d&   V P                  PC                  VP                  4       V'       * ;'       d    TpV PE                  V4      '       d'   V'       d   V P7                  V\3        R	4      4       EKM  VP                   F  pVV	9   g   K  V	PG                  V4       K  	  V PI                  V4       EKŽ  	  \        V	4      ^ 8”  dZ   V P.                  PO                  \3        RRPQ                  V	4       24      4       V PS                  4        V PU                  ^4       R# R#   \J         dG   pT P.                  P1                  \3        RT
 R
T 24      4       T PM                  4         Rp?EKG  Rp?ii ; i))rC   zplugin z does not validate, skippingzdoes not validateÚexcludedÚskippedÚinactiveÚoptionalr^   znot specifiedz does not install, skipping: Nz)Unknown or inactive profile(s) provided: rç   )+Úsosrx   ÚpluginsÚimport_pluginr   Úget_modulesÚplugin_namesr  r^   r!   r�   r{   Úvalid_subclassesrC   r"   ÚExperimentalPluginÚtupleÚvalidate_pluginr  r’   r  ÚsplitextÚmatch_pluginr“   rõ   rÔ   ra  r¼  r§  r¬  r²  r¶  r~  r(  r¤  rµ   r¿  rø   r•  r–   r÷   rL   rš   )rž   rÈ  rZ  rÇ  Úusing_profilesÚpolicy_classesÚextra_classesÚvalid_plugin_classesrÎ  Úremaining_profilesÚplugÚplugbaseÚ__Úplugin_classesr¦  Ú
in_profileÚdefault_profileÚiÚes   &                  r+   Úload_pluginsÚSoSReport.load_pluginsG  sƒ  € ÜŸ
™
×*Ñ*×8Ñ8ˆÜ¤§
¡
× 2Ñ 2Ó3ˆØ×$Ñ$Ó&ˆØˆÔÜ›ˆŒÜ˜TŸY™Y×/Ñ/Ó0ˆØŸ™×5Ñ5ˆØˆà�9‰9×!×!Ð!Ø× Ñ ¤§¡×!3Ñ!3×!FÑ!FÔGÜ$ ^Õ%CÓDÐØŸ+™+×5Ñ5ˆÜ! $§)¡)×"4Ñ"4Ó5Ðô ˆDÜŸ7™7×+Ñ+¨DÓ1‰LˆHð5(Ù!.¨xÓ!N�ß%áà#Ÿ{™{×7Ñ7¸ÓG�á& |Ø48·I±I×4JÑ4J÷Ló Là—K‘K×'Ñ'Ü˜G D 6Ð)EÐFÓGôIà—y‘y×*Ñ*¨QÔ.ØŸ
™
 <´Ð3FÓ1GÔHÙ ð ×!Ñ!×(Ñ(¨Ô2à!×0Ñ0°Ó>�
ß!Ø—J‘J˜|¬Q¨z«]Ô;Úà×#Ñ# H×-Ò-Ø—J‘J˜|¬Q¨y«\Ô:Úà×$Ñ$ X×<Ò<Ø—J‘J˜|¬Q¨z«]Ô;Úà×'Ñ'¨×?Ò?Ø—J‘J˜|¬Q¨z«]Ô;Úô ˜<¨×4Ò4Ø—M‘M×(Ñ(¨×)>Ñ)>Ô?ð '5Ô"4×"CÐ"C¸�Ø×)Ñ)¨(×3Ò3¿Ø—J‘J˜|¬Q¨Ó-?Ô@Úà%×.Ô.�AØÐ.Ö.Ø*×1Ñ1°!Ö4ñ /ð —
‘
˜<×(ñg ôp Ð!Ó" QÔ&Ø�K‰K×Ñœað !$Ø$(§I¡IÐ.@Ó$AÐ#Bð!Dó Eô Fà×ÑÔ Ø�J‰J�qŽMñ	 'øô	 ô (Ø—‘×#Ñ#¤A¨°¨vð 63Ø34°#ð'7ó %8ô 9à×%Ñ%×'Ó'ûð(úsn   Å"P7Å4>P7Æ3AP7È3P7ÉP7É%P7É<P7Ê2P7Ë2P7ÌAP7Í	P7Í#P7Í+P7Î	P7Î!&P7Ð7RÑ:RÒRc                óê   € V P                   P                  '       dW   V P                   FD  w  rVP                  P	                  4        F!  p\
        VP                  9   g   K  R Vn        K#  	  KF  	  R# R# )TN)r�   r4   r   ÚoptionsÚvaluesÚboolÚval_typerÍ   )rž   rØ  rÖ  Úopts   &   r+   Ú_set_all_optionsÚSoSReport._set_all_options–  sS   € Ø�9‰9××ÐØ ×/Ô/‘�ØŸ<™<×.Ñ.Ö0�CÜ˜sŸ|™|Ö+Ø$(˜ž	ó 1ó 0ñ  r-   c           	     óT  € V P                   P                  '       Edó   / pV P                   P                   F¦  p VP                  R ^4      w  r#VP	                  4       p\        V\        4      '       dA   VP	                  4       pVP                  4       pVR9   d   RpMVR9   d   RpM \        V4      p VP                  R4      w  rR W,           W1V,          V&   K¨  	  V P                   FÃ  w  reWa9   g   K  W,           F¨  pW%P                  9  d4   V P                  P                  RV RV R24       V P                  ^4        VP                  V,          P                  W,          V,          4       V P                  P!                  RV RVP                  V,           24       Kª  	  W KÅ  	  V F"  pV P                  P                  R
V R24       K$  	  VP%                  4       '       d   V P                  P                  R4       R	# R	# R	#   \         d    Rp ELÔi ; i  \         d     EL€i ; i  \         d	    TpRp EL‚i ; i  \         d	    / Y&    EL�i ; i  \"         d9   pT P                  P                  T4       T P                  ^4        R	p?EK¡  R	p?ii ; i)Ú=TFÚ.zno such option "z" for plugin (r|   zSet z plugin option to NzCWARNING: unable to set option for disabled or non-existing plugin (z).r    )ÚonÚenableÚenabledÚtrueÚyes)rñ   ÚdisableÚdisabledÚfalseÚno)r�   rH   r  Ú
ValueErrorrV  Ú
isinstancer¸   ró   r¹   ÚKeyErrorr   rá  r“   r–   rš   Ú	set_valuer”   rø   rö   )rž   r�   rå  r“  ÚargrÖ  r‘  r  s   &       r+   Ú_set_tunablesÚSoSReport._set_tunables�  sr  € Ø�9‰9××ÑØˆDØ—y‘y×)Ô)�ðØ"Ÿy™y¨¨aÓ0‘H�Cð —i‘i“k�Ü˜c¤3×'Ò'ØŸ)™)›+�CØŸ)™)›+�CØÐHÔHØ"™ØÐ MÔMØ#™ð!Ü"% c£(˜Cð
Ø #§	¡	¨#£‘I�Dð
$Ø–Jð #&�T•
˜3“ñA *ðD #'×"5Ô"5‘�ØÖ#Ø#Ÿ~˜~˜Ø§l¡lÔ2Ø ŸK™K×-Ñ-Ð0@ÀÀð F9Ø9A¸
À!ð/Eô Fà ŸJ™J qœMð*Ø ŸL™L¨Õ-×7Ñ7¸½ÀsÕ8KÔLØ ŸK™K×-Ñ-Ø"& x jÐ0BØ#'§<¡<°Õ#4Ð"5ð!7ö8ñ  .ð šñ #6ó  !�Ø—‘×!Ñ!ð #=Ø=E¸JÀbð#Jö Kñ !ð
 �y‰y�{Š{Ø—‘×!Ñ! "Ö%ñ ñs øô
 "ô Ø“Cðûô  *ô !â ð!ûô "ô Ø�DØ“Cðûô  ô $Ø!#�D”Jð$ûô   )ô *Ø ŸK™K×-Ñ-¨cÔ2Ø ŸJ™J qŸM›Mûð*ús`   ºHÂ)H&Â5H8Ã	IÅA!I$ÈH#È"H#È&H5È4H5È8IÉ
IÉI!É I!É$J'É/,J"Ê"J'c                óà  € ^ RI pVP                  V P                  P                  V P                  P                  4       F]  pVP                  R4      ^ ,          pW0P                  9  g   K-  V P                  P                  RV R24       V P                  ^4       K_  	  V P                  P                   F4  pW P                  9  g   K  V P                  P                  RV R24       K6  	  R# )r   Nrê  za non-existing plugin (z$) was specified in the command line.z'Requested to skip non-existing plugin 'z'.)Ú	itertoolsÚchainr�   rZ   rD   r  rÊ  r“   Úfatalrš   rS   rõ   )rž   rü  Úpluginr«  s   &   r+   Ú_check_for_unknown_pluginsÚ$SoSReport._check_for_unknown_pluginsÚ  sÄ   € ÛØ—o‘o d§i¡i×&<Ñ&<Ø&*§i¡i×&>Ñ&>ö@ˆFà Ÿ,™, sÓ+¨AÕ.ˆKØ×"3Ñ"3Ö3Ø—‘×!Ñ!Ð$;¸K¸=ð ICð #Cô Dà—
‘
˜1–ñ@ð —i‘i×,Ô,ˆFØ×.Ñ.Ö.Ø—‘×#Ñ#Ø=¸f¸XÀRÐHöó -r-   c                ó®   € V P                    FD  w  rVP                   F/  pV P                  P                  VP                  V,          4       K1  	  KF  	  R # rf  )r   rá  r�   r"   )rž   rØ  rÿ  rå  s   &   r+   Ú_set_plugin_optionsÚSoSReport._set_plugin_optionsé  s?   € Ø×-Ô-‰JˆBØ—~”~�Ø× Ñ ×'Ñ'¨¯©°sÕ(;Ö<ó &ó .r-   c                óÖ  € R p. pV P                   P                  ^8”  d4   VRV P                   P                   R2.,          p^V P                   n        V P                   P                  '       g   VR.,          pRV P                   n        V P                   P                  '       g   VR.,          pRV P                   n        V P                   P                  '       d   VR.,          pRV P                   n        V P                   P
                  '       d   VR.,          pRV P                   n        V'       d!   VR	R
P                  V4      ,           ,          pM	VR,          pVR,          pV# )z
Estimate-only mode enabledz
--threads=z overriden to 1z--build enabledTz--no-postproc enabledz--clean disabledFz--upload* options disabledz", which overrides some options:
  z
  rê  z

)r�   Úthreadsr6   rW   r:   rc   r÷   )rž   r¡   Úext_msgs   &  r+   Ú_set_estimate_onlyÚSoSReport._set_estimate_onlyî  s   € ð -ˆØˆØ�9‰9×Ñ˜qÔ Ø˜* T§Y¡Y×%6Ñ%6Ð$7°ÐGÐJÕJˆGØ !ˆD�I‰IÔØ�y‰y��ˆØÐ)Ð,Õ,ˆGØ"ˆD�I‰IŒOØ�y‰y×$×$Ð$ØÐ/Ð2Õ2ˆGØ$(ˆD�I‰IÔ!Ø�9‰9�?�?ˆ?ØÐ*Ð-Õ-ˆGØ#ˆD�I‰IŒOØ�9‰9××ÐØÐ4Ð7Õ7ˆGØ$ˆD�I‰IÔßØÐ8¸6¿;¹;ÀwÓ;OÕOÕO‰Cà�3�JˆCØˆv�ˆØˆ
r-   c                óŒ  € V P                   P                  R 4       V P                  '       dJ   V P                   P                  R\        V P                  4       R\        V P                  4       R24       M2V P                   P                  R\        V P                  4       R24       V P                   P                  R 4       R# )r    r   z profiles, z pluginsz	 profilesN)rÒ   rÓ   r   r!   r^   rÕ   s   &r+   Ú_report_profiles_and_pluginsÚ&SoSReport._report_profiles_and_plugins	  s—   € Ø�‰×Ñ˜ÔØ××ÐØ�K‰K×Ñ˜q¤ T§]¡]Ó!3Ð 4°KÜ # D×$7Ñ$7Ó 8Ð9¸ðCõ Dð �K‰K×Ñ˜q¤ T§]¡]Ó!3Ð 4°IÐ>Ô?Ø�‰×Ñ˜Ör-   c           
     óÊ	  € V P                   '       g9   V P                  '       g'   V P                  P                  \	        R 4      4       R# V P                   '       d†   V P
                  P                  \	        R4      4       V P
                  P                  R4       V P                    F5  w  rV P
                  P                  RVR RVP                  4        24       K7  	  M$V P
                  P                  \	        R4      4       V P
                  P                  R4       V P                  '       dŠ   V P
                  P                  \	        R4      4       V P
                  P                  R4       V P                   F:  w  rpV P
                  P                  RVR RVR RVP                  4        24       K<  	  V P
                  P                  R4       V P                  '       EdQ   V P
                  P                  \	        R	4      4       V P                   ^ ,          ^,          P                  4       pV Fì  pWV,          pVP                  pVP                  R8X  d_   VR
8X  d&   V P                  P                  ;'       g    \        pM2VR8X  d&   V P                  P                  ;'       g    \        pM\        pVP                  R8X  d   V P                  P                   '       * pV P
                  P                  RVP                  R RVR RVP"                   24       Kî  	  V P
                  P                  R4       V P
                  P                  \	        R4      4       V P                   FÂ  pVP                  R9   d   VP                  VP$                  8X  d   K1  \'        VP                  \(        4      '       d   VP                  RJ d   Rp	MRp	MVP                  p	V	f   ^ p	V P
                  P                  RVP*                   RVP                   2R RV	R RVP"                   24       KÄ  	  M$V P
                  P                  \	        R4      4       V P
                  P                  R4       \-        V P.                  4      p
V
P1                  4        \3        RV
RR7      pV F!  pV P
                  P                  RV 24       K#  	  V P5                  4        R# )zno valid plugins foundNz,The following plugins are currently enabled:r    r   z<30zNo plugin enabled.z-The following plugins are currently disabled:z<14z4The following options are available for ALL plugins:rG  úcmd-timeoutÚpostprocz<25ú<15z+The following plugin options are available:Trë  rñ   rê  z<40z<22zNo plugin options available.z
Profiles: ©r%   éÿÿÿÿ)rG  r  r  )r   r€   r“   rþ  rÔ   rÒ   rÓ   Úget_descriptionr�   Úget_default_plugin_optsrÍ   r�   r\   r   r]   rù   rW   r=   ry   rõ  rã  rÿ  r  r^   Úsortr,   r  )rž   r‘  rÖ  Ú	plugclassr»  Ú	_defaultsÚ_optrå  r“  Útmpoptr^   r'   r(   s   &            r+   rJ   ÚSoSReport.list_plugins  sÎ  € Ø×"×"Ð"¨4×+?×+?Ð+?Ø�K‰K×ÑœaÐ 8Ó9Ô:Ùà××ÐØ�K‰K×ÑœQÐMÓNÔOØ�K‰K×Ñ˜RÔ Ø$(×$7Ô$7Ñ �Ø—‘× Ñ  1 X¨c N°!°D×4HÑ4HÓ4JÐ3KÐ!LÖMò %8ð �K‰K×ÑœQÐ3Ó4Ô5Ø�‰×Ñ˜Ôà××ÐØ�K‰K×ÑœQð  +ó ,ô -à�K‰K×Ñ˜RÔ Ø15×1EÔ1EÑ-� fØ—‘× Ñ  1 X¨c N°!°F¸3°<¸qØ$-×$=Ñ$=Ó$?Ð#@ð"Bö Cñ 2Fð 	�‰×Ñ˜Ôà××ÑØ�K‰K×ÑœQð  *ó +ô ,à×+Ñ+¨AÕ.¨qÕ1×IÑIÓKˆIÛ!�Ø•o�Ø—i‘i�Ø—9‘9 ”?Ø˜yÔ(Ø"Ÿi™i×6Ñ6×IÐI¼/™Ø Ô.Ø"Ÿi™i×3Ñ3×FÐF´™ä-˜Ø—8‘8˜zÔ)Ø"Ÿi™i×3Ñ3Ô3�CØ—‘× Ñ  1 S§X¡X¨c N°!°C¸°9¸A¸c¿h¹h¸ZÐ!HÖIñ "ð �K‰K×Ñ˜RÔ à�K‰K×ÑœQÐLÓMÔNØ×'Ô'�Ø—8‘8ÐEÔEØ—y‘y C§K¡KÔ/Ù ä˜cŸi™i¬×.Ò.Ø—y‘y DÓ(Ø!%™à!&™à ŸY™Y�Fà’>Ø�Fà—‘× Ñ  1¨¯
©
 |°1°S·X±X°JÐ%?ÀÐ$DÀAØ$*¨3 <¨q°·±°
ð"<ö =ò! (ð& �K‰K×ÑœQÐ=Ó>Ô?à�‰×Ñ˜ÔÜ˜Ÿ™Ó&ˆØ�‰ŒÜ˜\¨8¸DÔAˆÛˆDØ�K‰K×Ñ˜q  ˜ZÖ(ñ à×)Ñ)Ö+r-   c                óx  € V P                   '       g'   V P                  P                  \        R 4      4       R# V P                  P                  \        R4      4       V P                  P                  R4       R p\        V P                   4      pVP                  4        V F„  p. pV P                   F8  w  rVV! V4      '       g   K  W6P                   9   g   K'  VP                  V4       K:  	  \        VR VRR7      pV F!  pV P                  P                  RV 24       K#  	  K†  	  V P                  4        R# )	zno valid profiles foundNz%The following profiles are available:r    c                 ó   € \        V R 4      # )r^   )r~  )Úcs   &r+   Ú	_has_profÚ*SoSReport.list_profiles.<locals>._has_profc  s   € Ü˜1˜jÓ)Ð)r-   r  Tr  r   )r^   r“   rþ  rÔ   rÒ   rÓ   r  r  r   r"   r,   r  )	rž   r  r^   ÚprofilerÇ  rù   rÿ  r'   r(   s	   &        r+   rL   ÚSoSReport.list_profiles\  só   € Ø�}�}ˆ}Ø�K‰K×ÑœaÐ 9Ó:Ô;ÙØ�‰×ÑœÐBÓCÔDØ�‰×Ñ˜Ôò	*ô ˜Ÿ™Ó&ˆØ�‰ŒÛˆGØˆGØ $× 3Ô 3‘�Ù˜V×$Ô$¨·O±OÖ)CØ—N‘N 4Ö(ñ !4ô ! G¨C =°7À4ÔHˆEÛ�Ø—‘× Ñ  1 T F Ö,ó ñ  ð 	×)Ñ)Ö+r-   c                óâ  € V P                   P                  '       g'   V P                  P                  \	        R 4      4       R# V P
                  P                  \	        R4      4       V P
                  P                  R4       V P                   P                  P                  4        EFD  pV'       g   K  V P                   P                  V4      pV P
                  P                  RR RVP                   24       V P
                  P                  RR RVP                   24       VP                  '       d,   V P
                  P                  RR RVP                   24       V P                  P                  ^ 8”  dS   VP                  P                  4       pR	R R2p\        W2R
RR7      pV F  pV P
                  P                  V4       K   	  V P
                  P                  R4       EKG  	  R# )zno valid presets foundNz$The following presets are available:r    zname:z>14r   zdescription:znote:zoptions:T)r%   r&   )r{   Úpresetsr“   rþ  rÔ   rÒ   rÓ   rö   Úfind_presetrù   r=   rY   r�   ra  Úto_argsr,   )rž   r[   r    Úoptions_strr'   r(   s   &     r+   rK   ÚSoSReport.list_presetsr  sp  € Ø�{‰{×"×"Ð"Ø�K‰K×ÑœaÐ 8Ó9Ô:ÙØ�‰×ÑœÐAÓBÔCØ�‰×Ñ˜Ôà—k‘k×)Ñ)×.Ñ.×0ˆFßÙØ—[‘[×,Ñ,¨VÓ4ˆFØ�K‰K×Ñ ¨˜}¨A¨f¯k©k¨]Ð;Ô<Ø�K‰K×Ñ ¨sÐ3°1°V·[±[°MÐBÔCØ�{�{ˆ{Ø—‘× Ñ  G¨C =°°&·+±+°Ð!?Ô@à�y‰y×"Ñ" QÔ&Ø—{‘{×*Ñ*Ó,�Ø!+¨CÐ 0°Ð2�Ü$ [¸tÈÔM�Û!�DØ—K‘K×$Ñ$ TÖ*ñ "à�K‰K×Ñ˜R× ó 1r-   c                ó¤  € V P                   pVP                  V4      '       d"   V P                  P                  RV R24       R# T;'       g    V P                  P
                  pT;'       g    V P                  P                  p VP                  WW0P                  R7       T P                  P                  R4      pT P                  ^ T T P                  T^,           R ,           pT P                  P                  RT R	R
P                  T4       R24       R#   \         d*   pT P                  P                  RT 24        Rp?R# Rp?ii ; i)z¥Add a new command line preset for the current options with the
specified name.

:param name: the name of the new preset
:returns: True on success or False otherwise
zA preset named 'z' already existsF)rù   r=   rY   r�   zCould not add preset: Nr­   zAdded preset 'z' with options r   rÑ   T)r{   r$  rÒ   r–   r�   r=   rY   rr   rø   rz   ÚindexrÓ   r÷   )rž   rù   r=   rY   r{   rÝ  Ú	arg_indexr    s   &&&&    r+   rr   ÚSoSReport.add_presetŠ  s  € ð —‘ˆØ×Ñ˜d×#Ò#Ø�K‰K×ÑÐ 0°°Ð6FÐGÔHÙà×%Ð%�t—y‘y—~‘~ˆØ×%Ð%�t—y‘y—~‘~ˆð	Ø×Ñ 4¸ÇIÁIÐÔNð —L‘L×&Ñ& ~Ó6ˆ	Ø�|‰|˜A˜iÐ(¨4¯<©<¸	ÀA½¸Ð+GÕGˆà�‰×ÑØ˜T˜F /°#·(±(¸4³.Ð1AÀÐDô	Fáøô ô 	Ø�K‰K×ÑÐ 6°q°cÐ:Ô;Ýûð	ús   ÂD ÄEÄ&E
Å
Ec                ór  € V P                   pVP                  V4      '       g"   V P                  P                  RV R24       R#  VP	                  VR7       T P                  P                  RT R24       R	#   \
         d3   pT P                  P                  \        T4       R24        Rp?R# Rp?ii ; i)
z€Delete a named command line preset.

:param name: the name of the preset to delete
:returns: True on success or False otherwise
zPreset 'z' not foundF©rù   rÑ   NzDeleted preset 'ræ   T)r{   r$  rÒ   r–   rs   rø   r¸   rÓ   )rž   rù   r{   rÝ  s   &&  r+   rs   ÚSoSReport.del_preset§  s¤   € ð —‘ˆØ×!Ñ! $×'Ò'Ø�K‰K×Ñ ¨¨¨kÐ:Ô;Ùð	Ø×Ñ 4ÐÔ(ð
 	�‰×ÑÐ+¨D¨6°Ð5Ô6Ùøô ô 	Ø�K‰K×Ñ¤ Q£ ¨˜mÔ,Ýûð	ús   ÁA9 Á9B6Â'B1Â1B6c                ó  € V P                   P                  4       pV P                  P                  '       d   WP	                  4       ,          pV P                  P
                  '       d   V P                  P                  V4       R# V\        R 4      ,          p \        V4       R#   \         d1    T P                  P                  R4       T P                  ^‚4        R# \         d   pT P                  ^T4        Rp?R# Rp?ii ; i)z,Press ENTER to continue, or CTRL-C to quit.
zExiting on user cancelN)r{   Úget_msgr�   rB   r  ÚbatchrÒ   rÓ   rÔ   ÚinputÚKeyboardInterruptr–   rš   rø   )rž   r¡   rÝ  s   &  r+   r1  ÚSoSReport.batch»  s·   € Ø�k‰k×!Ñ!Ó#ˆØ�9‰9×"×"Ð"Ø×*Ñ*Ó,Õ,ˆCØ�9‰9�?�?ˆ?Ø�K‰K×Ñ˜SÖ!à”1ÐDÓEÕEˆCð!Ü�c–
øÜ$ô  Ø—‘×!Ñ!Ð":Ô;Ø—
‘
˜3—Üô !Ø—
‘
˜1˜a× Ò ûð!ús$   ÂB& Â&7DÃ DÃ)DÃ*DÄDc                óX  € \         P                  ! 4       pR pV R2p\        P                  P	                  V P
                  V4      pV P                  P                  V RV RV R24       V P                  P                  RV 24       V P                  P                  V R2VRR7       R	# )
z!caught exception in plugin methodz-plugin-errors.txtz "rê  z()"zwriting traceback to rÑ   Úa)ÚmodeN)
r‚  Ú
format_excr’   r  r÷   r^  r“   r–   rk  Ú
add_string)rž   rÿ  ÚmethodÚtracer¡   Úplugin_err_logÚlogpaths   &&&    r+   r�  ÚSoSReport._log_plugin_exceptionË  s˜   € Ü×$Ò$Ó&ˆØ1ˆØ"˜8Ð#5Ð6ˆÜ—'‘'—,‘,˜tŸ{™{¨NÓ;ˆØ�‰×Ñ˜S˜E  F 8¨1¨V¨H°CÐ8Ô9Ø�‰×ÑÐ1°'°Ð;Ô<Ø�‰×Ñ 5 '¨ ¨g¸CÐÖ@r-   c                ó²  € V P                   P                  4         V P                  P                  \	        R 4      4       V P                  4        V P                  4        R#   \         d^   pTP                  \        9   d5   \        R4       \        RTP                   R24       \        R4        Rp?M�\        RT 24       h Rp?i\         dq   pT P                  P                  R4       T P                  P                  R4       \        P                  ! 4        T P                  P                  T4        Rp?MRp?ii ; iT P!                  ^4       R# )z Setting up archive ...Nr    r   z while setting up archivezError setting up archive: z) Unexpected exception setting up archive:)r{   Úpre_workrÒ   rÓ   rÔ   Úsetup_archiverm  ÚOSErrorÚerrnoÚfatal_fs_errorsr…  Ústrerrorrø   r–   r‚  Ú	print_excrš   ©rž   rÝ  s   & r+   ÚpreworkÚSoSReport.preworkÔ  sý   € Ø�‰×ÑÔð	!Ø�K‰K×ÑœQÐ8Ó9Ô:Ø×ÑÔ Ø×$Ñ$Ô&ÙøÜô 
	ð �w‰wœ/Ô)Ü�b”	Ü˜˜!Ÿ*™*˜Ð%>Ð?Ô@Ü�b—	‘	äÐ2°1°#Ð6Ô7ØûÜô 	!Ø�K‰K×Ñ˜bÔ!Ø�K‰K×ÑÐIÔJÜ×ÒÔ!Ø�K‰K×Ñ˜a× Ñ ûð		!úð
 	�
‰
�1Žs2   œAA" Á"EÁ-ACÂ6CÃEÃEÃA&D>Ä>Ec                óô  € V P                   P                  \        R 4      4       V P                   EFa  w  r V P                  P
                  P                  V4       VP                  \        V P                  P
                  V4      4       \        P                  ! 4       pVP                  P                  RV4       V P                  Vn        VP                  4        VP                  4        V P                   P#                  VP$                  4       V P&                  P(                  '       d   VP+                  4        \        P                  ! 4       pVP                  P                  RV4       VP                  P                  RWC,
          4       EKd  	  R#   \,         d    \,        h\.         d¤   pTP0                  \2        9   dq   T P                   P5                  R4       T P                   P5                  RTP6                   R24       T P                   P5                  R4       T P9                  ^4       T P;                  TR4        Rp?EK!  Rp?i\<         d    T P;                  TR4        EKE  i ; i)	z Setting up plugins ...Úsetup_startÚ	setup_endÚ
setup_timer    r   z while setting up pluginsÚsetupN)rÒ   rÓ   rÔ   r   rŽ   rÇ  r�   Úset_plugin_manifestr�  r   Únowr‹   Ú	add_fieldrk  Úadd_default_collectionsrN  rƒ   r(  Ú	_env_varsr�   r`   Úsetup_verifyr3  rB  rC  rD  r–   rE  rš   r•  rø   ©rž   r‘  rÖ  ÚstartÚendrÝ  s   &     r+   rN  ÚSoSReport.setupí  sÀ  € Ø�‰×ÑœÐ4Ó5Ô6Ø"×1Õ1‰NˆHð9Ø—‘×&Ñ&×2Ñ2°8Ô<Ø×(Ñ(¬°·±×1GÑ1GØ19ó*;ô <ä Ÿš›�Ø—‘×'Ñ'¨°uÔ=Ø#Ÿ|™|�”Ø×,Ñ,Ô.Ø—
‘
”Ø—‘×$Ñ$ T§^¡^Ô4Ø—9‘9×#×#Ð#Ø×%Ñ%Ô'Ü—l’l“n�Ø—‘×'Ñ'¨°SÔ9Ø—‘×'Ñ'¨°cµk×Bó 2øô  %ô (Ü'Ð'Üô 9Ø—7‘7œoÔ-Ø—K‘K×%Ñ% bÔ)Ø—K‘K×%Ñ%Ø˜AŸJ™J˜<Ð'@ÐAôCà—K‘K×%Ñ% bÔ)Ø—J‘J˜q”MØ×%Ñ% h°×8Ó8ûÜô 9Ø×%Ñ% h°×8Ð8ð9ús+   ¸EFÆI7Æ3I7Æ4BIÉI7ÉI7É6I7c                ó’   € . pVP                  R\         24       V P                  P                  RP	                  V4      RR7       R# )zOFetch version information from all plugins and store in the report
version filezsos report: rÑ   zversion.txt)Úcontentr§   N)r"   r   rk  r9  r÷   )rž   Úversionss   & r+   ÚversionÚSoSReport.version  sA   € ð ˆØ�‰˜,¤{ mÐ4Ô5à�‰×Ñ¨¯	©	°(Ó(;Ø%2ð 	 ö 	4r-   c                ó*  € V P                   P                  \        R 4      4       V P                   P                  R4       ^ p. V n        . V n        V P
                   F/  pV^,          pV P                  P                  W^ ,          34       K1  	   . p\        V P                  P                  4      ;_uu_ 4       pVP                  V P                  \        V P                  4      4      pRRR4       V F+  pV'       d   K  V P                  P                  RV 24       K-  	  V P                   P                  R4       R#   + '       g   i     L^; i  \         d6    T P                   P!                  R4       \"        P$                  ! ^4        R# i ; i)z! Running plugins. Please wait ...r    NzUnexpected plugin task result: z
Exiting on user cancel
)rÒ   rÓ   rÔ   ÚpluglistÚrunning_plugsr   r"   r   r�   r  ÚmapÚ_collect_pluginr  r“   r”   r3  r–   r’   rš   )rž   ÚplugruncountrÜ  ÚresultsÚexecutorÚress   &     r+   ÚcollectÚSoSReport.collect  s1  € Ø�‰×ÑœÐ>Ó?Ô@Ø�‰×Ñ˜ÔàˆØˆŒØˆÔØ×$Ô$ˆAØ˜AÕˆLØ�M‰M× Ñ  ,°!µÐ!5Ö6ñ %ð	ØˆGÜ# D§I¡I×$5Ñ$5×6Ô6¸(Ø"Ÿ,™, t×';Ñ';Ü'+¨D¯M©MÓ':ó<�÷ 7ó �ß‘sØ—K‘K×%Ñ%Ð(GÈÀuÐ&MÖNñ ð �K‰K×Ñ˜RÖ ÷ 7×6ûô !ô 	à�K‰K×ÑÐ:Ô;Ü�HŠH�Q�Kð	ús0   Â)E Â90D?Ã)E Ä =E Ä?E	Å
E Å<FÆFc                ó¦  € \        ^4      ;_uu_ 4       p V P                  V^ ,          ^,
          ,          ^,          pVP                  V P                  V4      pVP                  ;'       g    Rp\
        P                  ! 4       pVP                  P                  RV4       VP                  VR7       \
        P                  ! 4       pVP                  P                  RV4       VP                  P                  RWv,
          4       RRR4       V P*                  P,                  '       Ed   V P.                  P1                  4       p	 \3        RV	 24      p
\5        V
R,          P7                  4       ^ ,          4      V P8                  V^,          &   \<        P>                  ! V	4       F�  p\<        P@                  PC                  W›4      p\<        P@                  PE                  V4      '       d3   \<        P@                  PG                  V4      '       g   \I        V4       Ky  \<        PJ                  ! V4       K‘  	  R
#   \         dÐ    RT^,           R2pT P                  P                  RT R	24       T P                  P                  T4       T P                  P!                  T^,          4       T P                  T^ ,          ^,
          ,          ^,          P#                  4        TP%                  R
R7       TP&                  P)                  4         ELi ; i  + '       g   i     EL; i  \:         d    ^ T P8                  T^,          &    ELÀi ; i)zYWraps the collect_plugin() method so we can apply a timeout
against the plugin as a wholeNÚ
start_timerF  Úend_timeÚrun_timezPlugin z
 timed outú
 rÑ   T)Úwaitzdu -sB1 r  )&r   r   ÚsubmitÚcollect_pluginrG  r   rP  r‹   rQ  ÚresultÚFuturesTimeoutErrorrÒ   r–   r“   rÓ   r`  rµ   Úset_timeout_hitr˜   Ú_threadsÚclearr�   rB   rk  Úget_tmp_dirr
   r¹   r  r†   rø   r’   r   r  r÷   r  Úislinkr   Úunlink)rž   rÿ  ÚpoolÚ_plugÚtrG  rV  rW  r¡   r`  ÚduÚfs   &&          r+   rb  ÚSoSReport._collect_plugin.  sl  € ô   ×"Ô" dð&Ø×+Ñ+¨F°1­I°a­KÕ8¸Õ;�Ø—K‘K × 3Ñ 3°VÓ<�ð  Ÿ-™-×/Ð/¨4�Ü Ÿš›�Ø—‘×(Ñ(¨°uÔ=Ø—‘ �Ô)Ü—l’l“n�Ø—‘×(Ñ(¨°SÔ9Ø—‘×(Ñ(¨°Sµ[ÔA÷ #ð0 �9‰9×"×"Ñ"ð —\‘\×-Ñ-Ó/ˆFð8Ü+¨h°v°hÐ,?Ó@�ä˜˜8�×*Ñ*Ó,¨QÕ/Ó0ð ×(Ñ(¨°­Ñ3ô —Z’Z Ö'�Ü—G‘G—L‘L Ó+�Ü—7‘7—=‘= ×#Ò#¬B¯G©G¯N©N¸1×,=Ò,=Ü˜1–Iä—I’I˜a–Lñ (ñ øô? 'ô 
&Ø  q¥	˜{¨*Ð5�ð —‘×!Ñ! C¨ u¨B -Ô0Ø—‘× Ñ  Ô%Ø×"Ñ"×)Ñ)¨&°­)Ô4Ø×#Ñ# F¨1¥I¨a¥KÕ0°Õ3×CÑCÔEØ—‘ 4�Ô(Ø—‘×#Ñ#×%ð
&ú÷ #×"Ð"ûô@ ô 8Ø67�×(Ñ(¨°­Ô3ð8ús=   ”L–C0H:ÅA	L+ È:CLÌLÌLÌLÌL(	Ì+!MÍMc           	     óÄ  €  Vw  r#V P                   V^,
          ,          ^,          pV P                  P                  V4       \	        T P                   4      pRT RT 2R RTR RRP                  R T P                   4       4       R	2pT P                  T4        TP                  4         T P                  P                  T4        T P                  P                  T4       Rp\	        T P                  4      \        T P                  P                  4      8:  d=   T P                  '       d+   RRR RRP                  R T P                   4       4       R	2pT P                  '       g   T P                  '       g   RpT'       d   T P                  T4       R#   \         d     R# i ; i  \         d$    T P                  P                  R
T R24        ELi ; i  \         d$    T P                  P                  R
T R24        EL&i ; i  \          d     R# \"         d›   pTP$                  \&        9   di   T P(                  P+                  RTP,                   R24       T P(                  P+                  RT P.                   R24       \0        P2                  ! ^4       T P5                  TR4        Rp?R# Rp?i\         d    T P5                  TR4        R# i ; i)r4  Fz  Starting rw   z<5r   r  z [Running: c              3   ó$   "  € T F  qx € K  	  R # 5irf  ré   rê   s   & r+   rí   Ú+SoSReport.collect_plugin.<locals>.<genexpr>h  s   é € Ð,KÑ8J°1¬QÓ8Jùó   ‚Ú]zCould not remove z from plugin list, ignoring...z& from running plugin list, ignoring...r    z  Finishing plugins z<12c              3   ó$   "  € T F  qx € K  	  R # 5irf  ré   rê   s   & r+   rí   r�  �  s   é € Ð%DÑ1C¨A¤aÓ1Cùr‚  z
  Finished running pluginsrm  z while collecting plugin dataz# Data collected still available at rÑ   rg  N)r   r`  r"   rø   r!   r÷   Úui_progressrp  r_  rµ   rô  r“   r”   r¹   r�   r  r   rB  rC  rD  rÒ   r–   rE  r`  r’   rš   r•  )	rž   rÿ  Úcountr‘  rÖ  ÚnumplugsÚstatus_liner  rÝ  s	   &&       r+   rp  ÚSoSReport.collect_plugin_  s©  € ð	Ø$‰OˆEØ×&Ñ& u¨Q¥wÕ/°Õ2ˆDØ×Ñ×%Ñ% hÔ/ô �t×*Ñ*Ó+ˆØ$¨ w¨a°¨zÐ%:¸2Ð$>¸aÀÈ¸~ð N$Ø$'§H¡HÑ,K¸×8JÒ8JÓ,KÓ$KÐ#LÈAðOˆà×Ñ˜Ô%ð)	7Ø×ÑÔ!ðØ—‘×$Ñ$ VÔ,ðØ×"Ñ"×)Ñ)¨(Ô3ð ˆFÜ�D—M‘MÓ"¤c¨$¯)©)×*;Ñ*;Ó&<Ô<Ø×&×&Ð&Ø0°°S°	¸Ø ŸX™XÑ%D°×1CÒ1CÓ%DÓDÐEÀQðH�à×%×%Ð%¨d¯m¯m¨mØ7�ßØ× Ñ  Ô(ñ øôa ô 	Úð	ûô ô Ø—‘×!Ñ!Ø'¨ zð 2"ð #÷ðûô ô Ø—‘×!Ñ!Ø'¨ zð 2"ð #÷ðûô ô 	ð ñ ô ô 	7Ø�w‰wœ/Ô)Ø—‘×!Ñ!Ø˜!Ÿ*™*˜Ð%BÐCôEà—‘×!Ñ!Ø9¸$¿+¹+¸ÀbÐIôKä—’˜”Ø×!Ñ! (¨I×6Ð6ñ ûô ô 	7Ø×!Ñ! (¨IÕ6Ùð	7úsž   ‚A F ÂH Â-F, Ã	G Ã$A
H Ä/;H Å+H Å=	H ÆH ÆF)Æ(F)Æ,*GÇH ÇGÇH Ç*HÈH È
HÈH ÈKÈKÈ%KÈ&BJ;Ê;KËKËKc                ó^  € V P                   P                  ^ 8X  d2   V P                   P                  '       g   RVP                  ^Z4       2pMV R2pV P                   P                  '       g@   \
        P                  P                  V4       \
        P                  P                  4        R# R# )r   ÚrÑ   N)	r�   ra  r1  ÚljustÚquietrv  r„  ÚwriteÚflush)rž   rˆ  s   &&r+   r…  ÚSoSReport.ui_progress–  sx   € Ø�9‰9×Ñ !Ô#¨D¯I©I¯O¯O¨OØ˜{×0Ñ0°Ó4Ð5Ð6‰Kà(˜M¨Ð,ˆKØ�y‰y��ˆÜ�J‰J×Ñ˜[Ô)Ü�J‰J×ÑÖñ r-   c                óª  € V P                   '       g   R # RP                  V P                    Uu. uFH  p\        P                  P	                  V4      f   K&  V\        P                  P	                  V4       3NKJ  	  up UUu. uF  w  rV R\        V4       2NK  	  upp4      R,           pV P                  P                  VR4       R # u upi u uppi )NrÑ   ré  Úenvironment)rƒ   r÷   r’   ÚenvironÚgetr   rk  r9  )rž   rù   r“  Úenvs   &   r+   Úcollect_env_varsÚSoSReport.collect_env_varsŸ  s»   € Ø�}�}ˆ}ÙØ�i‰ià;?¿=º=ó /¹=°4Ü�Z‰Z�^‰^˜DÓ!ô /ˆd”r—z‘z—~‘~ dÓ+Ð,Ó.¹=ò /ô
ñ/ñ 7B°tˆtˆf�AÔ*¨3Ó/Ð0Ó1ñ/ò
ó ð õ	ˆð
 	�‰×Ñ  ]Ö3ùò/ùó
s   ®#C
Á&C
ÂC
c                ó8  € \        4       pV P                   EFŒ  w  r#\        VR 7      pVP                   F  pVP	                  \        V4      4       K  	  VP                  '       d%   VP	                  \        VP                  4      4       VP                   F4  pVP	                  \        VR,          RVR,          ,           R7      4       K6  	  VP                   Fb  pVP	                  \        VR,          ^ \        P                  P                  RV P                  4       R,          VR,          4      R7      4       Kd  	  VP                    F@  w  r†pVP	                  \#        V\        P                  P                  RV4      R7      4       KB  	  VP	                  V4       EK�  	  \$        R	R
3\&        RR3\(        RR33p	V	 F©  w  r«p V P+                  4       pV
! V4      P-                  4       pVP/                  RR4      P1                  4       pVP3                  V4       VP5                  4        V P6                  P9                  V\        P                  P                  RV4      R7       K«  	  R#   \:         dœ   pTP<                  \>        9   d{   T P@                  PC                  R4       T P@                  PC                  RTPD                   RT R24       T P@                  PC                  R4       T PG                  ^4        Rp?EKI   Rp?EKP  Rp?ii ; i)r-  Úsrcpathz..Údstpath)rù   ÚhrefÚcmdr]  r}  )rù   Úreturn_coder›  zsos.txtÚtextzsos.jsonÚJSONzsos.htmlÚHTMLúutf-8r  rr  rš  r    r   z while writing z reportN)$r   r   r   ÚalertsÚaddr   Úcustom_textr   Úcopied_filesr   Úexecuted_commandsr   r’   r  r÷   rc  Úcopy_stringsr   r   r   r   rh  ÚunicodeÚencodeÚdecoderŽ  r�  rk  rž  rB  rC  rD  rÒ   r–   rE  rš   )rž   rx   r‘  rÖ  rÇ   Úalertr}  rœ  rØ  Ú
formatlistÚclass_ÚfilenameÚtype_Úfdr  rÝ  s   &               r+   Úgenerate_reportsÚSoSReport.generate_reports©  s{  € Ü“ˆð #×1Õ1‰NˆHÜ 8Ô,ˆGàŸœ�Ø—‘œE %›LÖ)ñ %ð ××ÐØ—‘œD ×!1Ñ!1Ó2Ô3à×&Ô&�Ø—‘œJ¨A¨i­LØ,0°1°Yµ<Õ,?ôAö Bñ 'ð ×-Ô-�Ø—‘œG¨¨U­ÀÜ)+¯©¯©Ø(,Ø(,×(8Ñ(8Ó(:¸8Õ(DØ(+¨F­ó*&ô'ö (ñ .ð "×.Ô.‘	��rØ—‘œK¨QÜ-/¯W©W¯\©\¸$ÀÓ-BôDö Eñ /ð �J‰J�w×ñ3 2ô: ˜i¨&Ð1Ü˜j¨&Ð1Ü˜j¨&Ð1ð
ˆ
ó
 (2Ñ#ˆF˜eð"Ø×'Ñ'Ó)�Ù ›×/Ñ/Ó1�àŸ™ w°	Ó:×AÑAÓC�Ø—‘˜Ô Ø—‘”
Ø—‘×%Ñ% b¬r¯w©w¯|©|¸MØ<Dó0FÐ%ö Gó (2øô ô "Ø—7‘7œoÔ-Ø—K‘K×%Ñ% bÔ)Ø—K‘K×%Ñ%Ø˜AŸJ™J˜< °u°g¸WÐEôGà—K‘K×%Ñ% bÔ)Ø—J‘J˜q—M“Mö .ûð"ús   ÇB"I3É3LÉ>BLÌLc                ój  € V P                    FÑ  w  r VP                  R 4      '       d—   \        P                  ! 4       pVP                  P                  RV4       VP                  4        \        P                  ! 4       pVP                  P                  RV4       VP                  P                  RWC,
          4       K³  V P                  P                  RV 24       KÓ  	  R#   \         d¤   pTP                  \        9   dq   T P                  P                  R4       T P                  P                  RTP                   R24       T P                  P                  R4       T P                  ^4       T P!                  TR 4        Rp?EK€  Rp?i\"         d    T P!                  TR 4        EK¤  i ; i)	r  Úpostproc_startÚpostproc_endÚpostproc_timezSkipping postproc for plugin r    r   z" while post-processing plugin dataN)r   Ú
get_optionr   rP  r‹   rQ  r  r“   rÓ   rB  rC  rD  rÒ   r–   rE  rš   r•  rø   rU  s   &     r+   r  ÚSoSReport.postprocà  sB  € Ø"×1Ô1‰NˆHð<Ø—?‘? :×.Ò.Ü$ŸLšL›N�EØ—M‘M×+Ñ+Ð,<¸eÔDØ—M‘M”OÜ"Ÿ,š,›.�CØ—M‘M×+Ñ+¨N¸CÔ@Ø—M‘M×+Ñ+¨O¸S½[ÖIà—K‘K×$Ñ$Ø7¸°zÐBöDó 2øô ô <Ø—7‘7œoÔ-Ø—K‘K×%Ñ% bÔ)Ø—K‘K×%Ñ%Ø˜AŸJ™J˜<Ð'IÐJôLà—K‘K×%Ñ% bÔ)Ø—J‘J˜q”MØ×%Ñ% h°
×;Ó;ûÜô <Ø×%Ñ% h°
×;Ð;ð<ús+   “B+C$Ã C$Ã$F2Ã/BFÆF2ÆF2Æ1F2c                ó¢  € V'       g   R #  Rp\         P                  ! V4      p\        VR4      ;_uu_ 4       p VP                  V4      pV'       g   MVP	                  V4       K.  RRR4       VP                  4       #   + '       g   i     TP                  4       # ; i  \
         d#    T P                  4         XP                  4       # i ; i)FÚrbNi   )Úhashlibrg  ÚopenÚreadr(  rø   r•  Ú	hexdigest)rž   rk  Ú	hash_nameÚ	hash_sizeÚdigestÚ
archive_fpÚhashdatas   &&&    r+   Ú_create_checksumÚSoSReport._create_checksumø  s­   € ßÙð
	$ØˆIÜ—[’[ Ó+ˆFÜ�g˜t×$Ô$¨
ØØ)Ÿ™¨yÓ9�Hß#ØØ—M‘M (Ö+÷ %ð ×ÑÓ!Ð!÷ %Ö$ð ×ÑÓ!Ð!ûô ô 	$Ø×!Ñ!Õ#Ø×ÑÓ!Ð!ð	$ús4   Œ,B! ¸A?ÁA?Á'B! Á?B	Â
B! ÂB! Â!CÃCc                óÈ   € \        VR ,           V,           RRR7      ;_uu_ 4       pV'       d   VP                  VR,           4       RRR4       R#   + '       g   i     R# ; i)rê  Úwr¡  )ÚencodingrÑ   N)r¼  rŽ  )rž   rk  r¿  ÚchecksumÚfps   &&&& r+   Ú_write_checksumÚSoSReport._write_checksum	  s?   € ä�'˜C•- )Õ+¨S¸7×CÕCÀrßØ—‘˜ D�Ô)÷ D×C×CÒCús   ¥!AÁA!	c           
     ó’  a€ R pR pR pV P                  4        RpV P                  P                  '       dŠ    RV P                  RV P                  RV P
                  RV P                  RV P                  /p\        RVR7      pVP                  V P                  P                  4       4       VP                  4       w  r7RpV P                  4        V P                  e0   V P                  P!                  V P                  P"                  4       V P%                  4        V'       dÏ   \&        P(                  P+                  V P                  V P                  P,                  4      p	XP/                  \&        P(                  P+                  V	R
R4      4       VP/                  \&        P(                  P+                  V	R
R4      4       VP/                  \&        P(                  P+                  V	RR4      4       V P                  P0                  '       d   V P3                  4        V P                  P4                  '       Edg   ^ RIHo ^ RIHp
 V
! V P                  4      p\?        R VPA                  R4       4       4      V PB                  R&   S! \?        V PB                  PE                  4       4      4      pV PF                  PI                  RV 24       \K        V PB                  PM                  4       R RR7      R,          pRP+                  V3R lV 4       4      pV PF                  PI                  RV 24       V PF                  PI                  R4       V PF                  PI                  R4       V PF                  PI                  R4       V PF                  PI                  R4       V P                  PN                  '       g±   \&        PP                  ! ^?4      pV P                  P0                  '       g   \        \        R4      4        V'       d   V P                  PS                  X4       V P                  PU                  V P                  P"                  4      p\&        PP                  ! T4       MéV P                  Pb                  '       g   V P                  Pd                  '       d   V PF                  Pg                  R!4       V P                  P                  4       p\&        P(                  Pi                  V4      pV'       d   XPk                  V4      p \&        P(                  P+                  V P
                  V4      p\&        Pl                  ! VV4       TpR pT P                  PN                  '       EgQ   T'       g   \        R#4       EMY T P                  Po                  4       pT Pq                  TT4      p T Ps                  TTT4       \&        P(                  Pi                  T4      pT'       d"   XPk                  TPu                  R&R'4      4      p\&        P(                  P+                  T P
                  T4      p\&        Pv                  ! T4      pTR(,           T,           pTR(,           T,           p \&        Pl                  ! TT4       Tp \&        Pl                  ! TT4       T P                  Py                  YTTTR+7       MT P                  Py                  YTTR+7       T P                  Pz                  '       g9   T P                  P|                  '       g   T P                  P~                  '       dÝ   T P                  PN                  '       g¤    RT P                  RT P                  RT P
                  RT P                  RT P                  /p\�        T P‚                  T P„                  T P†                  RTTR,7      pTP                  4        T PF                  PI                  \        R-4      4       MR/pT PF                  P‰                  T4       \Š        PŒ                  ! 4        T PŽ                  '       d   T PŽ                  P                  4        T P                  '       dE   \&        P(                  P‘                  T P                  4      '       d   \“        T P                  4       R#   \         d#   p\        \        R	T 24      4        R p?ELR p?ii ; i  \V         d„   p\        R4       \        \        RTPX                   R T P                  P                  4        24      4       \        R4       TPZ                  \\        9   d   T P_                  ^4        R p?ELR p?i\         d8    T P                  P`                  '       d   h  \&        PP                  ! T4       R# i ; i  \&        PP                  ! T4       i ; i  \V         d    \        \        R"T 24      4        R# i ; i  \         d    \        \        R$4      4        R# i ; i  \V         d    \        \        R%T 24      4        ELqi ; i  \V         d    \        \        R)T 24      4        R# i ; i  \V         d    \        \        R*T 24      4        ELéi ; i  \         d*   pT PF                  P‰                  R.T 24        R p?EL®R p?ii ; i)0NFr{   r`  Úsys_tmprá  r‹   T)Úin_placeÚhook_commonsz#ERROR: Unable to obfuscate report: rq  r™  rœ  rr  zmanifest.json)Úget_human_readable)ÚPathc              3   óT   "  € T F  qP                  4       P                  x € K   	  R # 5irf  )ÚlstatÚst_size)rë   r}  s   & r+   rí   Ú'SoSReport.final_work.<locals>.<genexpr>F  s   é € ð ?IÙ/G¨!—G‘G“I×%Ö%Ó/Gùs   ‚&(z**/*Úsos_logs_reportszNEstimated disk space requirement for whole uncompressed sos report directory: c                 ó   € V ^,          # )r4  ré   )Úxs   &r+   Ú<lambda>Ú&SoSReport.final_work.<locals>.<lambda>M  s   € ¨a°®dr-   )ÚkeyÚreverse:Né   Nz,  c              3   óF   <"  € T F  w  rV R S! V^ R7       2x € K  	  R# 5i)z: )Ú	precisionNré   )rë   rì   ÚvrÑ  s   &  €r+   rí   rÖ  N  s.   øé € ð  8Ù,6¡D Að $% # RÑ(:¸1ÈÔ(JÐ'KÕ LÛ,6ùs   ƒ!zFive biggest plugins:  r    z>Please note the estimation is relevant to the current options.z€Be aware that the real disk space requirements might be different. A rule of thumb is to reserve at least double the estimation.zCreating compressed archive...r   z while finalizing archive zQ
Unable to encrypt when using --build. Encryption is only available for archives.zError moving directory: z Creating archive tarball failed.z:Error generating archive checksum after archive creation.
z!Error writing checksum for file: z.tarz-obfuscated.tarrê  zError moving archive file: zError moving checksum file: )rO   )rŸ   r    rz   rÏ  rÐ  rk  zUploaded archive successfullyzUpload attempt failed: zEUnable to upload archive when using --build as no archive is created.)JÚgenerate_manifest_tag_summaryr�   r:   r{   r`  rÎ  r‹   r   Úset_target_pathrk  Úget_archive_pathÚexecuterø   r…  rÔ   rŸ  Úadd_final_manifest_dataÚcompression_typeÚ_obfuscate_upload_passwordsr’   r  r÷   Ú_nameÚobfuscate_filer�  Úadd_ui_log_to_stdoutrB   Úsos.utilitiesrÑ  ÚpathlibrÒ  Úsumr  r†   râ  rÒ   rÓ   Úsortedr$   r6   ÚumaskÚrename_archive_rootÚfinalizerB  rE  rC  rD  rš   r”   Úencrypt_passÚencrypt_keyrõ   ÚbasenameÚobfuscate_stringÚrenameÚget_preferred_hash_namerÄ  rË  r  ÚstatÚdisplay_resultsrc   rd   rk   r   rŸ   r    rz   r–   r—   r˜   r™   r  r   )rž   rk  Ú	directoryrO   Údo_cleanrÐ  ÚcleanerÚ_pathsr  Ú_dirrÒ  Útmpdir_pathÚ_sumÚ
bigpluginsÚbp_outÚ	old_umaskrÝ  Údir_nameÚ	final_dirrÉ  r¿  Úbase_archiveÚ
final_nameÚarchivestatÚarchive_hashÚ
final_hashÚuploaderr¡   rÑ  s   &                           @r+   Ú
final_workÚSoSReport.final_work  sK  ø€ ØˆØˆ	Øˆà×*Ñ*Ô,ð ˆØ�9‰9�?�?ˆ?ðFà˜dŸk™kØ˜dŸk™kØ˜tŸ|™|Ø˜tŸy™yØ §¡ð �ô %¨dÀÔN�Ø×'Ñ'¨¯©×(EÑ(EÓ(GÔHà#*§?¡?Ó#4Ñ �Ø�ð 	×ÑÔØ�=‰=Ò$Ø�L‰L×0Ñ0°·±×1KÑ1KÔLà×(Ñ(Ô*çÜ—7‘7—<‘< §¡¨T¯\©\×-?Ñ-?Ó@ˆDØ×"Ñ"¤2§7¡7§<¡<°°jÀ)Ó#LÔMØ×"Ñ"¤2§7¡7§<¡<°°jÀ(Ó#KÔLØ×"Ñ"Ü—G‘G—L‘L  }°oÓFôð �9‰9�?�?ˆ?Ø×%Ñ%Ô'ð �9‰9×"×"Ñ"Ý8Ý$ñ ˜tŸ{™{Ó+ˆKÜ;>ñ ?IØ/:×/?Ñ/?ÀÔ/Gó?Ió <IˆD×$Ñ$Ð%7Ñ8ñ &¤c¨$×*BÑ*B×*IÑ*IÓ*KÓ&LÓMˆDØ�K‰K×Ñð CØCGÀ&ðJô Kä × 8Ñ 8× >Ñ >Ó @Ù$2¸DôBØBDõFˆJà—Z‘Zô  8Ù,6ó 8ó 8ˆFà�K‰K×ÑÐ6°v°hÐ?Ô@Ø�K‰K×Ñ˜RÔ Ø�K‰K×Ñð 0ô 1à�K‰K×Ñð Gô Hð �K‰K×Ñ˜RÔ ð �y‰y��ˆÜŸš ›ˆIØ—9‘9—?—?�?Ü”aÐ8Ó9Ô:ð$ßØ—L‘L×4Ñ4°WÔ=ØŸ,™,×/Ñ/Ø—I‘I×.Ñ.ó0�ô —’˜Õ#à�y‰y×%×%Ð%¨¯©×)>×)>Ð)>Ø—‘×#Ñ#ð %0ô 1ð Ÿ™×5Ñ5Ó7ˆIÜ—w‘w×'Ñ'¨	Ó2ˆHßØ"×3Ñ3°HÓ=�ðÜŸG™GŸL™L¨¯©°xÓ@�	Ü—	’	˜) YÔ/Ø%�	ð
 ˆà�y‰y��‰÷ ÜÐ8Ö9ð!à $§¡× CÑ CÓ E�IØ#×4Ñ4°W¸iÓH�Hð
LØ×(Ñ(¨°)¸XÔFô  "Ÿw™w×/Ñ/°Ó8�ßØ#*×#;Ñ#;Ø(×0Ñ0°Ð9JÓKó$�Lô  ŸW™WŸ\™\¨$¯,©,¸ÓE�
ä Ÿgšg gÓ.�à&¨�}¨yÕ8�Ø'¨#Õ-°	Õ9�
ð!Ü—I’I˜g zÔ2Ø(�Gð"LÜ—I’I˜l¨JÔ7ð —‘×+Ñ+¨GÀØ,7À(ð ,õ Lð �K‰K×'Ñ'¨¸HØ19ð (ô ;ð �I‰I××Ð §	¡	× 4× 4Ð 4Ø—9‘9×/×/Ð/Ø—9‘9—?—?�?ðGà  $§+¡+Ø  $§+¡+Ø! 4§<¡<Ø! 4§9¡9Ø" D§M¡Mð$�Lô  )°·±Ø.2¯i©iØ15·±Ø26Ø6BØ18ô :�Hð ×$Ñ$Ô&Ø—K‘K×$Ñ$¤QÐ'FÓ%GÕHð-�à—‘×!Ñ! #Ô&ô 	×ÒÔØ××ÐØ×Ñ×$Ñ$Ô&Ø�;�;ˆ;œ2Ÿ7™7Ÿ=™=¨¯©×5Ò5Ü�4—;‘;Ôáøô ô FÜ”aÐ=¸c¸UÐCÓD×EÒEûðFûôz ô "Ü�b”	Ü”a˜!˜AŸJ™J˜<Ð'AØŸ<™<×8Ñ8Ó:Ð;ð=ó >ô ?ä�b”	Ø—7‘7œoÔ-Ø—J‘J˜q”MÿùÜô Ø—9‘9—?—?�?ØØä—’˜Ö#ðûô
 —’˜Õ#ûô ô Ü”aÐ2°9°+Ð>Ó?Ô@Úðûô  !ô !Üœ!ð 2ó 3ô 4â ð!ûô ô LÜœ!Ð?À¸yÐIÓJ×KðLûô* ô !Üœ!Ð9¸'¸ÐCÓDÔEÚ ð!ûô$ ô LÜœ!Ð:¸<¸.ÐIÓJ×KðLûô8 !ô GØ—K‘K×%Ñ%Ð(?À¸uÐ&E×FÒFûðGúsÐ   ·Bb, ÐAc ÔAg Ö,g1 Ö8h Ù4i  Úi) ÝB!j â,câ7cãcãf*ã'A8e%åf- å%f*å2f*æf*æf- æ)f*æ*f- æ-gç"g.ç-g.ç1hèhè"h=è<h=é "i&é%i&é)"jêjêkêkëkc                óv   € V P                   '       g'   V P                  P                  \        R 4      4       R# R# )zno valid plugins were enabledFT)r   r“   r–   rÔ   rÕ   s   &r+   Úverify_pluginsÚSoSReport.verify_pluginsè  s,   € Ø×"×"Ð"Ø�K‰K×ÑœaÐ ?Ó@ÔAÙÙr-   c                óÊ  € V P                   P                  RV P                  4       V P                   P                  RV P                  '       d   V P                  P                  MR4       V P                   P                  RV P                  P                  4       Rp\        R4      '       d]   \        R\        P                  ! 4        24      pVR,          ^ 8X  d.   VR	,          P                  4       ^ ,          P                  R
4      pV P                   P                  R4       V P                   P                  P                  RV4       V P                   P                  P                  R\        P                   ! ^ 4      4       V P                   P                  R4       V P"                  P%                  4        F*  w  r4V P                   P"                  P                  W44       K,  	  V P                   P                  RV P                  P&                  4       V P                   P                  RV P                  P(                  4       V P                   P                  R4       R# )zWAdd 'global' data to the manifest, that is any information that is
not plugin-specific
r…   r[   Úunsetr^   rS  Úionicez
ionice -p r  r  r  ÚpriorityÚio_classÚnicenessrã   Úenabled_pluginsÚdisabled_pluginsrÇ  N)rŽ   rQ  r…   r[   rù   Úadd_listr�   r^   r   r
   r’   Úgetpidr  rV  r�   r  Únicerã   r$   rD   rS   )rž   Ú	_io_classÚ_iorÜ  rÍ   s   &    r+   Úadd_manifest_dataÚSoSReport.add_manifest_dataî  s›  € ð 	�‰× Ñ  ¨D¯L©LÔ9Ø�‰× Ñ  ¸t¿{¿{¸{¨4¯;©;×+;Ò+;Ø!(ô	*à�‰×Ñ 
¨D¯I©I×,>Ñ,>Ô?àˆ	Ü˜×"Ò"Ü(¨:´b·i²i³k°]Ð)CÓDˆCØ�8�} Ô!Ø �M×/Ñ/Ó1°!Õ4×:Ñ:¸3Ó?�	Ø�‰×"Ñ" :Ô.Ø�‰×Ñ×)Ñ)¨*°iÔ@Ø�‰×Ñ×)Ñ)¨*´b·g²g¸a³jÔAà�‰×"Ñ" 9Ô-ØŸ,™,×,Ñ,Ö.‰JˆCØ�N‰N×"Ñ"×,Ñ,¨SÖ8ñ /à�‰×ÑÐ 1°4·9±9×3KÑ3KÔLØ�‰×ÑÐ 2°D·I±I×4JÑ4JÔKØ�‰×"Ñ" 9Ö-r-   c           	     ór  a€ RV3R llp/ oV P                   P                   FU  pVP                   F  pV! V4       K  	  VP                   F  pV! VR4       K  	  VP                   F  pV! V4       K  	  KW  	  V P                   P                  R\        \        SP                  4       4      4      4       R# )a;  Add a section to the manifest that contains a dict summarizing the
tags that were created and assigned during this report's creation.

This summary dict can be used for easier inspection of tagged items by
inspection/analyzer projects such as Red Hat Insights. The format of
this dict is `{tag_name: [file_list]}`.
c                 óJ  <€ V R ,           F�  pW,          '       d	   V'       g   K   SV,          pTP                  \        W,          \        4      '       d	   W,          MW,          .4       \	        \        \        V4      4      4      SV&   Kƒ  	  R#   \          d    . p Lqi ; i)ÚtagsN)rö  r«   rõ  r  rï  r  )ÚentrÜ  Útagr  Útag_summarys   &&  €r+   Úcompile_tagsÚ=SoSReport.generate_manifest_tag_summary.<locals>.compile_tags  s„   ø€ Ø˜6—{�{�Ø—x”x§sÙðØ& sÕ+�Dð —‘Ü *¨3­8´T× :Ò :�C–HÀÅÀ
ôô $*¬$¬s°4«y«/Ó#:�˜CÓ ó #øô
  ô Ø’Dðús   §	BÂB"Â!B"Úfiles_copiedr&  N)Úfilepath)	rŽ   rÇ  ÚcommandsÚfilesÚcollectionsrQ  Údictrï  r$   )rž   r'  rÖ  rœ  Ú_fileÚ
collectionr&  s   &     @r+   râ  Ú'SoSReport.generate_manifest_tag_summary  s–   ø€ ÷	;ð ˆØ—N‘N×*Ô*ˆDØ—}”}�Ù˜SÖ!ñ %àŸœ�Ù˜U NÖ3ñ $à"×.Ô.�
Ù˜ZÖ(ó /ñ +ð 	�‰× Ñ  Ü!%¤f¨[×->Ñ->Ó-@Ó&AÓ!Bö	Dr-   c           	     ó   € V P                   P                  R \         RRP                  V P                  4       R24       V P
                  P                  P                  4       pR \         RV P
                  P                   RRP                  V4       R2pV P                   P                  V4       V P                   P                  R \         RRP                  V P                  P                  4       4       24       R# )	Ú[z:setup] executing 'sos r   rï   z:setup] using 'z' preset defaults (r|   z:setup] effective options now: N)	r“   rÓ   Ú__name__r÷   rz   r[   r�   r%  rù   )rž   Úpreset_argsr¡   s   &  r+   Ú_merge_preset_optionsÚSoSReport._merge_preset_options'  sØ   € à�‰×Ñ˜1œX˜Jð '!Ø!$§¡¨$¯,©,Ó!7Ð 8¸ð;ô 	<ð —k‘k×&Ñ&×.Ñ.Ó0ˆØ”8�*˜O¨D¯K©K×,<Ñ,<Ð+=ð >Ø—H‘H˜[Ó)Ð*¨!ð-ˆà�‰×Ñ˜Ôð 	�‰×Ñ˜1œX˜JÐ&EØŸH™H T§Y¡Y×%6Ñ%6Ó%8Ó9Ð:ð<ö 	=r-   c                ó  €  V P                   P                  V P                  4       4       V P                  4        V P	                  4        V P                  4        V P                  4        V P                  4        V P                  4        V P                  P                  '       d   V P                  4        \        hV P                  P                  '       d   V P                  4        \        hV P                  P                  '       d   V P                  4        \        hV P                  P                  '       d,   V P                  V P                  P                  4       \        hV P                  P                  '       d,   V P                  V P                  P                  4       \        hV P!                  4       '       g   \        hV P#                  4        V P%                  4        V P'                  4        V P)                  4        V P+                  4        V P                  P,                  '       g   V P/                  4        V P                  P0                  '       g   V P3                  4        V P                  P4                  '       g-   V P6                  P9                  R 4       V P;                  4        MV P6                  P9                  R4       V P=                  4        V P?                  4       #   \@         dM    T P                  PB                  '       d   h \D        PF                  ! RR4      R8X  g   T PI                  4         M«\J         d@    T P6                  PM                  R4       T PI                  4        T PO                  ^‚4        Mc\         dW   p\D        PF                  ! RR4      R8X  g   T PI                  4        \P        PR                  ! TPT                  4        Rp?MRp?ii ; iT PO                  ^4       R# )z*Starting post-processing of collected dataz*Skipping post-processing of collected dataÚSOS_TEST_LOGSNr´   z
Exiting on user cancelF)+r{   Úset_commonsrc  rÞ  ræ  r6  rù  r   r  r�   rJ   Ú
SystemExitrL   rK   rr   rs   r  r1  rH  r  rN  rg  rV   r–  rU   r±  rW   rÒ   rÓ   r  r\  r  rB  r”   r’   ÚgetenvÚcleanupr3  r–   rš   rv  ÚexitÚcoderG  s   & r+   rå  ÚSoSReport.execute6  s­  € ð9	Ø�K‰K×#Ñ# D×$4Ñ$4Ó$6Ô7Ø×ÑÔØ×!Ñ!Ô#Ø×&Ñ&Ô(Ø×ÑÔ Ø×+Ñ+Ô-Ø×$Ñ$Ô&à�y‰y×%×%Ð%Ø×!Ñ!Ô#Ü Ð Ø�y‰y×&×&Ð&Ø×"Ñ"Ô$Ü Ð Ø�y‰y×%×%Ð%Ø×!Ñ!Ô#Ü Ð Ø�y‰y×#×#Ð#Ø—‘ §	¡	× 4Ñ 4Ô5Ü Ð Ø�y‰y×#×#Ð#Ø—‘ §	¡	× 4Ñ 4Ô5Ü Ð à×&Ñ&×(Ò(Ü Ð à�J‰JŒLØ�L‰LŒNØ×"Ñ"Ô$Ø�J‰JŒLØ�L‰LŒNØ—9‘9×(×(Ð(Ø×%Ñ%Ô'Ø—9‘9×&×&Ð&Ø×%Ñ%Ô'Ø—9‘9×(×(Ð(Ø—‘× Ñ Ð!MÔNØ—‘•à—‘× Ñ Ð!MÔNØ�L‰LŒNØ—?‘?Ó$Ð$øäô 	Ø�y‰y��ˆØÜ—9’9˜_¨dÓ3°vÔ=Ø—‘”ùÜ ô 	Ø�K‰K×ÑÐ8Ô9Ø�L‰LŒNØ�J‰J�sŽOÜô 	Ü—9’9˜_¨dÓ3°vÔ=Ø—‘”Ü�HŠH�Q—V‘V×Ñûð	úð
 	�
‰
�1Œásq   ‚B$K6 Â'1K6 Ã1K6 Ä1K6 Ä=AK6 ÆA K6 ÇA1K6 È7+K6 É#+K6 ÊA&K6 Ë6&O4Ì-O4ÍO4Í=O4ÎO4ÎO4ÎAO/Ï/O4)r„   rŠ   r�   r]  rã   rƒ   r†   r   r^  rT   rÊ  r_  r^   rx  rŽ   r_  r`  r€   r…   rf  )NN)rS  )r    r    )Mr4  Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r=   Úroot_requiredr   Úarg_defaultsr~   Úclassmethodr¿   rÎ   r‡   r�   r›   rß   rÞ   rœ   rà   rá   r)  r*  r+  r   râ   rc  rh  rm  r�   rˆ   Ústaticmethodru  r•  rŸ  r§  r¬  r²  r¶  r¤  r¼  r¿  rÞ  ræ  rù  r   r  r  r  rJ   rL   rK   rr   rs   r1  r�  rH  rN  r\  rg  rb  rp  r…  r–  r±  r  rÄ  rË  r  r  r  râ  r6  rå  Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r¢   Ú__classdict__s   @@r+   r3   r3   R   s¤  ù‡ € ñð <€DØ€Mð@Ø�eð@à�Eð@ð 	�ð@ð 	�2ð	@ð
 	�&ð@ð 	�ð@ð 	˜Vð@ð 	˜Uð@ð 	�ð@ð 	�2ð@ð 	˜2ð@ð 	˜rð@ð 	�5ð@ð 	˜ð@ð 	˜ð@ð  	˜"ð!@ð" 	˜ñ#@ð$ 	�Bð%@ð& 	˜ð'@ð( 	�Bð)@ð* 	�ð+@ð, 	˜ð-@ð. 	˜ð/@ð0 	˜ð1@ð2 	�Bð3@ð4 	˜ð5@ð6 	Ð6ð7@ð8 	˜ð9@ð: 	�bð;@ð< 	˜ð=@ð> 	�dð?@ð@ 	�UðA@ðB 	�uðC@ðD 	�uòE@ðF 	�UðG@ðH 	�ðI@ðJ 	˜ðK@ðL 	�&ðM@ðN 	˜/ðO@ðP 	�ðQ@ðR 	�BðS@ðT 	�ðU@ðV 	�%ðW@ðX 	 ðY@ðZ 	�Rð[@ð\ 	�%ð]@ð^ 	�dð_@ð` 	˜Dða@ðb 	�tðc@ðd 	�tðe@ðf 	˜ñg@ðh 	 Ø˜6Ø˜dØ˜DØ˜DØ Ø Ø! 4Ø˜Ø�bØ�bØ˜kñ@€LõD%%ðN ñT1ó ðT1ðl ñ4ó ð4òlLò	
òò>ò,ò.
ò
ò>	òô(0
òdò,ò ò
ò(ò2ò
$ò
'ð ñó ðô
7ò
KòKò5ò;ò
;ò
;ôòòMò^)ò;&òzò=ò
ò6òG,òR,ò,!ô0ò:ò(!ò Aòò29ò>4òò0/òb5ònò4ò5"òn<ò0"ò"*òWòrò.ò2Dò@=÷>ò >r-   r3   )Frç   )r9   ÚalwaysÚnever>   ÚNO_PROXYÚ	ALL_PROXYÚ
HTTP_PROXYÚ
http_proxyÚHTTPS_PROXYÚhttps_proxy)7rv  r‚  r’   rC  r—   r»  r†  r   r  Úconcurrent.futuresr   r   rr  Úshutilr   Úsos.report.pluginsrÆ  rì  r   r   r	   r
   r   r   r   r   r   rÔ   r   Úsos.componentr   Úsos.policiesÚsos.report.reportingr   r   r   r   r   r   r   r   r   r   Úsos.cleanerr   Ú
sos.uploadr   ÚENOSPCÚEROFSrD  r,   r1   r•   r‚   r3   ré   r-   r+   Ú<module>r_     s    ðó Û Û 	Û Û Û Û 
Ý Û å 1Ý BÝ ã ÷@÷ @ó @õ Ý Ý &Û ÷:÷ :÷ :õ #Ý  ð —<‘< §¡Ð-€ôò$>ò +€òÐ ôb�ö br-   