%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/__pycache__/__init__.cpython-312.pyc

�

i��d33��\�ddlZddlZddlZddlZddlZddlmZddlZddlZddl	m
Z
mZmZm
Z
mZmZmZddlmZddlZddlmZmZddlZddlmZddlmZddlmZddlZdd	lmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(dd
l)m*Z*ejVejXfZ-dd�Z.d�Z/gd
�Z0Gd�de�Z1y)�N)�datetime)�ImporterHelper�SoSTimeoutError�bold�sos_get_command_output�TIMEOUT_DEFAULT�listdir�
is_executable)�rmtree)�ThreadPoolExecutor�TimeoutError)�_sos)�__version__)�SoSComponent)
�Report�Section�Command�
CopiedFile�CreatedFile�Alert�Note�PlainTextReport�
JSONReport�
HTMLReport)�
SoSCleanerc�(�g}|}|rt|�dz}nd}|D]C}t|�t|�zt|�zdkDr|j|�|}||z|z}�E|t|�d|k(r|dt|�}|j|�|S)N� ��H)�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��d�{�S� ��	!�
�S��X�I�J��3���J�c�#�h�Y���	�L�L����L�c�L�tjdj|�d�S)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{:<014s}z%Y%m%d%H%M%S)r�strptime�format)�dates r*�
_format_sincer1;s"��
���Z�.�.�t�4�n�E�Er,)�auto�always�neverc���eZdZdZdZdZidd�dd�dd�dd	�d
d�dd�d
d�dd�dd	�dg�dg�dd�dd�dd�dg�dd�dg�idd�dg�dd	�dd�dd�dd�d d!�d"d�d#d$�d%g�d&g�d'g�d(d�d)d�d*d�d+d�d,d��id-d	�d.g�d/d�d0e�d1e�d2g�d3d�d4d�d5d�d6g�d7d�d8d�d9d�d:d�d;d�d<d�d=d��dd	d	d>��Z�fd?�Ze	d@��Z
e	dA��ZdB�ZdC�Z
dD�ZdE�ZdF�ZdG�ZdH�ZdI�ZdJ�Zd}dK�ZdL�ZdM�ZdN�ZdO�ZdP�ZdQ�ZdR�ZedS��Zd~dT�ZdU�Z dV�Z!dW�Z"dX�Z#dY�Z$dZ�Z%dd[�Z&d\�Z'd]�Z(d^�Z)d_�Z*d`�Z+da�Z,db�Z-dc�Z.dd�Z/de�Z0df�Z1d�dg�Z2dh�Z3di�Z4dj�Z5dk�Z6dl�Z7dm�Z8dn�Z9do�Z:dp�Z;dq�Z<dr�Z=ds�Z>dt�Z?du�Z@dv�ZAdw�ZBdx�ZCdy�ZDdz�ZEd{�ZFd|�ZG�xZHS)��	SoSReportzaRun 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�chrootr2�clean�container_runtime�keep_binary_files�desc�domains�disable_parsers�dry_run�
estimate_only�experimental�enable_plugins�journal_size�d�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�
add_preset�
del_presetc����tt|�|||�g|_g|_g|_t
�|_d|_||_	d|_
d|_i|_|j�|j�|jj!�|_|j$j&j)d�|_|j,j|j.dk7r�|jj1|j,j�|_|jsft2j4j7d|j,jz�|jj9�|_d|j,_|js|jj9�|_|j,j=|jj,�|j?|j,�|_tA|jj,d�rR|jj,jBdkDr/|jE|jj,jB�|jG�d}|jj|_
|j,jrd	}n9|jjI�r|jtJjLk7rd
}|jNjQd|j�d|�d
��|j,jRtTvrq|jNjWd|j,jRz�tYjZ�|j\j_�|jad�|jc�|je�|jg�y)N�/�reportr^zUnknown preset: '%s'
T�	verbosityr�default�cmdline�policyzset sysroot to 'z' (�)zinvalid chroot mode: %s�)4�superr6�__init__�loaded_plugins�skipped_plugins�all_options�set�env_vars�archive�_args�sysrootr^�estimated_plugsizes�print_header�
_set_debugrv�is_root�_is_root�manifest�
components�add_section�	report_md�opts�arg_defaults�find_preset�sys�stderr�write�probe_presetrM�merge�apply_options_from_cmdline�hasattrrs�set_loggers_verbosity�_set_directories�in_container�osr%�soslog�debugr;�chroot_modes�error�logging�shutdown�
tempfile_utilr<�_exit�_check_container_runtime�_get_namespaces�_get_hardware_devices)�self�parser�argsru�msg�	__class__s     �r*rzzSoSReport.__init__�s����
�i��'���g�>� ���!���������
������
�������#%�� ������������+�+�-��
����1�1�=�=�h�G����9�9���t�0�0��:�:��+�+�1�1�$�)�)�2B�2B�C�D�K��;�;��
�
� � �!9�D�I�I�<L�<L�!L�M�"�k�k�6�6�8���)-��	�	�&��{�{��+�+�2�2�4�D�K��	�	������(�(�)��3�3�D�I�I�>��	��4�;�;�#�#�[�1���� � �*�*�Q�.��&�&�t�{�{�'7�'7�'A�'A�B��������{�{�*�*����9�9����C�
�[�[�
%�
%�
'�D�L�L�B�F�F�,B��C���������c�J�K��9�9���<�/��K�K���7�$�)�)�:J�:J�J�K��������$�$�&��J�J�q�M��%�%�'������"�"�$r,c
�
�|jdd�}|jdddddd�	�|jd
dddd�	�|jd
dddtd��|jddddd�	�|jdddd��|jdddddd�	�|jddd� �|jd!d"tdd#d$�%�|jd&dd'�(�|jd)dd*�(�|jd+dd,dd-�	�|jd.d/d0d1td2g�3�|jd4td5d6d7�8�|jd9d:d;d0d<td=g�3�|jd>d?dd@dA��|jdBdCddDddE�	�|jdFddG�(�|jdHddIddJ�	�|jdKddLtdMdN�O�|jdPdddQ�R�|jdSddT� �|jdUdVd0dWtdXg�3�|jdYddZdd[�	�|jd\dd]dd^�	�|jd_dd`dda�b�|jdctdd#dd�%�|jdedfd0dgtdhg�3�|jdidtdjd�k�|jdlddm� �|jdnddo� �|jdpdqdrd0dstgdt�O�|jdugd0dvdw�x�|jdygd0dzd{�x�|jd|dd}dd~�	�|jddd�dd��	�|jd�ddd��R�|jd�dd�� �|jd�dd�� �|jd�dd�� �|jd�dd�� �|jd�dgd��d����|jd�ddd����|jd�dgd��d����|j�}|jd�tdd����|jd�tdd����|jd�d��}|jd�d�d�d�ddd����|jd�d�gd0d����|jd�d0gd�d����|jd�d0gd�d����|jd�dd�d����|jd�ddd�d����|jd�d�d�d����|jd�ddd�d��x�|jd�d�gd0d����y)�NzReport Optionsz.These options control how report collects dataz-az--alloptions�
store_truer7Fz%enable all options for loaded plugins)�action�destrt�helpz
--all-logsr8z-collect all available logs regardless of sizez--since�storerbzbEscapes archived files older than date. This will also affect --all-logs. Format: YYYYMMDD[HHMMSS])r�r�rt�typer�z--buildr9z;preserve the temporary directory and do not package resultsz	--case-idr:zspecify case identifier)r�r�r�z-cz--chrootr;r2zHchroot executed commands to SYSROOT [auto, always, never] (default=auto)z--container-runtimezLDefault container runtime to use for collections. 'auto' for policy control.)rtr�z--descz
--descriptionrzDescription for a new preset)r�r�rtr�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--experimentalrDzenable experimental pluginsz-ez--enable-plugins�extendrEzenable these plugins)r�r�r�r�rtz--journal-sizerGrFz+limit the size of collected journals in MiB)r�rtr�r�z-kz--plugin-optionz
--plugoptsrJz7plugin options in plugname.option=value format (see -l)z--labelz--namerKz"specify an additional report labelz-lz--list-pluginsrLz)list plugins and available plugin optionsz--list-presetsz#display a list of available presetsz--list-profilesrNzBdisplay a list of available profiles and plugins that they includez
--log-sizerOrPz6limit the size of collected logs (not journals) in MiB)r�r�r�rtr�z--low-priorityz(generate report with low system priority)r�rtr�z--namespaceszDlimit number of namespaces to collect output for - 0 means unlimitedz-nz--skip-pluginsrVzdisable these pluginsz--no-reportrXz disable plaintext/HTML reportingz
--no-env-varsrYz$Do not collect environment variablesz
--no-postprocrZzDisable all post-processing)rtr�r�r�z--notezBehaviour notes for new presetz-oz--only-pluginsr]zenable these plugins onlyz--presetzA preset identifier)r�r�r�rtz--plugin-timeoutzset a timeout for all pluginsz
--cmd-timeoutz%set a command timeout for all pluginsz-pz	--profilez
--profilesraz)enable plugins used by the given profilesz--skip-commandsrTzdo not execute these commands)rtr�r�r�z--skip-filesrUzdo not collect these filesz--verifyrcz+perform data verification during collectionz--allow-system-changesrdzJRun 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-method)r2�put�postz HTTP method to use for uploading)rt�choicesr�z--upload-no-ssl-verifyz'Disable SSL verification for upload url)rtr�r�z--upload-protocol)r2�https�ftp�sftpz$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 presetzCleaner/Masking Optionsz7These options control how data obfuscation is performedz--cleanz	--cleanerz--maskr<zObfuscate sensitive information)r�rtr�r�z	--domainsr@z$Additional domain names to obfuscatez--disable-parsersrAzCDisable specific parsers, so that those elements are not obfuscated)r�rtr�r�z
--keywordsrHzList of keywords to obfuscatez--keyword-filerIz&Provide a file a keywords to obfuscate)rtr�r�z--no-updater[z%Do not update the default cleaner mapz
--map-filerRrSz;Provide a previously generated mapping file for obfuscation)r�rtr�z--keep-binary-filesr>zGKeep unprocessable binary files in the archive instead of removing themz--usernamesrezList of usernames to obfuscate)�add_argument_group�add_argumentr1�str�int�add_mutually_exclusive_group)�clsr��
report_grp�
preset_grp�cleaner_grps     r*�add_parser_optionszSoSReport.add_parser_options�si���.�.��<��
�	����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�	��� 3�V�(H�%K�	 �	M�
 �<�<�>�
�����S��%J�	 �	L�����S��%K�	 �	M��/�/�%�E�
��	� � ��K��&-�).�|�&G�	!�	I�	� � ��9�b�(0�&L�	!�	N�	� � �!4�X�)+�2C�(K�	!�	M�	� � ��h��&0�&E�	!�	G�	� � �!1�4�&4�&N�	!�	P�	� � ��|�).�[�&M�	!�	O�	� � ��J�)K�(?�	!�	A�	� � �!6��(4�&9�'I�	!�	J�
	� � ��[�"�(0�&F�	!�	Hr,c�0�|jd�|jd�|jd�|jd�|jd��}|jd�|jd�|jd	��}|jd
td��dtd
����|jdtd�z�dddd�}d}|D](}|jdj	|||�d���*|j|�y)NzSoS 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.zHow Collections Are Determined)�titlez�SoS report performs it's 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.aEPlugins 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 examplepolicies can alter where the --upload option defaults to or functions.zSee Alsoz5For information on available options for report, see zsos report --helpz and zman sos-reportz.The following %s sections may be of interest:
zsos helpz'Information on the plugin design of sosz!Information on a specific $pluginz+How sos operates on different distributions)zreport.pluginszreport.plugins.$plugin�policiesrz		{:<36}{}F)r()�	set_title�add_textr�rr/)r��section�psec�ssec�
help_lines�helpln�lns       r*�display_helpzSoSReport.display_help�s<�����4�5����
.�	
�	���
'�	
�	���
<�	
��"�"�)I�"�J���
�
�
�	
�	
�
�
�
�	
��"�"��"�4���
�
��'�(�$�/?�*@�
B�	
�	
�
�
�G��Z�(�)�	*�H�&I�E�
�
�
���	)�B��M�M�,�-�-�b�*�R�.�A�"'�
�
)�	)�	
�
�
�f�r,c�B�tdtdt�d��z�y)Nz
%s
zsosreport (version rw)�print�_r�r�s r*r�zSoSReport.print_header�s��
�h��{�D�E�E�Fr,c��|j�|j�d�|j�|j�d�|_y)N)�block�fibre)�storage�network�namespaced_network)�_get_block_devs�_get_fibre_devs�_get_network_devs�_get_network_namespace_devices�devicesr�s r*r�zSoSReport._get_hardware_devices�sD���-�-�/��-�-�/���-�-�/�"&�"E�"E�"G�

