Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/crio.cpython-310.pyc
o

i��d��@s:ddlmZmZmZmZmZmZGdd�deeee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin�SoSPredicate�	PluginOpt�	CosPluginc@sTeZdZdZdZdZdZdZedddd	�ed
ddd	�gZ	dd
�Z
dd�Zdd�ZdS)�CRIOzCRI-O containers�crio)�	container)zcri-o�	cri-tools)r	�allFz0collect for all containers, even terminated ones)�default�desc�logsz)collect stdout/stderr logs for containerscCs|�gd��|�gd��|�ddg�|�t|dgd��gd�}|�dd	�|D��d
}|�d�r8d|}d
}d}|�|�}|�|�}|�|�}|��|D]}|jd|dd�|�d�rl|jd|dddd�qQ|D]}	|jd|	dd�qo|D]}
|jd|
dd�q}dS)N)z/etc/containersz/etc/crictl.yamlz/etc/crio/crio.confz/etc/crio/seccomp.jsonz/etc/crio/crio.conf.d/z!/etc/systemd/system/cri-o.servicez/etc/sysconfig/crio-*)�
HTTP_PROXY�HTTPS_PROXY�NO_PROXY�	ALL_PROXYzls -alhR /etc/cnizcrio configr)�packages)�info�images�pods�pszps -azps -v�stats�versioncSsg|]}d|�qS)z	crictl %s�)�.0�srr�9/usr/lib/python3/dist-packages/sos/report/plugins/crio.py�
<listcomp>DszCRIO.setup.<locals>.<listcomp>zcrictl ps --quietrz%s -azcrictl images --quietzcrictl pods --quietzcrictl inspect %s�
containers)�subdirrzcrictl logs -t %szcontainers/logs�d�crictl_logs)r!�priority�tagszcrictl inspecti %srzcrictl inspectp %sr)�
add_copy_spec�add_env_var�add_cmd_output�set_cmd_predicater�
get_option�_get_crio_list�_get_crio_goroutine_stacks)�self�subcmds�ps_cmd�img_cmd�pod_cmdr rrr
�image�podrrr�setupsB
�




�

���z
CRIO.setupcCsTg}|�|�}|ddkr(|d��D]}|�|�q|r(d|dvr(|�d�|S)N�statusr�output�
deprecated)�exec_cmd�
splitlines�append�pop)r-�cmd�ret�result�entrrrr+as

zCRIO._get_crio_listcCsR|�d�}|ddkr
dS|d��}|�d|�}|ddkr'|�d�dSdS)Nz
pidof crior5rr6zkill -USR1 z/tmp/crio-goroutine-stacks*.log)r8�stripr&)r-r>�pidrrrr,ls
�zCRIO._get_crio_goroutine_stacksN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�servicesr�option_listr4r+r,rrrrrs ���CrN)�sos.report.pluginsrrrrrrrrrrr�<module>s 


Spamworldpro Mini