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__/vdsm.cpython-310.pyc
o

i��dN�@sTddlmZmZddlZddlZddlZdZe�dde���ZGdd�dee�Z	dS)�)�Plugin�RedHatPluginNa$
global {
    locking_type=0
    metadata_read_only=1
    use_lvmetad=0
}
devices {
    preferred_names=["^/dev/mapper/"]
    ignore_suspended_devices=1
    write_cache_state=0
    disable_after_error_count=3
    use_devicesfile=0
    filter=["a|^/dev/disk/by-id/dm-uuid-mpath-|", "r|.+|"]
}
z\s+� c@s(eZdZdZdZdZdd�Zdd�ZdS)	�Vdsmz)VDSM - Virtual Desktop and Server Manager)�vdsmzvdsm-clientrc
s�|�d�|�d�|�d�|�d�|�ddg�|�gd��|�d�|��|�gd	��|�d
ddd
��|�d�}|rRgd��|��fdd�|D��|�gd��|�dtdtdtg�|�gd��z!|�d�}|ddkr�t	�
|d�}|D]
}|�d�|��q�Wnty�}z
|�
d|�WYd}~nd}~wwz&|�d�}|ddkr�t	�
|d�}d�|��fdd�|D��WdSWdSty�}z|�
d |�WYd}~dSd}~ww)!Nz/etc/pki/vdsm/keysz/etc/pki/vdsm/*/*-key.*z/etc/pki/libvirt/privatez%/var/lib/vdsm/storage/transient_disks�vdsmd�
supervdsmd)z/tmp/vds_installer*z/tmp/vds_bootstrap*z/etc/vdsm/*z/etc/pki/vdsm/z/var/log/vdsm/*)�/run/vdsm/*z/usr/libexec/vdsm/hooksz
/var/lib/vdsm�	vdsm_conf�vdsm_id�vdsm_import_log)z/etc/vdsm/vdsm.confz/etc/vdsm/vdsm.idz!/var/log/vdsm/import/import-*.logzqemu-kvm)�cmdline�status�
mountstatscs"g|]
}�D]}d||f�qqS)z/proc/%s/%s�)�.0�pid�name)�filesr�9/usr/lib/python3/dist-packages/sos/report/plugins/vdsm.py�
<listcomp>as�
��zVdsm.setup.<locals>.<listcomp>)zls -ldZ /etc/vdsmz1su vdsm -s /bin/sh -c 'tree -l /rhev/data-center'z0su vdsm -s /bin/sh -c 'ls -lR /rhev/data-center'z!lvm vgs -v -o +tags --config '%s'z!lvm lvs -v -o +tags --config '%s'z lvm pvs -v -o +all --config '%s')z vdsm-client Host getCapabilitieszvdsm-client Host getStatszvdsm-client Host getAllVmStatszvdsm-client Host getVMFullListzvdsm-client Host getDeviceListz"vdsm-client Host hostdevListByCapsz vdsm-client Host getAllTasksInfoz$vdsm-client Host getAllTasksStatusesz)vdsm-client Host getConnectedStoragePoolsrr�outputz5vdsm-client StoragePool getSpmStatus storagepoolID={}z-vdsm-client Host getConnectedStoragePools: %sz"vdsm-client Host getStorageDomainszvdsm-tool dump-volume-chains %scsg|]}�|�qSrr)r�uuid)�dump_volume_chains_cmdrrr�s�z&vdsm-client Host getStorageDomains: %s)�add_forbidden_path�add_service_status�
add_copy_spec�_add_vdsm_forbidden_paths�
add_file_tags�get_process_pids�add_cmd_output�
LVM_CONFIG�collect_cmd_output�json�loads�format�
ValueError�
_log_error)�self�	qemu_pids�res�pools�pool�e�sd_uuidsr)rrr�setup@sx




�
��������
�����z
Vdsm.setupcCs(t�d�D]}|�d�r|�|�qdS)zJAdd confidential sysprep vfds under /run/vdsm to
         forbidden paths r	)z.vfdz/isoUploaderz/storageN)�glob�endswithr)r(�	file_pathrrrr�s


��zVdsm._add_vdsm_forbidden_pathsN)�__name__�
__module__�__qualname__�
short_desc�packages�plugin_namer/rrrrrr6sYr)
�sos.report.pluginsrrr0r#�rer!�sub�striprrrrr�<module>s


Spamworldpro Mini