��r,c��|jjdk7�rm|jjj�}|dvr-i|j_|j
j
d�y|jjs!d|z}|j
j|�y||jjj�vrKdjd�|jjj�D��}td|�d|����|jj||jjd	<|j
j
d
|jjd	jz�yy)a[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).
        r2)�none�off�diabledz0Disabled all container runtimes per user option.zZWARNING: No container runtimes are active, ignoring option to set default runtime to '%s'
�, c3�*K�|]}|dk7r|���
y�w)rtN���.0�ps  r*�	<genexpr>z5SoSReport._check_container_runtime.<locals>.<genexpr>�s����"5��%&�)�^�#$�"5�s�zCannot use container runtime 'z1': no such runtime detected. Available runtimes: rtz%Set default container runtime to '%s'N)r�r=�lowerrv�runtimesr��info�warning�keys�join�	Exception�name)r��crunr��valids    r*r�z"SoSReport._check_container_runtime�sE���9�9�&�&�&�0��9�9�.�.�4�4�6�D��1�1�')����$���� � �F���[�[�)�)�A�CG�H�����#�#�C�(��T�[�[�1�1�6�6�8�8��	�	�"5�T�[�[�-A�-A�-F�-F�-H�"5�5���#'��!0�1�1�37�+�+�2F�2F�t�2L����$�$�Y�/���� � �;��k�k�*�*�9�5�:�:�;��'1r,c�"�	g}gd�}|D]L}tjjd|z�s�&|jt	jd|z���N|S#t
$r*}|jjd|z�gcYd}~Sd}~wwxYw)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.
        )�fc_host�fc_transport�fc_remote_ports�	fc_vportsz
