+
    i  c                   s<    ^ RI t ^ RIHtHtHt  ! R R]]]4      tR# )i    N)PluginRedHatPluginUbuntuPluginc                   sD   a  ] tR t^t o RtRtRtRtR	tR
t	R t
R tRtV tR# )CephOSDa  
This plugin is for capturing information from Ceph OSD nodes. While the
majority of this plugin should be version agnostic, several collections are
dependent upon the version of Ceph installed. Versions that correlate to
RHCS 4 or RHCS 5 are explicitly handled for differences such as those
pertaining to log locations on the host filesystem.

Note that while this plugin will activate based on the presence of Ceph
containers, commands are run directly on the host as those containers are
often not configured to successfully run the `ceph` commands collected by
this plugin. These commands are majorly `ceph daemon` commands that will
reference discovered admin sockets under /var/run/ceph.
zCEPH osdZceph_osdc                s   V P                  R 4      pRpV P                  P                  P                  R4      p. RNRNRNRNRNRNR	NR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NpV'       gk   R#pV P	                  R$R%/4       V P                  . R1O4       V P                  . R2O4       V P                  R&R'.4       V'       d   V P                  R(R).4       MBR*pV P                  . R3O4       V P                  R+R,.4       V'       d   V P                  R-.4       T P                  V P                  V4       UUu. uF  pV F  pR.V R/V 2NK  	  K  	  upp4       R0# u uppi )4all_logsZ Z	microcephzbluestore bluefs availableZdump_reservationszbluefs statszbluestore allocator dump blockzbluestore bluefs device infozconfig diffzconfig showzcounter dumpzcounter schemaZdump_blocked_opsZdump_blocklistZdump_historic_ops_by_durationZdump_historic_slow_opsZdump_mempoolsZdump_op_pq_stateZdump_ops_in_flightZdump_osd_networkZdump_pgstate_historyZdump_recovery_reservationsZdump_scrubsZdump_watchersZget_mapped_poolsZlist_devicesZlist_unfoundzlog dumpZobjecter_requestsZopsz	perf dumpzperf histogram dumpzperf schemaZstatusZversionz/var/run/cephz(/var/log/ceph/(.*/)?ceph-(.*-)?osd.*.logZceph_osd_logzceph-disk listzceph-volume lvm listz/var/log/ceph/**/ceph-osd*.log*z"/var/log/ceph/**/ceph-volume*.log*z/var/snap/microceph/current/run%/var/snap/microceph/common/data/osd/*z./var/snap/microceph/common/logs/*ceph-osd*.logz//var/snap/microceph/common/logs/*ceph-osd*.log*zceph daemon Z N)z/etc/ceph/*keyring*z/var/lib/ceph/**/*keyring*z/var/lib/ceph/**/tmp/*mnt*z/etc/ceph/*bindpass*)z/run/ceph/**/ceph-osd*z/var/lib/ceph/**/kv_backendz/var/log/ceph/**/ceph-osd*.logz!/var/log/ceph/**/ceph-volume*.log)z'/var/snap/microceph/common/**/*keyring*z(/var/snap/microceph/current/**/*keyring*z"/var/snap/microceph/common/state/*)	Z
get_optionZpolicyZpackage_managerZpkg_by_nameZadd_file_tagsZadd_forbidden_pathZadd_copy_specZadd_cmd_output	get_socks)selfr   	directoryZmicroceph_pkgZcmdsZiZcs   &      @/usr/lib/python3.14/site-packages/sos/report/plugins/ceph_osd.pysetupZCephOSD.setup'   s   ??:.	33??L#
(#
  #

 #
 -#
 +#
 #
 #
 #
 #
 #
 #
 ,#
 %#
  !#
" ##
$ !%#
& '#
( #)#
* )+#
, -#
. /#
0 1#
2 3#
4 5#
6 7#
8  9#
: ;#
< =#
> "?#
@ A#
B C#
D E#
J 'I:N   ## %       &! 
 ""58$  :I## %  7@  
 ""E$ 
 	NN9%5% ()/3! 1#Qqc"/3 #%5 	
 5s   E2
c                s    . p\         P                  ! V4       FQ  w  r4pV FE  pVP                  R4      '       g   K  RV9   g   K%  VP                  V P	                  W64      4       KG  	  KS  	  V# )z
Find any available admin sockets under /var/run/ceph (or subdirs for
later versions of Ceph) which can be used for ceph daemon commands
z.asokZosd)osZwalkZendswithZappendZ	path_join)r   r   Zceph_socketsZrdirZ_filesZfiles   &&     r	   r   ZCephOSD.get_socks   s^    
  ggi0NDU==))etm ''t(BC  1      N)ZstorageZvirtZ	containerZceph)zceph-(.*-)?osd.*)z/var/lib/ceph/osd/*z/var/lib/ceph/*/osd*r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z
short_descZplugin_nameZprofilesZ
containersr   r
   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r	   r   r      s8      JK7H&J6Eb
H
 
r   r   )r   Zsos.report.pluginsr    r   r   r   r   r   r	   <module>r      s"    
 A AEflL Er   