id6ddlmZmZmZmZGddeeeZy))Plugin RedHatPlugin UbuntuPlugin PluginOptcpeZdZdZdZdZdZdZedddd ed dd d edddgZ dZ dZ y)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) container)r allFz0collect 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.)defaultdesc 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|jgd|jdddgd}|j|Dcgc]}d|z c}|jdr|jdd |jd d g|j d d}|ddk(rY|dj ddDcgc]}|j d}}|j|Dcgc]}d|z c}dd|jd|jdDcgc]}|d }}|jd} |jd} |D]} |jd| zdd| D]&} | \} }d| vr| n|}|jd|zd d!(| D]}|jd"|zd#d$|jd%r|D]}|jd&|zdd'(yycc}wcc}wcc}wcc}w))N) HTTP_PROXY HTTPS_PROXYNO_PROXY ALL_PROXYpodman_list_imagespodman_list_containers)z podman imagesz podman ps) infoimageszimages --digestszpod psz port --allpszps -azstats --no-stream --allversionz volume lsz podman %srz podman ps -asd)priorityzls -alhR /etc/cnizls -alhR /etc/containerszpodman network lspodman_list_networks)tagsstatusroutputzpodman network inspect %snetworkspodman_network_inspect)subdirrr r )runtimeget_all)r&zpodman inspect %s containerspodman_container_inspectnonerpodman_image_inspectzpodman volume inspect %svolumespodman_volume_inspectrzpodman logs -t %s2)r%r) add_env_var add_cmd_tagsadd_cmd_output get_optioncollect_cmd_output splitlinessplitget_containersget_container_imagesget_container_volumes)selfsubcmdsspnetspnnetsnetcr(rr,r imgnameimg_idinspvolcons ;/usr/lib/python3/dist-packages/sos/report/plugins/podman.pysetupz Podman.setup2s    11    g>[1_>? ??6 "   #  >   &  ''(;-C(E ?a ,1(O,F,F,H,LMbBHHJqMMDM   =A!69+c1! '?  A --h6:ooe6L.N AaD  **8*<,,X,># AI    3i ?'3%?  A A  =CLD&!-46D    3d :8%;  = =  >C    :S @'0%<  > > ??6 "! F##$7#$=+7"$F F #U?N! s G'8G,# G1 G6c.d}|jd|dy)Nz=(?P(pass|key|secret|PASS|KEY|SECRET).*?)=(?P.*?)"z *inspect*z\g=********")do_cmd_output_sub)r9 env_regexps rGpostproczPodman.postproc{s(  {J3 5N) __name__ __module__ __qualname____doc__ short_desc plugin_nameprofilespackagesr option_listrHrLrMrGrrso %JKHH %I> @ &%B: < &%: <K&GFR5rMrN)sos.report.pluginsrrrrrrWrMrGrYs ML|5V\<|5rM