/sys/class/%sz/sys/class/%s/*z#Could not get fibre device list: %sN)r��path�isdirr��globr�r�r�)r��devs�devdirs�devdir�errs     r*r�zSoSReport._get_fibre_devs�s���	��D��G�"�
G���7�7�=�=��6�!9�:��K�K��	�	�*;�f�*D� E�F�
G��K���	��K�K���C�c�I�J��I��	�s"�-A�*A�	B�$B	�B�	Bc��	tjd�D�cgc]}d|z��	}}td�}g}|ddk(rL|dj�D]6}|j	�djdd�}|j
|��8|D�cgc]}|jd	�r||vr|��}}tt|�t|�z
�}	|	Scc}wcc}w#t$r*}
|jjd
|
z�gcYd}
~
Sd}
~
wwxYw)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/%szlosetup --all --noheadings�statusr�output�:r�loopz#Could not get block device list: %sN)
r�r	r�
splitlines�split�replacer!�
startswith�listr~r�r�r�)r��d�device_list�loop_devices�real_loop_devices�loop_dev�loop_device�dev�ghost_loop_devs�dev_listr�s           r*r�zSoSReport._get_block_devs�s��	�24�*�*�\�2J�K�Q�9�q�=�K�K�K�1�2N�O�L� "���H�%��*� ,�X� 6� A� A� C�:�H�"*�.�.�"2�1�"5�"=�"=�c�2�"F�K�%�,�,�[�9�:�/:�@�s�"%�.�.��"8�"%�->�">� #�@�O�@��C��,�s�?�/C�C�D�H��O��L��@��
�	��K�K���C�c�I�J��I��	�s:�C�C�A'C�C�*#C�
C�	D�!D�D�Dc�2�d|j�i|_y)Nr�)�_get_network_namespacesrWr�s r*r�zSoSReport._get_namespacess���t�3�3�5�
��r,c��ggggd�}	td|jj��r|j|j	��|dsM|j
j
d�|j|j��|j�|d<|S#t$r)}|j
jd|���Yd}~|Sd}~wwxYw)	aHelper 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�rzZNetwork devices not enumerated by nmcli. Will attempt to manually compile list of devices.rz%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�zSoSReport._get_network_devss�������	
��	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�BB�	C�&C
�
Cc�^�i}|jdD]}d|j|�i||<�|S)zqEnumerate the network devices that exist within each network
        namespace that exists on the system
        r�r)rWr)r��_nmdevs�nmsps   r*r�z(SoSReport._get_network_namespace_devices5sC�����O�O�I�.�	�D��D�.�.�t�4��G�D�M�	��r,c��i}	td�}|ddk(ra|dj�ddD]H}|j�\}}||vr|g||<n||j|�|dj|��Jt	t|d��|d<|S#t$r)}|jjd|z�Yd}~|Sd}~wwxYw)	z�Use nmcli, if available, to enumerate network devices. From this
        output, manually grok together lists of devices.
        znmcli --fields DEVICE,TYPE devrrrrxNrz!Could not parse nmcli devices: %s)	rrrr!rr~r�r�r�)r�r�_ndevsr�dname�dtyper�s       r*rzSoSReport._get_nmcli_devs@s�����	I�+�,L�M�F��h��1�$�!�(�+�6�6�8���<�4�C�#&�9�9�;�L�E�5��E�)�(-�w��e���e��+�+�E�2��*�%�,�,�U�3�
4�!%�S��z�):�%;� <�E�*������	I��K�K���A�C�G�H�H����	I�s�BB�	C�C�Cc��dg}g}|s2td|jj�D�cgc]}||vr|��
}}nG	d|z}t|�}|ddk(r.|dj	�D]}||vs�|j|��||D�	cgc]}	|	jd
�s�|	��c}	|D�
cgc]}
|
jd�s�|
��c}
d�Scc}w#t$r+}|jjd|�d|���Yd	}~�zd	}~wwxYwcc}	wcc}
w)
a8Enumerate 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/netz"ip netns exec %s ls /sys/class/netrrrz'Could not determine network namespace 'z' devices: Nr�tun)rrr()
r	r�r�rrr!r�r�r�r)r��	namespace�	filt_devs�	_eth_devsr�_nscmd�_nsout�_nsethr��bd�tds           r*rzSoSReport._get_eth_devsTs%�� '�'�	��	��&�'7����9J�9J�K����i�'���I��

�=�	�I��/��7���(�#�q�(�"(��"2�"8�"8�":�5��!��2�%�,�,�V�4�5�"�"+�E�B�r�}�}�V�/D�R�E�!*�C�2�b�m�m�E�.B�B�C�
�	
��#���
����#�#� �#�'����
��F��Cs:�
C�2C�.C�D�D�'D�>D�	D�!C;�;Dc��g}	tdd��}ddk(r>|dj	�d	dD]%}	|j|j
�d��'|S#t$r(}|jjd|z�Yd}~�td}~wwxYw#t$r+}|jjd
|�d|���Yd}~��d}~wwxYw)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: %sNrrrrxz"Could not parse device from line 'z': )rr�r�r�rr!rr�)r��_bridges�_boutr��_blines     r*rzSoSReport._get_bridge_devs~s�����	P�*�<��D�E���?�a����/�4�4�6�q�r�:�
����O�O�F�L�L�N�1�$5�6�
�����	P��K�K��� H�3� N�O�O��	P��!���K�K�$�$�!�3�(�����s.�
A�"B
�	B
�"B�B
�
	C�!B<�<Cc���g}td�}|ddk(r_|dj�D]I}|j�s|ddj�r�'|j|j	d�d��K|S)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.
        zip netnsrrrNrxr)rr�isspacer!�	partition)r��out_ns�ip_netnsr's    r*rz!SoSReport._get_network_namespaces�s{����)�*�5���H���"� ��*�5�5�7�
6���<�<�>�T�"�1�X�%5�%5�%7���
�
�d�n�n�S�1�!�4�5�
6��
r,c��|j|j|j|j|j|j
|j|jj|j|j|jd�S)N)�cmddir�logdir�rptdir�tmpdirr�rvr�rs�cmdlineoptsr�rW)r>r?r@rAr�rvr�r�rsr�rWr�s r*�get_commonszSoSReport.get_commons�s_���k�k��k�k��k�k��k�k��k�k��k�k��|�|����,�,��9�9��|�|��/�/�
�	
r,c�6�|jj�S�N)r��newr�s r*�
get_temp_filezSoSReport.get_temp_file�s���!�!�%�%�'�'r,c���|jj|jd�|jj|jd�|jj|jd�y)Ni�)r��makedirsr>r?r@r�s r*�_make_archive_pathszSoSReport._make_archive_paths�sJ�������d�k�k�5�1������d�k�k�5�1������d�k�k�5�1r,c�.�d|_d|_d|_y)N�sos_commands�sos_logs�sos_reports)r>r?r@r�s r*r�zSoSReport._set_directories�s��$��� ���#��r,c�x�|jjr|jt_d|_yd|_y)NTF)r�r��
_exceptionr��
excepthook�
raise_pluginsr�s r*r�zSoSReport._set_debug�s(���9�9�?�?�!�_�_�C�N�!%�D��!&�D�r,c��ttd�stjj�stj|||�ytj|||dtj��t�tj�y)z* Wrap exception in debugger if not in tty �ps1�)�limit�fileN)r�r�r��isatty�__excepthook__�	traceback�print_exception�stdoutr��pdb�pm)�etype�eval_�etraces   r*rPzSoSReport._exception�s^���3���c�j�j�&7�&7�&9�
���u�e�V�4�
�%�%�e�U�F�!�+.�:�:�
7��G��F�F�Hr,c� �|js|jr^tj�\}}}t	j
|||tj��t�tj|�|r|r|j||�yyy)N)rW)rR�exit_processr��exc_inforZr[r\r�r]�post_mortem�_log_plugin_exception)r��plugname�funcr_�val�tbs      r*�handle_exceptionzSoSReport.handle_exception�sj������!2�!2�"�|�|�~��U�C���%�%�e�S�"�3�:�:�F��G��O�O�B�����&�&�x��6��8r,c�N�t|dd�rE|jj|jtj
j
dd���t|dd�rF|jj|jtj
j
dd���yy)N�sos_log_filerM�sos.log�r��sos_ui_log_file�ui.log)�getattrr��add_filermr�r�r�rpr�s r*�
_add_sos_logszSoSReport._add_sos_logs�s���
�4���.��L�L�!�!�$�"3�"3�')�w�w�|�|�J�	�'J�
"�
L��4�*�D�1��L�L�!�!�$�"6�"6�')�w�w�|�|�J��'I�
"�
K�2r,c�H�|jj}t|jj�syt	|d�sy|r |j|j
��syt|jD�cgc]}||jjv��c}�Scc}w)NTraF)r�r]r rar��_is_not_specifiedr��any)r��plugin_classr]r�s    r*�_is_in_profilezSoSReport._is_in_profile�s}���y�y�-�-���4�9�9�%�%�&���|�Z�0���� 6� 6�|�7H�7H�7J� K���\�5J�5J�K��A����+�+�+�K�L�L��Ks�9Bc�2�||jjvSrE)r�rV�r��plugin_names  r*�_is_skippedzSoSReport._is_skipped�s���t�y�y�5�5�5�6r,c��||j��j�xr2||jjvxr||jjvSrE)rC�
check_enabledr�rEr]�r�r|�pluginClasss   r*�_is_inactivezSoSReport._is_inactive�sR���� 0� 0� 2�3�A�A�C�C�:��4�9�9�#;�#;�;�:��4�9�9�#9�#9�9�	;r,c��||j��j�xr2||jjvxr||jjvSrE)rC�default_enabledr�rEr]r�s   r*�_is_not_defaultzSoSReport._is_not_defaultsR���� 0� 0� 2�3�C�C�E�E�:��4�9�9�#;�#;�;�:��4�9�9�#9�#9�9�	;r,c�b�|jjxr||jjvSrE)r�r]r{s  r*rvzSoSReport._is_not_specifieds+���	�	�&�&�:��4�9�9�#9�#9�9�	;r,c��|jj|j�||j��|f�yrE)r|r!r�rC)r�rx�reasons   r*�_skipzSoSReport._skip
s;�����#�#�������)�)�+�,��%
�	r,c��|jj|j�||j��f�yrE)r{r!r�rC)r�rxs  r*�_loadzSoSReport._loads8�����"�"�������)�)�+�,�$
�	r,c�j�tjjj}t	tjj�}|j�}g|_t�|_t|jj�}|jj}g}|jjr3|jtjjj�t!||z�}|jj"}t%|jj�}	|D�]G}
t&j(j+|
�\}}	|||�}
t|
�s�<|jj-|
�}|||jj��s\|j.j1t3d�|
z�|jj4dkDr|j7|t3d����|jj|�|j9|�}|s|j7|t3d����|j;|�r|j7|t3d����J|j=||�r|j7|t3d����y|j?||�r|j7|t3d�����tA|d	�r%|jjC|j�|xr|}|jE|�r|r|j7|t3d
����|jD]}||	vs�|	jG|��|jI|���Jt|	�dkDrX|j.jOt3d�d
jQ|	�z�|jS�|jUd�yy#tJ$rD}|j.j1t3d�|
|fz�|jM�Yd}~���d}~wwxYw)N)rDz%plugin %s does not validate, skippingrzdoes not validate�excluded�skipped�inactive�optionalraz
not specifiedz(plugin %s does not install, skipping: %sz+Unknown or inactive profile(s) provided: %sr�rx)+�sosrr�plugins�
import_pluginr�get_modules�plugin_namesr~rar r�rv�valid_subclassesrDr!�ExperimentalPlugin�tuple�validate_pluginrr�r��splitext�match_pluginr�r�r�rsr�ryr}r�r�r�rrv�remover�r�rkr�r�rNr�)r�r��helperr��using_profiles�policy_classes�
extra_classes�valid_plugin_classesr��remaining_profiles�plug�plugbase�ext�plugin_classesrx�
in_profile�default_profile�i�es                   r*�load_pluginszSoSReport.load_pluginssx���
�
�*�*�8�8�
���
�
� 2� 2�3���$�$�&��������
��T�Y�Y�/�/�0�����5�5���
��9�9�!�!�� � ����!3�!3�!F�!F�G�$�^�m�%C�D���+�+�5�5��!�$�)�)�"4�"4�5���7	(�D��G�G�,�,�T�2�M�H�c�5
(�!.�x�9M�!N���>�*��#�{�{�7�7��G��&�|�48�I�I�4J�4J�L��K�K�'�'��A�B�T�I�K��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��M�M�(�(��)>�)>�?�'5�"4�"C����)�)�(�3���J�J�|�Q��-?�@��%�.�.�5�A��.�.�*�1�1�!�4�5��
�
�<�(�g7	(�p�!�"�Q�&��K�K���a�!&�'�)-���3E�)F�G�
H���� ��J�J�q�M�	'��	�
(����#�#�A�'5�%6�9=�q�	�%B�C��%�%�'�'��
(�sK�O%�/BO%�A	O%�,O%�=-O%�,-O%�A&O%�O%�$O%�%	P2�.9P-�-P2c���|jjrN|jD]>\}}|jj	�D]}t
|jvs�d|_��@yy)NT)r�r7r{�options�values�bool�val_type�value)r�rgr��opts    r*�_set_all_optionszSoSReport._set_all_optionsfs\���9�9���"&�"5�"5�
)���$��<�<�.�.�0�)�C��s�|�|�+�$(��	�)�
)� r,c	��|jj�r�i}|jjD]t}	|jd�\}}t	|t
�r*|j
�}|dvrd}n|dvrd}n	t|�}	|jd�\}}	||||||<�v|jD]�\}}||vs�||D]�}||jvr3|jjd|�d|�d	��|jd
�	|j|j|||�|jjd|�d|j|�����||=��|j#�D] }|jjd
|z��"|j#�r|jjd�yyy#t$rd}Y���wxYw#t$rY��^wxYw#t$r|}d}Y��]wxYw#t$r	i||<Y��lwxYw#t $r7}|jj|�|jd
�Yd}~���d}~wwxYw)N�=T)�on�enable�enabled�true�yes)r��disable�disabled�false�noF�.zno such option "z" for plugin (rwrxzSet z plugin option to zGWARNING: unable to set option for disabled or non-existing plugin (%s).r)r�rJr�
ValueError�
isinstancer�r�r��KeyErrorr{r�r�r�r��	set_valuer�r�r�)r�r�r�rir�rgr�s       r*�
_set_tunableszSoSReport._set_tunablesmsc���9�9����D��y�y�)�)�
&���"�y�y��~�H�C���c�3�'��)�)�+�C��H�H�"��� M�M�#��!�"%�c�(�C�� #�	�	�#��I�D�#�
$���J�#&��T�
�3��;
&�>#'�"5�"5�
'���$��t�#�#�H�~�
*���d�l�l�2� �K�K�-�-�8;�X�/G�H� �J�J�q�M�*� �L�L��-�7�7��X��s�8K�L� �K�K�-�-�#+�T�\�\�#�->�!@��
*��X��!
'�"!�I�I�K�
O�����!�!�#A�DL�#N�O�
O�
�y�y�{����!�!�"�%��o��
"���C��� *�!� �!��
"���D��C��� �$�!#�D��J�$��" )�*� �K�K�-�-�c�2� �J�J�q�M�M��*�s`�G�7G�G$�G8�AH
�G�G�	G!� G!�$
G5�4G5�8H
�	H
�
	I
�,I�I
c��ddl}|j|jj|jj�D]T}|jd�d}||jvs�&|jjd|z�|jd��V|jjD]/}||jvs�|jjd|z��1y)Nrr�z=a non-existing plugin (%s) was specified in the command line.rxz+Requested to skip non-existing plugin '%s'.)�	itertools�chainr�r]rErr�r��fatalr�rVr�)r�r��pluginr|s    r*�_check_for_unknown_pluginsz$SoSReport._check_for_unknown_plugins�s�����o�o�d�i�i�&<�&<�&*�i�i�&>�&>�@�	�F� �,�,�s�+�A�.�K��$�"3�"3�3����!�!�#9�<G�#I�J��
�
�1�
�
	��i�i�,�,�	�F��T�.�.�.����#�#�A�F�J��	r,c��|jD]>\}}|jD]*}|jj|j|��,�@yrE)r{r�r}r!)r�r|r�r�s    r*�_set_plugin_optionszSoSReport._set_plugin_options�sL��#'�#6�#6�	=��K���~�~�
=��� � �'�'����s�(;�<�
=�	=r,c�L�d}g}|jjdkDr.|d|jjzgz
}d|j_|jjs|dgz
}d|j_|jjs|dgz
}d|j_|jjr|dgz
}d|j_|jj
r|d	gz
}d|j_|r|d
dj
|�zz
}n|dz
}|d
z
}|S)Nz
Estimate-only mode enabledrxz--threads=%s overriden to 1z--build enabledTz--no-postproc enabledz--clean disabledFz--upload* options disabledz", which overrides some options:
  z
  r�z

)r��threadsr9rZr<rfr�)r�r��ext_msgs   r*�_set_estimate_onlyzSoSReport._set_estimate_only�s��-�����9�9���q� ��5��	�	�8I�8I�I�L�L�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��|jjd�t|j�rG|jjdt|j�t|j�fz�n1|jjdt|j�z�|jjd�y)Nrz %d profiles, %d pluginsz %d profiles)�ui_logr�r r{rar�s r*�_report_profiles_and_pluginsz&SoSReport._report_profiles_and_plugins�s�����������t�"�"�#��K�K���7� #�D�M�M� 2�C��8K�8K�4L�M�N�
O�
�K�K���^�c�$�-�-�.@�@�A�������r,c
�	�|js1|js%|jjt	d��y|jr�|j
j
t	d��|j
j
d�|jD]5\}}|j
j
d|d�d|j�����7n$|j
j
t	d��|j
j
d�|jr�|j
j
t	d��|j
j
d�|jD]:\}}}|j
j
d|d�d|d�d|j�����<|j
j
d�|j�r|j
j
t	d	��|jd
dj�}|D]�}||}|j}|jdk(rN|d
k(r|jjxst}n*|dk(r|jjxst}nt}|jdk(r|jj }|j
j
d|jd�d|d�d|j"�����|j
j
d�|j
j
t	d��|jD]�}|jdvr|j|j$k(r�+t'|jt(�r|jdurd}	nd}	n|j}	|	�d
}	|j
j
d|j*dz|jzd�d|	d�d|j"�����n$|j
j
t	d��|j
j
d�t-|j.�}
|
j1�t3d|
d��}|D] }|j
j
d|z��"|j5�y)Nzno valid plugins foundz,The following plugins are currently enabled:rr�20zNo plugin enabled.z-The following plugins are currently disabled:�14z4The following options are available for ALL plugins:rrx���r4�cmd-timeout�postproc�25�15z+The following plugin options are available:)r4r�r�Tr�r�r�zNo plugin options available.z
Profiles: �r$� %s)r{r|r�r�r�r�r��get_descriptionr}�get_default_plugin_optsr�r�r_rr`r�rZr?rtr�r�r�rra�sortr+r�)
r�rgr��	plugclassr��	_defaults�_optr�ri�tmpoptrar&r's
             r*rLzSoSReport.list_plugins�s����"�"�4�+?�+?��K�K���a� 8�9�:������K�K���Q�M�N�O��K�K���R� �$(�$7�$7�
I� ��4���� � ��04�0D�0D�0F�"H�I�
I�
�K�K���Q�3�4�5������������K�K���Q� +�,�
-��K�K���R� �15�1E�1E�
2�-��9�f���� � ����-�-�/�"1�2�
2�
	
�����������K�K���Q� *�+�
,��+�+�A�.�q�1�I�I�K�I�!�
P����o���i�i���9�9��?��y�(�"�i�i�6�6�I�/����.�"�i�i�3�3�F���-���8�8�z�)�"�i�i�3�3�3�C���� � �c�h�h��S�X�X�!N�O�
P�
�K�K���R� ��K�K���Q�L�M�N��'�'�
D���8�8�E�E��y�y�C�K�K�/� ��c�i�i��.��y�y�D�(�!%��!&�� �Y�Y�F��>��F���� � ��J�J��$�s�x�x�/�����"C�D�!
D�&
�K�K���Q�=�>�?����������
�
�&���
�
���\�8�D�A���	+�D��K�K���U�T�\�*�	+��)�)�+r,c�L�|js%|jjtd��y|jjtd��|jjd�d�}t
|j�}|j�|D]w}g}|jD].\}}||�s�||jvs�|j|��0td|z|d��}|D] }|jjd|z��"�y|j�y)	Nzno valid profiles foundz%The following profiles are available:rc��t|d�S)Nra)r�)�cs r*�	_has_profz*SoSReport.list_profiles.<locals>._has_prof3s���1�j�)�)r,z%-15s Tr�r�)rar�r�r�r�r�rr�r{r!r+r�)	r�r�ra�profiler�r�r�r&r's	         r*rNzSoSReport.list_profiles,s���}�}��K�K���a� 9�:�;��������B�C�D��������	*���
�
�&���
�
���	/�G��G� $� 3� 3�
)���f��V�$��F�O�O�)C��N�N�4�(�
)�!��G�!3�W�T�J�E��
/����� � ����.�
/�
	/�	
�)�)�+r,c��|jjs%|jjt	d��y|j
j
t	d��|j
j
d�|jjj�D�]2}|s�|jj|�}|j
j
dd�d|j���|j
j
dd�d|j���|jr+|j
j
dd�d|j���|jjd	kDrP|jj�}d
dz}t||dd�
�}|D]}|j
j
|��|j
j
d���5y)Nzno valid presets foundz$The following presets are available:rzname:z>14rzdescription:znote:rz%14s zoptions:T)r$r%)rv�presetsr�r�r�r�r�r�r�r�r?r\r�rs�to_argsr+)r�r^r��options_strr&r's      r*rMzSoSReport.list_presetsBsY���{�{�"�"��K�K���a� 8�9�:��������A�B�C���������k�k�)�)�.�.�0�	!�F����[�[�,�,�V�4�F��K�K���'�6�;�;�?�@��K�K���.�&�+�+�F�G��{�{���� � �g�v�{�{�!C�D��y�y�"�"�Q�&��{�{�*�*�,��%�
�2��$�[�$�t��M��!�+�D��K�K�$�$�T�*�+��K�K���R� �	!r,c�h�|j}|j|�r|jjd|z�y|xs|jj
}|xs|jj}	|j||||j��|jjd�}|jd||j|dzdz}|jjd	|�d
dj|��d��y
#t$r(}|jjd|z�Yd}~yd}~wwxYw)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 '%s' already existsF)r�r?r\r�zCould not add preset: %sNr�rrUzAdded preset 'z' with options r�
T)
rvr�r�r�r�r?r\rnr�ru�indexr�r�)r�r�r?r\rvr��	arg_indexr�s        r*rnzSoSReport.add_presetZs���������d�#��K�K���B�T�I�J���%�t�y�y�~�~���%�t�y�y�~�~��	����4�d��D�I�I��N��L�L�&�&�~�6�	��|�|�A�i�(�4�<�<�	�A�
��+G�G�������������0�	1����	��K�K���8�1�<�=���	�s�2D�	D1�	D,�,D1c�X�|j}|j|�s|jjd|z�y	|j	|��|jjd|z�y#t
$r1}|jjt
|�dz�Yd}~yd}~wwxYw)z�Delete a named command line preset.

            :param name: the name of the preset to delete
            :returns: True on success or False otherwise
        zPreset '%s' not foundF�r�r�NzDeleted preset '%s'
T)rvr�r�r�ror�r�r�)r�r�rvr�s    r*rozSoSReport.del_presetws��������!�!�$�'��K�K���5��<�=��	����4��(�
	
�����0�4�7�8����	��K�K���c�!�f�t�m�,���	�s�A/�/	B)�8'B$�$B)c���|jj�}|jjr||j	�z
}|jj
r|jj|�y|td�z
}	t|�y#t$r/|jjd�|jd�Yyt$r}|jd|�Yd}~yd}~wwxYw)Nz,Press ENTER to continue, or CTRL-C to quit.
zExiting on user cancel�rx)rv�get_msgr�rCr��batchr�r�r��input�KeyboardInterruptr�r�r�)r�r�r�s   r*r�zSoSReport.batch�s����k�k�!�!�#���9�9�"�"��4�*�*�,�,�C��9�9�?�?��K�K���S�!��1�D�E�E�C�
!��c�
��$�
 ����!�!�":�;��
�
�3���
!��
�
�1�a� � ��
!�s�B�5C,�C,�C'�'C,c�T�tj�}d}d|z}tjj	|j
|�}|jj|�d|�d|�d��|jjd|z�|jjd|z|d�	�y)
Nz!caught exception in plugin methodz%s-plugin-errors.txtz "r�z()"zwriting traceback to %s�%s
�a)�mode)
rZ�
format_excr�r�r�r?r�r�r��
add_string)r�r��method�tracer��plugin_err_log�logpaths       r*rfzSoSReport._log_plugin_exception�s����$�$�&��1��/�&�8���'�'�,�,�t�{�{�N�;�������C���@�A������3�g�=�>����������c��Br,c��|jj�	|jjt	d��|j�|j
�y#ttf$rZ}|jtvr/td�td|jz�td�ntd|z��Yd}~n~d}~wt$ro}|jjd�|jjd�tj �|jj|�Yd}~nd}~wwxYw|j#d�y)Nz Setting up archive ...rz %s while setting up archivezError setting up archive: %sz) Unexpected exception setting up archive:rx)rv�pre_workr�r�r��
setup_archiverJ�OSError�IOError�errno�fatal_fs_errorsr��strerrorr�r�rZ�	print_excr��r�r�s  r*�preworkzSoSReport.prework�s��������	!��K�K���Q�8�9�:���� ��$�$�&�����!�
	��w�w�/�)��b�	��4�q�z�z�A�B��b�	��4�q�8�9�����	!��K�K���b�!��K�K���I�J����!��K�K���a� � ��		!��
	
�
�
�1�
s&�AA!�!E�0AC�E�A%D;�;Ec���|jjtd��|jD�]V\}}	|jj
j
|�|jt|jj
|��tj�}|jjd|�|j|_
|j�|j�|j j#|j$�|j&j(r|j+�tj�}|jjd|�|jjd||z
���Yy#t,$r�t.t0f$r�}|j2t4vro|jj7d�|jj7d|j8z�|jj7d�|j;d�|j=|d�Yd}~��d}~wt>$r|j=|d�Y��-wxYw)	Nz Setting up plugins ...�setup_start�	setup_end�
setup_timerz %s while setting up pluginsrx�setup) r�r�r�r{r�r�r��set_plugin_manifestrrr�nowr��	add_fieldr��add_default_collectionsrrr�	_env_varsr�rc�setup_verifyr�rrr	r
r�rr�rkr�)r�rgr��start�endr�s      r*rzSoSReport.setup�s���������4�5�6�"�1�1�	9�N�H�d�
9����&�&�2�2�8�<��(�(�����1G�1G�19�*;�<� ������
�
�'�'�
�u�=�#�|�|����,�,�.��
�
���
�
�$�$�T�^�^�4��9�9�#�#��%�%�'��l�l�n���
�
�'�'��S�9��
�
�'�'��c�E�k�B�	9�� %�
���W�%�
9��7�7�o�-��K�K�%�%�b�)��K�K�%�%�&D�()�
�
�'3�4��K�K�%�%�b�)��J�J�q�M��%�%�h��8�8���
9��%�%�h��8�
9�s�EF�I�$BH=�=I�Ic��g}|jdtz�|jjdj	|�d��y)zWFetch version information from all plugins and store in the report
        version filez
sosreport: %sr�zversion.txt)�contentr�N)r!rr�r�r�)r��versionss  r*�versionzSoSReport.version�s?��������+�5�6�������	�	�(�(;�%2�	 �	4r,c���|jjtd��|jjd�d}g|_g|_|j
D]'}|dz
}|jj
||df��)	g}t|jj�5}|j|jt|j��}ddd�|D]#}|r�|jjd|z��%|jjd�y#1swY�MxYw#t$r3|jj!d�t#j$d�YywxYw)Nz! Running plugins. Please wait ...rrrxz!Unexpected plugin task result: %sz
Exiting on user cancel
)r�r�r��pluglist�
running_plugsr{r!rr�r��map�_collect_pluginrr�r�r�r�r�r�)r��plugruncountr��results�executor�ress      r*�collectzSoSReport.collect�sB��������>�?�@������������
�����$�$�	7�A��A��L��M�M� � �,��!��!5�6�	7�
	��G�#�D�I�I�$5�$5�6�
<�(�"�,�,�t�';�';�'+�D�M�M�':�<��
<��
+����K�K�%�%�&I�&)�'*�+�
+�
�K�K���R� �
<�
<��!�	��K�K���:�;��H�H�Q�K�	�s0�!D0�(0D$�D0�(;D0�$D-�)D0�09E,�+E,c���td�5}	|j|ddz
d}|j|j|�}|jxsd}tj�}|jjd|�|j|��tj�}|jjd|�|jjd||z
�ddd�|j*j,r�|j.j1�}		t3d|	z�}
t5|
d
j7�d�|j8|d<t=j>|	�D]�}t<j@jC|	|�}t<j@jE|�r+t<j@jG|�stI|��mt=jJ|���y
#t$r�d|dz}|jjd	|z�|jj|�|jj!|d�|j|ddz
dj#�|j%d
��|j&j)�Y���wxYw#1swY���xYw#t:$rd|j8|d<Y���wxYw)zaWraps the collect_plugin() method so we can apply a timeout
        against the plugin as a wholerxrN�
start_timer3�end_time�run_timezPlugin %s timed outz
 %s
T)�waitz
du -sB1 %sr)&rr{�submit�collect_pluginr4rrr�r�resultr
r�r�r�r�r"r��set_timeout_hitr��_threads�clearr�rCr��get_tmp_dirrr�rr�r�r�r	r�r�r��islinkr�unlink)r�r��pool�_plug�tr4rrr�rA�du�fs            r*r$zSoSReport._collect_plugin�s`�� ��
"�	&�d�
&��+�+�F�1�I�a�K�8��;���K�K�� 3� 3�V�<�� �-�-�/�4�� ��������(�(��u�=������)��l�l�n�����(�(��S�9����(�(��S�5�[�A�	&�0�9�9�"�"��\�\�-�-�/�F�
8�+�L�6�,A�B����8��*�*�,�Q�/�0��(�(����3��Z�Z��'�
!���G�G�L�L���+���7�7�=�=��#�B�G�G�N�N�1�,=��1�I��I�I�a�L�
!���? �

&�+�f�Q�i�7�����!�!�)�c�/�2���� � ��%��"�"�)�)�&��)�4��#�#�F�1�I�a�K�0��3�C�C�E��
�
�4�
�(��
�
�#�#�%�

&��	&�	&��@�
8�67��(�(����3�
8�s<�J4�CG3�=K�3B:J1�-J4�0J1�1J4�4J>�K �K c
���	|\}}|j|dz
d}|jj|�t	|j�}dd||fzd�d|d�dddjd	�|jD��z��}|j
|�	|j�	|jj|�	|jj|�d
}t	|j�t|jj�kr8|jr,ddd�dddjd
�|jD��z��}|js|jsd}|r|j
|�yy#t$rYywxYw#t$rY��wxYw#t$rY��wxYw#t$rYytt f$r�}|j"t$vre|j&j)d|j*z�|j&j)d|j,z�t/j0d�|j3|d�Yd}~yd}~wt$r|j3|d�YywxYw)NrxFz  Starting z%d/%d�5rr�z
[Running: %s]c3� K�|]}|���y�wrEr�r�s  r*r�z+SoSReport.collect_plugin.<locals>.<genexpr>;s����&E�Q�q�&E���rz  Finishing plugins �12c3� K�|]}|���y�wrEr�r�s  r*r�z+SoSReport.collect_plugin.<locals>.<genexpr>Ps����/N�a��/N�r@z
  Finished running pluginsz!
 %s while collecting plugin dataz& Data collected still available at %s
r))r{r"r!r�r r��ui_progressr0r!r�r�r�r�r�rrrr	r
r�r�rrAr�r�rk)	r�r��countrgr��numplugs�status_linerr�s	         r*r0zSoSReport.collect_plugin0s8��	�$�O�E�8��&�&�u�Q�w�/��2�D����%�%�h�/��t�*�*�+���u�h�'�'���c�h�h�&E�$�2D�2D�&E�E�E�
��
	
����%�%	7����!�
��
�
�$�$�V�,�
��"�"�)�)�(�3��F��D�M�M�"�c�$�)�)�*;�*;�&<�<��&�&��#�s�x�x�/N�4�;M�;M�/N�'N�O����%�%�d�m�m�7���� � ��(���?�	��	�� �
��
���
��
���	�
���!�	7��w�w�/�)����!�!�"F�$%�J�J�#/�0����!�!�"K�$(�K�K�#0�1�������!�!�(�I�6�6���	7��!�!�(�I�6�	7�sy�5E9�F&�$F�F�BF&�9	F�F�	F�F&�F�F&�	F#� F&�"F#�#F&�&	I.�1I.�?B	I
�
I.�-I.c�>�|jjdk(r+|jjsd|jd�z}nd|z}|jjs>t
jj|�t
jj�yy)Nrz
%s�Zr�)	r�rsr��ljust�quietr�r\r��flush)r�rFs  r*rCzSoSReport.ui_progresseso���9�9���!�#�D�I�I�O�O� �;�#4�#4�R�#8�8�K� �;�.�K��y�y����J�J���[�)��J�J����r,c
�v�|jsydj|jD�cgc]E}tjj	|��$|dtjj	|�zf��Gc}D��cgc]\}}|�d|����c}}�dz}|j
j
|d�ycc}wcc}}w)Nr�z%sr��environment)rr�r��environ�getr�r�)r�r�ri�envs    r*�collect_env_varszSoSReport.collect_env_varsns����}�}���i�i�=A�]�]�
/�T�
�Z�Z�^�^�D�
!�
-��D�2�:�:�>�>�$�/�/�
0�
/�
�&1�t�S�t�S�!�
���	��
	
������]�3��
/��
s�A
B0�7B5
c���t�}|jD�]g\}}t|��}|jD]}|j	t|���|jr$|j	t|j��|jD]'}|j	t|dd|dz����)|jD]U}|j	t|ddtjjd|j�d|d	��
���W|j D]@\}}}	|j	t#|tjjd|�����B|j	|���jt$ddft&d
dft(ddff}
|
D]�\}}}
	|j+�}||�j-�}|j/dd�j1�}|j3|�|j5�|j6j9|tjjd|�����y#t:t<f$r�}|j>t@vrs|jBjEd�|jBjEd|jF�d|
�d��|jBjEd�|jId�Yd}~��Gd}~wwxYw)Nr��srcpathz..�dstpath)r��href�cmdrr>rW)r��return_coderUzsos.txt�textzsos.json�JSONzsos.html�HTMLzutf-8rrNrorrz while writing z reportrx)%rr{r�alerts�addr�custom_textr�copied_filesr�executed_commandsrr�r�r�rC�copy_stringsrrrrrG�unicode�encode�decoder�rKr�rsrrr	r
r�r�rr�)r�rrrgr�r��alertr<rVr�tags�
formatlist�class_�filename�type_�fdrr�s                 r*�generate_reportszSoSReport.generate_reportsxs������#�1�1�	 �N�H�d��8�,�G����
*�����E�%�L�)�
*�������D��!1�!1�2�3��&�&�
B�����J�A�i�L�,0�1�Y�<�,?�A�B�
B��-�-�
(�����G��U���)+�����(,�(,�(8�(8�(:�8�(D�(+�F��*&�'�(�
(�%)�$5�$5�
E� ���D����K�Q�-/�W�W�\�\�$��-B�D�E�
E�
�J�J�w��3	 �:�i�&�1�
�j�&�1�
�j�&�1�
�
�
(2�	"�#�F�H�e�
"��'�'�)�����/�/�1�����w�	�:�A�A�C������ ����
����%�%�b�r�w�w�|�|�M�<D�0F�%�G�	"���W�%�
"��7�7�o�-��K�K�%�%�b�)��K�K�%�%�)*���U�'<�=��K�K�%�%�b�)��J�J�q�M���

"�s�&B"I�K*�BK%�%K*c�F�|jD]F\}}	|jd�r|j�n|jj	d|z��Hy#t
tf$r�}|jtvro|jjd�|jjd|jz�|jjd�|jd�|j|d�Yd}~��d}~wt$r|j|d�Y��wxYw)Nr�zSkipping postproc for plugin %srz% %s while post-processing plugin datarx)r{�
get_optionr�r�r�rrr	r
r�r�rr�rkr�)r�rgr�r�s    r*r�zSoSReport.postproc�s���"�1�1�	<�N�H�d�
<��?�?�:�.��M�M�O��K�K�$�$�%F�'/�&0�1��	<���W�%�
<��7�7�o�-��K�K�%�%�b�)��K�K�%�%�&M�()�
�
�'3�4��K�K�%�%�b�)��J�J�q�M��%�%�h�
�;�;���
<��%�%�h�
�;�
<�s�AA�D �&BC>�>D �D c�:�|sy	d}t|d�}tj|�}	|j|�}|sn|j	|��&|j�|j�S#t$r"|j�Yj�SwxYw)NFi�rb)	�open�hashlibrF�readr�closer�rk�	hexdigest)r�r��	hash_name�	hash_size�
archive_fp�digest�hashdatas       r*�_create_checksumzSoSReport._create_checksum�s�����	$��I��g�t�,�J��[�[��+�F��%�?�?�9�5�����
�
�h�'�	�

�������!�!���	$��!�!�#����!�!�	$�s�AA/�/B�Bc�t�t|dz|zd�}|r|j|dz�|j�y)Nr��wr�)rpr�rs)r�r�ru�checksum�fps     r*�_write_checksumzSoSReport._write_checksum�s3��
�'�C�-�)�+�S�
1����H�H�X��_�%�
���
r,c
���d}d}d}|j�d}|jjr�	|j|j|j
|j|jd�}td|��}|j|jj��|j�\}}d}|j�|j�/|jj!|jj"�|r�t$j&j)|j|jj*�}	j-t$j&j)|	dd�d��|j-t$j&j)|	dd	�d	��|j-t$j&j)|	d
d�d��|jj.r|j1�|jj2�r�dd
lm�ddlm}
|
|j�}t=|j?d�D�cgc]}|jA�jB��c}�|jDd<�t=|jDjG���}
|jHjKd|
z�tM|jDjO�d�d��dd}dj)�fd�|D��}|jHjKd|z�|jHjKd�|jHjKd�|jHjKd�|jHjKd�|jjPs�t%jRd�}|jj.sttd��	|r|jjU�|jjW|jj"�}t%jR|�n�|jjfs|jjhr|jHjkd �|jj�}t$j&jm|�}|rjo|�}	t$j&j)|j
|�}t%jp||�|}d}|jjP�s2|s
td"��nB	|jjs�}|ju||�}	|jw|||�t$j&jm|�}|r!jo|jyd%d&��}t$j&j)|j
|�}t%jz|�}|d'z|z}|d'z|z}	t%jp||�|}	t%jp||�|jj}|||||�*�n|jj}||||�*�|jj~s|jj�rt|jjPsA	|jj�|�|jHjKtd+��nd-}|jHj�|�t�j��|j�r|j�j�|jr>t$j&j�|j�rt�|j�y#t$r"}ttd|z��Yd}~��!d}~wwxYwcc}w#tXtZf$r�}td�ttd|j\�d|jj�����td�|j^t`vr|jcd�Yd}~��8d}~wt$r/|jjdr�Yt%jR|�ywxYw#t%jR|�wxYw#tXtZf$rttd!|z��YywxYw#t$rttd#��YywxYw#tXtZf$rttd$|z��Y���wxYw#tXtZf$rttd(|z��YywxYw#tXtZf$rttd)|z��Y��KwxYw#t$r)}|jHj�d,|z�Yd}~���d}~wwxYw).NF)rvrA�sys_tmpr�r�T)�in_place�hook_commonsz%ERROR: Unable to obfuscate report: %srMrn)�
short_namerqrNz
manifest.jsonr)�get_human_readable)�Pathz**/*�sos_logs_reportszPEstimated disk space requirement for whole uncompressed sos report directory: %sc��|dS)Nrxr�)�xs r*�<lambda>z&SoSReport.final_work.<locals>.<lambda>s
��a��d�r,)�key�reverse�z,  c3�B�K�|]\}}|�d�|d�������y�w)z: r)�	precisionNr�)r�r��vr�s   �r*r�z'SoSReport.final_work.<locals>.<genexpr>s-����� 8�$(�A�q�"#�$6�q�A�$F�!H� 8�s�zFive biggest plugins:  %srz>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.�?zCreating compressed archive...rz while finalizing archive rxzQ
Unable to encrypt when using --build. Encryption is only available for archives.zError moving directory: %sz Creating archive tarball failed.z:Error generating archive checksum after archive creation.
z#Error writing checksum for file: %sz.tarz-obfuscated.tarr�zError moving archive file: %szError moving checksum file: %s)rRzUploaded archive successfullyzUpload attempt failed: %szEUnable to upload archive when using --build as no archive is created.)H�generate_manifest_tag_summaryr�r<rvrAr�r�r�set_target_pathr��get_archive_path�executer�r�r�rt�add_final_manifest_data�compression_typer�r�r��_name�obfuscate_filerJ�add_ui_log_to_stdoutrC�
sos.utilitiesr��pathlibr��sumr��lstat�st_sizer�r�r�r��sortedr#r9�umask�rename_archive_root�finalizerrrr	r
r�r��encrypt_pass�encrypt_keyr��basename�obfuscate_string�rename�get_preferred_hash_namerzrr�stat�display_resultsrfrg�upload_archiver�r�r�r�r�r)r�r��	directoryrR�do_cleanr��cleaner�_pathsr��_dirr��tmpdir_pathr<�_sum�
bigplugins�bp_out�	old_umaskr��dir_name�	final_dirr}ru�base_archive�
final_name�archivestat�archive_hash�
final_hashr�r�s                            @r*�
final_workzSoSReport.final_work�s�������	����*�*�,����9�9�?�?�
H�"�k�k�"�k�k�#�|�|�#�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�.7�
#�
9��"�"�2�7�7�<�<��j�(�#K�.6�
#�
8��"�"������T�=�/�B�*�
#�
��9�9�?�?��%�%�'��9�9�"�"�8�$��t�{�{�+�K�;>�0;�0@�0@��0H�I�1�Q�W�W�Y�&�&�I�<K�D�$�$�%7�8�&�c�$�*B�*B�*I�*I�*K�&L�M�D��K�K���E�GK�L�
M��� 8� 8� >� >� @�$2�D�B�BD�1�F�J��Z�Z� 8�,6� 8�8�F�
�K�K���8�6�A�B��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�
N��(�(��)�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�"N��I�I�l�J�7����+�+�G�Y��,7�(�,�L�
�K�K�'�'���H�19�
(�
;��9�9���t�y�y�3�3��9�9�?�?�I��K�K�.�.�w�7��K�K�$�$�Q�'F�%G�H�-�����!�!�#�&�	����������$�$�&��;�;�2�7�7�=�=����5��4�;�;����i�
H��a�?�#�E�F�G�G��
H��BJ��<�W�%�
"��b�	��a����T�\�\�%B�%B�%D�F�G�H��b�	��7�7�o�-��J�J�q�M����
!��9�9�?�?�� �����#�

!������#���W�%�
��a�4�y�@�A�B��
�� !�!��!�2�3�4� �!�� ��)�N��!�A�G�K�L�M�N��* ��)�!��!�;�g�E�F�G� �!��$ ��)�N��!�<�|�K�L�M�N��!�I��K�K�%�%�&A�C�&G�H�H��I�s��B^1�
!_�*A_$� Ac�,c2�8d�e�6e.�?f�1	_�:_�_�$b)�3A5a.�(b,�.#b)�b,�(b)�)b,�,c�&c/�.c/�2d�d�&d?�>d?�&e+�*e+�.&f�f�	g
�$g�g
c�f�|js%|jjtd��yy)Nzno valid plugins were enabledFT)r{r�r�r�r�s r*�verify_pluginszSoSReport.verify_plugins�s)���"�"��K�K���a� ?�@�A��r,c��|jjd|j�|jjd|jr|jjnd�|jjd|jj�d}td�rMtdtj����}|dd	k(r%|d
j�d	jd�}|jjd�|jjjd
|�|jjjdtj d	��|jjd�|j"j%�D]+\}}|jj"j||��-|jjd|jj&�|jjd|jj(�|jjd�y)zgAdd 'global' data to the manifest, that is any information that is
        not plugin-specific
        r�r^�unsetra�unknown�ionicez
ionice -p rrrr�priority�io_class�nicenessr��enabled_plugins�disabled_pluginsr�N)r�rr�r^r��add_listr�rar
rr��getpidr�stripr�r��nicer�r#rErV)r��	_io_class�_ior�r�s     r*�add_manifest_datazSoSReport.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�-��,�,�,�,�.�	9�J�C���N�N�"�"�,�,�S�%�8�	9������ 1�4�9�9�3K�3K�L������ 2�D�I�I�4J�4J�K����"�"�9�-r,c	�\��d�fd�	}i�|jjD]N}|jD]
}||��|jD]}||d��
|jD]
}||���P|jjdt
t�j����y)acAdd 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����|dD]]}||r|s�	�|}|jt||t�r||n||g�t	tt|����|<�_y#t$rg}Y�]wxYw)Nre)r�r�r�rr�r~)�entr��tagr��tag_summarys    �r*�compile_tagsz=SoSReport.generate_manifest_tag_summary.<locals>.compile_tags�s�����6�{�

;���3�x�s���&�s�+�D���� *�3�s�8�T� :�C��H��S��
��$*�$�s�4�y�/�#:��C� �

;��
 ���D��s�A(�(A6�5A6�files_copiedr�N)�filepath)	r�r��commands�files�collectionsr�dictr�r#)r�r�r�rV�_file�
