HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/openstack_cinder.cpython-38.pyc
U

i��dM�@sRddlmZmZmZmZGdd�de�ZGdd�deee�ZGdd�dee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s8eZdZdZdZdZdZdZdd�Zdd	�Z	d
d�Z
dS)
�OpenStackCinderzOpenStack cinderZopenstack_cinder)Z	openstackZopenstack_controller)�.*cinder_apiz,/var/lib/config-data/puppet-generated/cinderc
Cs�|�d�d}d}dddg}d}|D]}|�|�}|r$q<q$|�d�}|rT||j}|s\|rr|jd	|d
dd�|�d�|�d
|jd
|jd|jd|jd|jd|jdg�|�d�r�|�dd�|j�g�n|�dd�|j�g�dS)Nz/etc/cinder/volumes�z--config-dir %s/etc/cinder/Zcinder_wsgizcinder-wsgi�
cinder-apiFrzcinder-manage z db versionZcinder_db_version)Zsuggest_filenamez/etc/cinder/z/etc/httpd/conf/z/etc/httpd/conf.d/z /etc/httpd/conf.modules.d/*.confz/etc/my.cnf.d/tripleo.cnfz/etc/sysconfig/Zall_logsz/var/log/cinder/z/var/log/{}*/cinder*z/var/log/cinder/*.logz/var/log/{}*/cinder*.log)	Zadd_forbidden_pathZcheck_process_by_nameZcontainer_exists�var_puppet_genZadd_cmd_output�
add_copy_specZ
get_option�format�	apachepkg)�selfZ
cinder_configZcinder_config_optZcinder_processZin_psZprocessZin_container�r�E/usr/lib/python3/dist-packages/sos/report/plugins/openstack_cinder.py�setupsH





�
�


�
�zOpenStackCinder.setupcCs&|�d||�|�|jd||�dS)Nz
/etc/cinder/*)Zdo_path_regex_subr
)rZregexpZsubstrrr�apply_regex_subJs�zOpenStackCinder.apply_regex_subcCsrddddddddd	d
ddd
dddddddddddddddg}dg}|�dd�|�d �|�d!d�|�d"�dS)#NZadmin_passwordZbackup_tsm_passwordZ
chap_passwordZnas_passwordZcisco_fc_fabric_passwordZcoraid_passwordZeqlx_chap_passwordZfc_fabric_passwordZhitachi_auth_passwordZhitachi_horcm_passwordZhp3par_passwordZhplefthand_passwordZmemcache_secret_keyZnetapp_passwordZnetapp_sa_passwordZnexenta_passwordZpasswordZ
qpid_passwordZrabbit_passwordZsan_passwordZssl_key_passwordZvmware_host_passwordZzadara_passwordZzfssa_initiator_passwordZ	hmac_keysZzfssa_target_passwordZos_privileged_user_passwordZ
transport_urlZ
connectionz(^\s*(%s)\s*=\s*)(.*)�|z\1*********z)(^\s*(%s)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6)r�join)rZprotect_keysZconnection_keysrrr�postprocQsP����zOpenStackCinder.postprocN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZ
containersr
rrrrrrrrs/rc@seZdZdZdZdZdS)�DebianCinderFZapache2)r	z
cinder-backupz
cinder-commonzcinder-schedulerz
cinder-volumez
python-cinderzpython3-cinderN)rrr�cinderr
�packagesrrrrrksrcs(eZdZdZdZdZ�fdd�Z�ZS)�RedHatCinderFZhttpd)zopenstack-selinuxcstt|���|�dg�dS)Nz/etc/sudoers.d/cinder)�superrrr)r��	__class__rrr�szRedHatCinder.setup)rrrrr
rr�
__classcell__rrrrrzsrN)Zsos.report.pluginsrrrrrrrrrrr�<module>sY