ó C»bc@s‰ddlmZmZmZmZddlZddlZdefd„ƒYZdeefd„ƒYZ deeefd„ƒYZ dS( iÿÿÿÿ(tPlugint RedHatPlugint DebianPlugint UbuntuPluginNtCorosynccBs2eZdZdZdZdZd„Zd„ZRS(s Corosync cluster engine tcorosynctclusterc Csü|jdddgƒ|jdddddd d d gƒ|jd ƒd }tjj|ƒsddSd}yatd ƒO}xE|D]=}tj||ƒrƒ|jtj ||ƒj dƒƒqƒqƒWWdQXWn*t k r÷}|j d||fƒnXdS(Ns /etc/corosyncs/var/lib/corosync/fdatas/var/log/cluster/corosync.logscorosync-quorumtool -lscorosync-quorumtool -sscorosync-cpgtoolscorosync-cfgtool -sscorosync-blackboxscorosync-objctl -ascorosync-cmapctlscorosync-cmapctl -m statsskillall -USR2 corosyncs/etc/corosync/corosync.confs ^\s*(logging.)?logfile:\s*(\S+)$iscould not read from %s: %s( t add_copy_spectadd_cmd_outputtexec_cmdtostpathtexiststopentretmatchtsearchtgrouptIOErrort _log_warn(tselft corosync_conftpatterntftlinete((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pytsetups2    3cCs|jdddƒdS(Nscorosync-objctls(.*fence.*\.passwd=)(.*)s\1******(tdo_cmd_output_sub(R((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pytpostproc:s(R(R(t__name__t __module__t__doc__t plugin_nametprofilestpackagesRR(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRs  $tRedHatCorosynccBseZd„ZRS(cCstt|ƒjƒdS(N(tsuperR#R(R((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRDs(RRR(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR#BstDebianCorosynccBseZd„ZdZRS(cCstt|ƒjƒdS(N(R$R%R(R((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRJss/usr/sbin/corosync(s/usr/sbin/corosync(RRRtfiles(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR%Hs ( t sos.pluginsRRRRtos.pathR RRR#R%(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyt s "  4