collectionr�s      @r*r�z'SoSReport.generate_manifest_tag_summary�s����	;����N�N�*�*�	)�D��}�}�
"���S�!�
"����
4���U�N�3�
4�"�.�.�
)�
��Z�(�
)�	)�	
��� � ��!%�f�[�->�->�-@�&A�!B�	Dr,c��d}|jj|tddj|j�fz�|j
jj�}dt�dd�d|j
j�ddj|��d�	}|jj|�|jjdt�dd�d	dj|jj�����y)
Nz[%s:%s] executing 'sos %s'rr�[rz	] using 'z' preset defaults (rwz] effective options now: )	r�r��__name__r�rur^r�r�r�)r�r��preset_argss   r*�_merge_preset_optionszSoSReport._merge_preset_options�s���*���������'�3�8�8�D�L�L�3I�J�J�K��k�k�&�&�.�.�0���'�4�;�;�#3�#3�S�X�X�k�5J�L���������	
�����"�G�S�X�X�d�i�i�6G�6G�6I�-J�L�	Mr,c�(�	|jj|j��|j�|j	�|j�|j
�|j�|j�|jjr|j�t�|jjr|j�t�|jjr|j�t�|jjr%|j|jj�S|jjr%|j|jj�S|j!�sy|j#�|j%�|j'�|j)�|j+�|jj,s|j/�|jj0s|j3�|jj4s|j7�n|j8j;d�|j=�|j?�S#t@$rC|jjBr�tEjFdd�dk(s|jI�Yn�tJ$r?|j8jMd�|jI�|jOd�Yn]t$rR}tEjFdd�dk(s|jI�tQjR|jT�Yd}~nd}~wwxYw|jOd�y)NFz)Skipping postprocessing of collected data�
SOS_TEST_LOGS�keepz
Exiting on user cancelr�rx)+rv�set_commonsrCr�r�r�r�r�r�r�rL�
SystemExitrNrMrnror�r�rr�rr)rYrQrXrkrZr�r�r�rr�rr�r��getenv�cleanupr�r�r�r��exit�coder
s  r*r�zSoSReport.execute�sq��6	��K�K�#�#�D�$4�$4�$6�7������!�!�#��&�&�(���� ��+�+�-��$�$�&��y�y�%�%��!�!�#� � ��y�y�&�&��"�"�$� � ��y�y�%�%��!�!�#� � ��y�y�#�#����t�y�y�';�';�<�<��y�y�#�#����t�y�y�';�';�<�<��&�&�(���J�J�L��L�L�N��"�"�$��J�J�L��L�L�N��9�9�(�(��%�%�'��9�9�&�&��%�%�'��9�9�(�(��
�
����� � �!L�M��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�
s:�EJ�
:J�J�C=J�A	M?�AM?�%M?�-AM:�:M?rE)NN)r�)rr)Ir��
__module__�__qualname__�__doc__r?�
root_requiredrr�rz�classmethodr�r�r�r�r�r�r�r�r�r�rrrrrCrGrJr�r��staticmethodrPrkrtryr}r�r�rvr�r�r�r�r�r�r�r�r�rLrNrMrnror�rfrrrr)r$r0rCrQrkr�rzrr�r�r�r�r�r��
__classcell__)r�s@r*r6r6Gs3����<�D��M�7��e�7��E�7�	��7�	�2�	7�
	�&�7�	��
