[ClusterLabs] crmsh resource failcount does not appear to work

Andrei Borzenkov arvidjaar at gmail.com
Sun Dec 24 02:57:57 EST 2017


As far as I can tell, pacemaker acts on failcount attributes qualified
by operation name, while crm sets/queries unqualified attribute; I do
not see any syntax to set fail-count for specific operation in crmsh.

ha1:~ # rpm -q crmsh
crmsh-4.0.0+git.1511604050.816cb0f5-1.1.noarch
ha1:~ # crm_mon -1rf
Stack: corosync
Current DC: ha2 (version 1.1.17-3.3-36d2962a8) - partition with quorum
Last updated: Sun Dec 24 10:55:54 2017
Last change: Sun Dec 24 10:55:47 2017 by hacluster via crmd on ha2

2 nodes configured
4 resources configured

Online: [ ha1 ha2 ]

Full list of resources:

 stonith-sbd	(stonith:external/sbd):	Started ha1
 rsc_dummy_1	(ocf::pacemaker:Dummy):	Started ha2
 Master/Slave Set: ms_Stateful_1 [rsc_Stateful_1]
     Masters: [ ha1 ]
     Slaves: [ ha2 ]

Migration Summary:
* Node ha2:
* Node ha1:
ha1:~ # echo xxx > /run/Stateful-rsc_Stateful_1.state
ha1:~ # crm_failcount -G -r rsc_Stateful_1
scope=status  name=fail-count-rsc_Stateful_1 value=1
ha1:~ # crm resource failcount rsc_Stateful_1 show ha1
scope=status  name=fail-count-rsc_Stateful_1 value=0
ha1:~ # crm resource failcount rsc_Stateful_1 set ha1 4
ha1:~ # crm_failcount -G -r rsc_Stateful_1
scope=status  name=fail-count-rsc_Stateful_1 value=1
ha1:~ # crm resource failcount rsc_Stateful_1 show ha1
scope=status  name=fail-count-rsc_Stateful_1 value=4
ha1:~ # cibadmin -Q | grep fail-count
          <nvpair
id="status-1084752129-fail-count-rsc_Stateful_1.monitor_10000"
name="fail-count-rsc_Stateful_1#monitor_10000" value="1"/>
          <nvpair id="status-1084752129-fail-count-rsc_Stateful_1"
name="fail-count-rsc_Stateful_1" value="4"/>
ha1:~ #




More information about the Users mailing list