+
    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# )CephMGRa  
This plugin is for capturing information from Ceph mgr 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 majorily `ceph daemon` commands that will
reference discovered admin sockets under /var/run/ceph.

Users may expect to see several collections twice - once in standard output
from the `ceph` command, and again in JSON format. The latter of which will
be placed in the `json_output/` subdirectory within this plugin's directory
in the report archive. These JSON formatted collections are intended to
aid in automated analysis.
zCEPH mgrZceph_mgrc                s   V P                  R 4      pV P                  P                  P                  R4      p. ROpV P	                  R4      pVR,          ^ 8X  d   V. RO,          p. ROpRpV'       gj   RpV P                  RR/4       V P                  . RO4       V'       g   V P                  R.4       MV P                  R	.4       V P                  . RO4       MTR
pV P                  RR/4       V P                  R.4       V'       g   V P                  R.4       MV P                  R.4       T P                  V Uu. uF  pRV 2NK
  	  up4       T P                  V Uu. uF	  pRV R2NK  	  upRR7       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       R# u upi u upi u uppi )all_logsZ	microcephzceph orch statusstatusZ z/var/run/cephz"/var/log/ceph/(.*/)?ceph-mgr.*.logZceph_mgr_logz/var/log/ceph/**/ceph-mgr*.logz/var/log/ceph/**/ceph-mgr*.log*z/var/snap/microceph/current/runz./var/snap/microceph/common/logs/ceph-mgr.*.logz'/var/snap/microceph/common/**/*keyring*z-/var/snap/microceph/common/logs/ceph-mgr*.logz./var/snap/microceph/common/logs/ceph-mgr*.log*zceph z --format json-prettyZjson_output)Zsubdirzceph daemon Z N)zbalancer evalzbalancer statuszbalancer status detailzhealthcheck history lszlog last cephadmzmgr dumpzmgr metadatazmgr module lszmgr serviceszmgr statzmgr versions)zorch host lszorch device lszorch lszorch ls --exportzorch pszorch status --detailzorch upgrade status)zconfig diffzconfig showzcounter dumpzcounter schemaZ
dump_cacheZdump_mempoolsZdump_osd_networkZmds_requestsZmds_sessionsZobjecter_requestsz	perf dumpzperf histogram dumpzperf histogram schemazperf schemar   Zversion)z/etc/ceph/*keyring*z/var/lib/ceph/**/*keyring*z/var/lib/ceph/**/osd*z/var/lib/ceph/**/mon*z/var/lib/ceph/**/tmp/*mnt*z/etc/ceph/*bindpass*)z/var/lib/ceph/**/mgr*z/var/lib/ceph/**/bootstrap-mgr/z/run/ceph/**/ceph-mgr*)
Z
get_optionZpolicyZpackage_managerZpkg_by_nameZexec_cmdZadd_file_tagsZadd_forbidden_pathZadd_copy_specZadd_cmd_output	get_socks)	selfr   Zmicroceph_pkgZceph_mgr_cmdsZorch_configuredZcmds	directoryZcmdZms	   &        @/usr/lib/python3.14/site-packages/sos/report/plugins/ceph_mgr.pysetupZCephMGR.setup-   s   ??:.33??L
 --(:;8$)  M
& 	'I4n   ## 	% 	 ""4$  ""5$      :I@  
 ##9%  ""C$  ""D$  	&34msuSE]m4	6 	;HI=CuSE./=I  	 	

 	.2nnY.G.G 1#Qse$ %.G 	
 5 Js   ?F>#GG
c                s    . p\         P                  ! V4       Fa  w  r4pV FU  pVP                  R4      '       g   K  VP                  R4      '       g   K5  VP	                  V P                  W64      4       KW  	  Kc  	  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ceph-mgrz.asok)osZwalkZ
startswithZendswithZappendZ	path_join)r   r   Zceph_socketsZrdirZ_filesZfiles   &&     r	   r   ZCephMGR.get_socks   sf    
  ggi0NDU??:..4==3I3I ''t(BC  1      N)ZstorageZvirtZ	containerZceph)z/var/lib/ceph/mgr/*z/var/lib/ceph/*/mgr*z%/var/snap/microceph/common/data/mgr/*)zceph-(.*-)?mgr.*)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z
short_descZplugin_nameZprofilesr   Z
containersr
   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r	   r   r      s8     ( JK7H6E&Js
j
 
r   r   )r   Zsos.report.pluginsr    r   r   r   r   r   r	   <module>r      s"    
 A A\flL \r   