+
    i  c                   sJ    ^ RI Ht ^ RIHt ^ RIHtHtHt  ! R R]]4      tR# )i    )match)quote)PluginRedHatPlugin	PluginOptc                   sj   a  ] tR t^t o RtRtRtRt]! R^RR7      .t	Rt
RtRtRtR	 tR
 tR tRtV tR# )PulpzPulp platformZpulptasksz*number of tasks to collect from DB queries)ZdefaultZdescZ	localhostZ27017 c                s   R pRp \        RRRR7      ;_uu_ 4       pVP                  4       P                  4       pRRR4       X EF&  p\        RV4      '       dY   VP	                  4       ^,          P	                  R4      ^ ,          P	                  R	4      pV^ ,          V n        V^,          V n        \        R
V4      '       d    RVP	                  4       ^,           2V n        \        RV4      '       d    RVP	                  4       ^,           2V n        VP                  R4      '       d   RpV'       g   K  VP                  R4      '       g   EK  VP	                  4       ^,          pRpEK)  	  V P                  RR/4       V P                  . R(O4       V P                  R4      pV P                  RV R24      pV P                  RV R24      p	V P                  RV R24      p
V P                  R4      pV P                  R4      pV P                  VRR7       V P                  V	RR7       V P                  V
RR7       V P                  VRR7       V P                  VRR7       R  F   pV P                  R!V R"V R#2R$V 2R%7       K"  	  V P                  R&R'R7       R#   + '       g   i     ELp; i  \         d     ELTi ; i))r   Fz/etc/pulp/server.confZrzUTF-8)ZencodingNz^\s*seeds:\s+\S+:\S+Z,Z:z\s*username:\s+\S+z-u z\s*password:\s+\S+z-p z[messaging]Tz	certfile:z/etc/default/pulp_workersZpulp_worker_defaultsr   z"DBQuery.shellBatchSize=zG;; db.task_status.find().sort({finish_time: -1}).pretty().shellPrint()"z6;; db.reserved_resources.find().pretty().shellPrint()"zK;; 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()"zmongo-task_status)Zsuggest_filenamezmongo-reserved_resourceszpulp-running_taskszmongo-collection_sizeszmongo-db_statsZquczqpid-stat -z --ssl-certificate=z -b amqps://localhost:5671Z
qpid_stat_)Ztagszosudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' DJANGO_SETTINGS_MODULE='pulpcore.app.settings' dynaconf listZdynaconf_list)z/etc/pulp/*.conf/etc/pulp/settings.py/etc/pulp/settings.local.pyz /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*)ZopenZreadZ
splitlinesr    Zsplitdbhostdbportdbuser
dbpasswordZ
startswithZIOErrorZadd_file_tagsZadd_copy_specZ
get_optionbuild_mongo_cmdZadd_cmd_output)selfZmessaging_cert_fileZin_messaging_sectionZfileZ
pulp_linesZlineZuriZ	num_tasksZmtasksZmresZprunZcsizesZdbstatsZopts   &             </usr/lib/python3.14/site-packages/sos/report/plugins/pulp.pysetupZ
Pulp.setup!   s    !$	-sWEE!YY[335
 F"0$77**,q///4Q7==cBC"%a&DK"%a&DK.55$'

Q'8"9DK.55(+DJJLO+<&=DO??=11+/(''DOOK,H,H*.**,q/'+0( #$ 	')?
 	 	 
 	 OOG,	%%'	{ 3' '
 ##'	{ 3C C

 ##'	{ 3 
 %%M
. &&'78F5HID3MND3GHF5MNG6FGCcU"5&''AC!#'   )  	K, 	 	
A FEE   		s:   J6 J"C0J6 ,J6 8J6 J6 "J3	-	J6 6KKc                s    RpRV P                    RV P                   RV P                   RV P                   2pRpV\	        WCV3,          4      ,          # )zBuild mongoDB command z
bash -c %sz--host z --port Z z mongo pulp_database %s --eval %s)r
   r   r   r   r   )r   ZqueryZ_cmdZ_mondbZ_moncmds   &&   r   r   ZPulp.build_mongo_cmd   sU    DKK=Qt{{m1__%'4eGuo5666    c                s    R pRpV P                  RW4       RpRpV P                  RW24       RpRpV P                  RWB4       V P                  RVV4       V P                  R	WB4       R
# )z0(([a-z].*(passw|token|cred|secret).*)\:(\s))(.*)z\1 ********z/etc/pulp/(.*)\.conf$z7(\s*\".*(passw|cred|token|secret).*\"\s*:(\s))(.*)(\w+)z
\1********z/etc/pulp(.*)(.json$)z_((?:SECRET_KEY|AUTH_LDAP_BIND_PASSWORD)(?:\<.+\>)?(\s*=)?|(password|PASSWORD)(\"|'|:)+)\s*(\S*)r   r	   zdynaconf listN)Zdo_path_regex_subZdo_cmd_output_sub)r   ZetcregZreplZjregZkey_pass_res   &    r   postprocZPulp.postproc   s     E7F
 J6C, 6J<k#	%Br   )r
   r   r   r   N)zpulp-serverzpulp-katellozpython3-pulpcore)r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z
short_descZplugin_nameZpackagesZfilesr   Zoption_listr
   r   r   r   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s^      JKBH&E'3C	EK
 FFFJt
l7C Cr   r   N)	Zrer    Zshlexr   Zsos.report.pluginsr   r   r   r   ) r   r   <module>r      s%      > >kC6< kCr   