• R/O
  • SSH

pm_logconv-cs: Commit

Pacemaker 対応ログメッセージ変換機能。

Heartbeat-2.1.4 用 hb-logconv(*) のPacemaker 1.0.x + Corosync スタック対応版。
(*) http://sourceforge.jp/projects/linux-ha/releases/?package_id=10282


Commit MetaInfo

Revision9408666e7b2ac3e7ced76e567906d5e362126559 (tree)
Time2013-05-29 17:29:23
AuthorYoshihiko SATO <satoyoshi@inte...>
CommiterYoshihiko SATO

Log Message

リソース操作が発生しなくてもF/O成功となる不具合を修正

Change Summary

Incremental Difference

diff -r 1b646010db8f -r 9408666e7b2a pm_logconv.py
--- a/pm_logconv.py Tue May 28 17:33:28 2013 +0900
+++ b/pm_logconv.py Wed May 29 17:29:23 2013 +0900
@@ -2753,6 +2753,7 @@
27532753 if unmanaged_rsc_exists == False:
27542754 # Confirm each resource's status.
27552755 detect_fo_failed = False
2756+ rsc_operated = False
27562757 for rscstat in self.rscstatList:
27572758 if rscstat.rscid in actRscList:
27582759 if rscstat.status == "Stopped" :
@@ -2763,9 +2764,13 @@
27632764 output_loglevel = self.LOG_INFO_LV
27642765 output_status = rscstat.status
27652766 if not (rscstat.status != "Stopped" and rscstat.operated != True):
2767+ rsc_operated = True
27662768 convertedlog = ("Resource %s : %s" % (rscstat.rscid, output_status))
27672769 outputobj.output_log(output_loglevel, convertedlog)
27682770
2771+ if not rsc_operated:
2772+ detect_fo_failed = True
2773+
27692774 if detect_fo_failed:
27702775 outputobj.output_log(self.LOG_ERR_LV, "fail-over failed.")
27712776 else:
Show on old repository browser