Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o ���b' � @ sB d dl mZmZmZ d dlmZ d dlmZ G dd� dee�ZdS )� )�Plugin�RedHatPlugin� PluginOpt)�quote)�matchc @ sD e Zd ZdZdZdZdZedddd�gZd d � Z dd� Z d d� ZdS )�Pulpz Pulp platform�pulp)zpulp-serverzpulp-katellozpython3-pulpcore)�/etc/pulp/settings.py�tasks�� z*number of tasks to collect from DB queries)�default�descc s� d� _ d� _d� _d� _d� _d}z]td��� �� D ]R}td|�r9|� � d � d�d � d �}|d � _ |d � _td|�rGd|� � d � _td |�rUd|� � d � _|� d�r\d}|rl|� d�rl|� � d � _d}qW n tyw Y nw � �ddi� � � g d�� � �d�}� �d| �}� �d| �}� �d| �}� �d�}� �d�} � j|dd� � j|dd� � j|dd� � j|dd� � j| d d� � �� fd!d"�d#D �� � jd$d%d� d S )&N� localhost�27017� Fz/etc/pulp/server.confz^\s*seeds:\s+\S+:\S+� �,r �:z\s*username:\s+\S+z-u %sz\s*password:\s+\S+z-p %sz[messaging]Tz certfile:z/etc/default/pulp_workers�pulp_worker_defaults) z/etc/pulp/*.confr z /etc/pulp/server/plugins.conf.d/z/etc/default/pulp*z/var/log/httpd/pulp-http.log*z/var/log/httpd/pulp-https.log*z(/var/log/httpd/pulp-http_access_ssl.log*z)/var/log/httpd/pulp-https_access_ssl.log*z'/var/log/httpd/pulp-http_error_ssl.log*z(/var/log/httpd/pulp-https_error_ssl.log*r za"DBQuery.shellBatchSize=%s;; db.task_status.find().sort({finish_time: -1}).pretty().shellPrint()"zP"DBQuery.shellBatchSize=%s;; db.reserved_resources.find().pretty().shellPrint()"ze"DBQuery.shellBatchSize=%s;; db.task_status.find({state:{\$ne: \"finished\"}}).pretty().shellPrint()"a� "function humanReadable(bytes) { var i = -1; var byteUnits = ['kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; do { bytes = bytes / 1024; i++; } while (bytes > 1024); return Math.max(bytes, 0.1).toFixed(1) + ' ' + byteUnits[i];};var collectionNames = db.getCollectionNames(), stats = [];collectionNames.forEach(function (n) { stats.push(db[n].stats()); });stats = stats.sort(function(a, b) { return b['size'] - a['size']; });for (var c in stats) { print(stats[c]['ns'] + ': ' + humanReadable(stats[c]['size']) + ' (' + humanReadable(stats[c]['storageSize']) + ')'); }"z"db.stats()"zmongo-task_status)�suggest_filenamezmongo-reserved_resourceszpulp-running_taskszmongo-collection_sizeszmongo-db_statsc s g | ] }d |� j f �qS )z<qpid-stat -%s --ssl-certificate=%s -b amqps://localhost:5671)�messaging_cert_file)�.0�opt��self� �9/usr/lib/python3/dist-packages/sos/report/plugins/pulp.py� <listcomp>� s ���zPulp.setup.<locals>.<listcomp>�quczosudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' DJANGO_SETTINGS_MODULE='pulpcore.app.settings' dynaconf list� dynaconf_list)�dbhost�dbport�dbuser� dbpasswordr �open�read� splitlinesr �split� startswith�IOError� add_file_tags� add_copy_spec� get_option�build_mongo_cmd�add_cmd_output) r �in_messaging_section�line�uri� num_tasks�mtasks�mres�prun�csizes�dbstatsr r r �setup s| ���� ������� � �z Pulp.setupc C s4 d}d| j | j| j| jf }d}|t|||f � S )Nz bash -c %sz--host %s --port %s %s %sz mongo pulp_database %s --eval %s)r r! r"