Ñò K<Ì]c@sqddklZlZddkZddkZddklZddklZlZdeefd„ƒYZ dS(iÿÿÿÿ(tPlugint RedHatPluginN(tglob(tdatetimet timedeltatClustercBs³eZdZdZdZdddefdddefdd defd d d efgZd dddddddgZdgZ dZ eZ d„Z d„Z d„Zd„ZRS(s.CentOS Cluster High Availability and GFS2 tclustert gfs2lockdumpsgather output of gfs2 lockdumpstslowtcrm_froms%specify the start time for crm_reporttfasttlockdumpsgather dlm lockdumpst crm_scrubs(enable password scrubbing for crm_reportttlucitriccitcorosynctopenaistcmant clusterlibs fence-agentst pacemakers/etc/cluster/cluster.confs/sys/kernel/debugcCsû|idƒ|idƒ|idƒ|idddddd d d d d dddg ƒ|idƒo%|iƒo|idgƒqn|idƒo|iƒn|iddddddddddddd d!dd"d#d$d%d&d'd(d)gƒtiƒtd*d+ƒi d,ƒ}|id-ƒt j oSt i d.t |id-ƒƒƒo|id-ƒ}q‹|id/|id-ƒƒn|id0d1d2t ƒ}d3}|id4ƒp$d5}|id6ƒ|id7ƒn|id8|||fƒdS(9Ns /var/lib/ricci/certs/key[3-4].dbs /var/lib/ricci/certs/privkey.pems/var/lib/ricci/certs/server.p12s/etc/cluster.confs /etc/clusters/etc/sysconfig/dlms/etc/sysconfig/pacemakers/etc/sysconfig/clusters/etc/sysconfig/cmans/etc/fence_virt.confs/var/lib/riccis/var/lib/luci/data/luci.dbs/var/lib/luci/etcs/var/log/clusters /var/log/lucis/sys/fs/gfs2/*/withdrawRs/sys/kernel/debug/gfs2/*R s&rg_test test /etc/cluster/cluster.confsfence_tool ls -nsgfs_control ls -nsdlm_tool log_plocktclustatsgroup_tool dumpscman_tool servicesscman_tool nodesscman_tool statussccs_tool lsnodescorosync-quorumtool -lscorosync-quorumtool -sscorosync-cpgtoolscorosync-objctlsgfs_control dumpsfence_tool dumps dlm_tool dumpsdlm_tool ls -ns mkqdisk -Ls pcs configs pcs statusspcs property list --allthoursiHs%Y-%m-%d %H:%m:%SR s#\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}s:crm_from parameter '%s' is not a valid date: using defaulttnamet crm_reporttmakes -p "passw.*"R R s-scrubbing of crm passwords has been disabled:s:data collected by crm_report may contain sensitive values.s)crm_report %s -S -d --dest %s --from "%s"(tadd_forbidden_patht add_copy_spect get_optiont _mount_debugt do_lockdumptadd_cmd_outputRttodayRtstrftimetFalsetretmatchtstrt _log_errortget_cmd_output_patht _log_warn(tselfR tcrm_destR ((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pytsetup4s~          cCs”|iƒoƒd}|i|ƒ}|ddjodSd}ti|tiƒ}x:|i|dƒD]!}|id|dd|ƒqgWndS( Ns dlm_tool lststatusis^name\s+([^\s]+)$toutputsdlm_tool lockdebug -svw '%s'tsuggest_filenames dlm_locks_%s(Rt call_ext_progR#tcompilet MULTILINEtfindallR(R)tdlm_tooltresulttlock_exptlock_ret lockspace((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyR€s  cCswtii|iƒpNt|_|id|iƒ}|ddjo|idƒt|_qdntii|iƒS(Nsmount -t debugfs debugfs %sR,is,debugfs not mounted and mount attempt failed( tostpathtismountt debugfs_pathtTruet_debugfs_cleanupR/R&R"(R)tr((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRs    cCsÊx'tdƒD]}|i|ddƒq W|idddƒ|idd dƒ|id d d ƒ|ioYtii|iƒoC|i d |iƒ}|ddjo|i d|iƒqÆndS(Ns/etc/cluster/cluster.conf*s.(\s*\((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pytpostproc™s.   (R(t__name__t __module__t__doc__t plugin_nametprofilesR"R<t option_listtpackagestfilesR;R=R+RRRC(((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRs,   L  ( t sos.pluginsRRR#tos.pathR8RRRR(((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyts