%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/vdsm.cpython-312.pyc

�

i��dN���ddlmZmZddlZddlZddlZdZejdde�j�ZGd�dee�Z	y)�)�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�$�eZdZdZdZdZd�Zd�Zy)�Vdsmz)VDSM - Virtual Desktop and Server Manager)�vdsmzvdsm-clientrc��|jd�|jd�|jd�|jd�|jddg�|jgd��|jd�|j�|jgd	��|j	d
ddd
��|jd�}|r2gd�}|j|D��cgc]}|D]
}d|�d|�����c}}�|j
gd��|j
dtzdtzdtzg�|j
gd��	|jd�}|ddk(r?tj|d�}|D]"}|j
dj|���$	|jd�}|ddk(r=tj|d�}	d}
|j
|	D�cgc]}|
|z��	c}�yycc}}w#t$r}|jd|z�Yd}~��d}~wwxYwcc}w#t$r}|jd|z�Yd}~yd}~wwxYw) 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�
mountstatsz/proc/�/)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 %sz&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�files�pid�name�res�pools�pool�e�sd_uuids�dump_volume_chains_cmd�uuids            �9/usr/lib/python3/dist-packages/sos/report/plugins/vdsm.py�setupz
Vdsm.setup@s������ 4�5���� 9�:���� :�;���� G�H�����,� 7�8����
�	�	
���,�-��&�&�(����
�	�	
���#.�!*�1B�
�	��)�)�*�5�	��7�E����$� ��!� ��"%�d�+� �+� �
�
	
���
�	�
	
���1�J�>�1�J�>�0�:�=�
�	�	
���	
�		�	��)�)�;��C��8�}��!��
�
�3�x�=�1��!��D��'�'�,�,2�F�4�L���	��)�)�*N�O�C��8�}��!��:�:�c�(�m�4��)J�&��#�#�>F�%�6:�*�T�1�%��"��[ ��L�	��O�O�?�1�E�
�
��	��%���	��O�O�8�A�>�
�
��	�sJ�G9
�	AG?�"AH.�$H)�0H.�?	H&�H!�!H&�)H.�.	I�7I�Ic�~�tjd�D]%}|jd�s�|j|��'y)zJAdd confidential sysprep vfds under /run/vdsm to
         forbidden paths r)z.vfdz/isoUploaderz/storageN)�glob�endswithr)r#�	file_paths  r/rzVdsm._add_vdsm_forbidden_paths�s9�����=�1�	3�I��!�!�"F�G��'�'�	�2�	3�N)�__name__�
__module__�__qualname__�
short_desc�packages�plugin_namer0r�r5r/rr6s!��<�J��H�
�K�W�r3r5r)
�sos.report.pluginsrrr2r�rer�sub�striprr<r5r/�<module>rAsI��4���	�*�
��R�V�V�F�C��
,�
2�
2�
4�
�i3�6�<�i3r5

Zerion Mini Shell 1.0