7�	�V�7�	�U�7�	��7�	�2�7�	�2�7�	�5�7�	��7�	��7�	�"�7� 	��!7�"	�B�#7�$	��%7�&	�B�'7�(	��)7�*	��+7�,	��-7�.	��/7�0	�B�17�2	��37�4	�6�57�6	��77�8	�b�97�:	��;7�<	�d�=7�>	�U�?7�@	�u�A7�B	�u�C7�D	�U�E7�F	��G7�H	��I7�J	�&�K7�L	�/�M7�N	��O7�P	�B�Q7�R	��S7�T	�%�U7�V	��W7�X	�R�Y7�Z	�%�[7�\	�d�]7�^	�D�_7�`	�t�a7�b	�t�c7�d	��e7�f	��g7�h"���m7�L�r:%�x�yH��yH�v�5��5�nG�
��>�,�.
�
�>	��((
�T�.� 

�(�2�
$�
'�����
7�
K�M�7�;�
;�
;���M�^)�9&�v
�=�
�6�I,�V,�,!�0�:�(!� C��29�>4��2/�b37�j�4�5"�n<�&"�$�L�\�.�2D�@
M�9r,r6)Fr�)2r�rZr�r	r�rr��sos.report.pluginsr�r�rrrrrr	r
�shutilrrq�concurrent.futuresrr
r]rr�r�
sos.componentr�sos.policies�sos.report.reportingrrrrrrrrrr�sos.cleanerr�ENOSPC�EROFSr
r+r1r�r6r�r,r*�<module>r�s�����	������*�*�*���?�
���&��:�:�:�#��<�<����-���$F�+��i��ir,

Zerion Mini Shell 1.0