3
ܓi @ s0 d dl mZmZmZmZ G dd deeeZdS ) )PluginRedHatPluginUbuntuPlugin PluginOptc @ s\ e Zd ZdZdZdZdZdZeddddd ed
dddd ed
dddgZ dd Z
dd ZdS )Podmana< Podman is a daemonless container management engine, and this plugin is
meant to provide diagnostic information for both the engine and the
containers that podman is managing.
General status information will be collected from podman commands, while
detailed inspections of certain components will provide more insight
into specific container problems. This detailed inspection is provided for
containers, images, networks, and volumes. Per-entity inspections will be
recorded in subdirs within sos_commands/podman/ for each of those types.
zPodman containerspodman containerallFz0collect for all containers, even terminated oneszEnable collection for all containers that exist on the system regardless of their running state. This may cause a significant increase in sos archive size, especially when combined with the 'logs' option.)defaultdescZ long_desclogsz)collect stdout/stderr logs for containerszCapture 'podman logs' output for discovered containers. This may be useful or not depending on how/if the container produces stdout/stderr output. Use cautiously when also using the 'all' option.sizez!collect image sizes for podman ps)r
r c C s | j ddd dddddd d
ddd
ddg}| jdd |D | jdrX| jddd | jddgdd | jddd}|d dkrdd |d j d!d D }| jd"d |D d#d$d% d&d | jd'| jd(d)D }| jd'd*}| jd'd*}x"|D ]}| jd+| d,d-d% qW xT|D ]L}|\} }
d.| kr6| n|
}| jd+| dd/d% | jd0| d1d2d% qW x$|D ]}| jd3| d4d5d% qrW | jd6rx$|D ]}
| jd7|
d,d8d9 qW d S ):NZpodman_list_imagesZpodman_list_containers)z
podman imagesz podman psinfozimage trust showimageszimages --digestszpod psz
port --allZpszps -azstats --no-stream --allversionz volume lszsystem df -vc S s g | ]}d | qS )zpodman ).0sr r /usr/lib/python3.6/podman.py