<div dir="ltr">Oh, I forgot some important details:<div><br></div><div><div>root# (S) crm status</div><div>============</div><div>Last updated: Mon Jan 26 18:21:35 2015</div><div>Last change: Sun Jan 25 05:19:13 2015 via crm_resource on lb01</div><div>Stack: Heartbeat</div><div>Current DC: lb01 (43b2c5a1-9552-4438-962b-6e98a2dd67c7) - partition with quorum</div><div>Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff</div><div>2 Nodes configured, unknown expected votes</div><div>8 Resources configured.</div><div>============</div><div><br></div><div>Online: [ lb01 lb02 ]</div><div><br></div><div> IP-rsc_mysql<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPaddr2):<span class="" style="white-space:pre"> </span>Started lb02</div><div> IP-rsc_nginx<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPaddr2):<span class="" style="white-space:pre"> </span>Started lb02</div><div> IP-rsc_nginx6<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPv6addr):<span class="" style="white-space:pre"> </span>Started lb02</div><div> IP-rsc_mysql6<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPv6addr):<span class="" style="white-space:pre"> </span>Started lb02</div><div> IP-rsc_elasticsearch6<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPv6addr):<span class="" style="white-space:pre"> </span>Started lb02</div><div> IP-rsc_elasticsearch<span class="" style="white-space:pre"> </span>(ocf::heartbeat:IPaddr2):<span class="" style="white-space:pre"> </span>Started lb02</div><div> Ldirector-rsc<span class="" style="white-space:pre"> </span>(ocf::heartbeat:ldirectord):<span class="" style="white-space:pre"> </span>Started lb02</div><div> Nginx-rsc<span class="" style="white-space:pre"> </span>(ocf::heartbeat:nginx):<span class="" style="white-space:pre"> </span>Started lb02</div></div><div><br></div><div><br></div><div>This is running on:</div><div><br></div><div>Debian 7.8</div><div>pacemaker 1.1.7-1<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-26 18:20 GMT+01:00 Oscar Salvador <span dir="ltr"><<a href="mailto:osalvador.vilardaga@gmail.com" target="_blank">osalvador.vilardaga@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi!<div><br></div><div>I'm writing here because two days ago I experienced a strange problem in my Pacemaker Cluster.</div><div>Everything was working fine, till suddenly a Segfault in Nginx monitor resource happened:</div><div><br></div><div><div>Jan 25 03:55:24 lb02 crmd: [9975]: notice: run_graph: ==== Transition 7551 (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0, Source=/var/lib/pengine/pe-input-90.bz2): Complete</div><div>Jan 25 03:55:24 lb02 crmd: [9975]: notice: do_state_transition: State transition S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS cause=C_FSA_INTERNAL origin=notify_crmd ]</div><div>Jan 25 04:00:08 lb02 cib: [9971]: info: cib_stats: Processed 1 operations (0.00us average, 0% utilization) in the last 10min</div><div>Jan 25 04:10:24 lb02 crmd: [9975]: info: crm_timer_popped: PEngine Recheck Timer (I_PE_CALC) just popped (900000ms)</div><div>Jan 25 04:10:24 lb02 crmd: [9975]: notice: do_state_transition: State transition S_IDLE -> S_POLICY_ENGINE [ input=I_PE_CALC cause=C_TIMER_POPPED origin=crm_timer_popped ]</div><div>Jan 25 04:10:24 lb02 crmd: [9975]: info: do_state_transition: Progressed to state S_POLICY_ENGINE after C_TIMER_POPPED</div><div>Jan 25 04:10:24 lb02 pengine: [10028]: WARN: unpack_rsc_op: Processing failed op Ldirector-rsc_last_failure_0 on lb02: not running (7)</div><div>Jan 25 04:10:24 lb02 pengine: [10028]: notice: common_apply_stickiness: Ldirector-rsc can fail 999997 more times on lb02 before being forced off</div><div>Jan 25 04:10:24 lb02 crmd: [9975]: notice: do_state_transition: State transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [ input=I_PE_SUCCESS cause=C_IPC_MESSAGE origin=handle_response ]</div><div>Jan 25 04:10:24 lb02 pengine: [10028]: notice: process_pe_message: Transition 7552: PEngine Input stored in: /var/lib/pengine/pe-input-90.bz2</div></div><div><div>Jan 25 04:10:24 lb02 crmd: [9975]: info: do_te_invoke: Processing graph 7552 (ref=pe_calc-dc-1422155424-7644) derived from /var/lib/pengine/pe-input-90.bz2</div><div>Jan 25 04:10:24 lb02 crmd: [9975]: notice: run_graph: ==== Transition 7552 (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0, Source=/var/lib/pengine/pe-input-90.bz2): Complete</div><div>Jan 25 04:10:24 lb02 crmd: [9975]: notice: do_state_transition: State transition S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS cause=C_FSA_INTERNAL origin=notify_crmd ]</div><div><br></div><div><br></div><div>Jan 25 04:10:30 lb02 lrmd: [9972]: info: RA output: (Nginx-rsc:monitor:stderr) Segmentation fault ******* here it starts</div></div><div><br></div><div>As you can see, the last line.</div><div>And then:</div><div><br></div><div><div>Jan 25 04:10:30 lb02 lrmd: [9972]: info: RA output: (Nginx-rsc:monitor:stderr) Killed</div><div>/usr/lib/ocf/resource.d//heartbeat/nginx: 910: /usr/lib/ocf/resource.d//heartbeat/nginx: Cannot fork</div></div><div><br></div><div>I guess here Nginx was killed.</div><div><br></div><div>And then I have some others errors till Pacemaker decide to move the resources to the node:</div><div><br></div><div><div>Jan 25 04:10:30 lb02 crmd: [9975]: info: process_lrm_event: LRM operation Nginx-rsc_monitor_10000 (call=52, rc=2, cib-update=7633, confirmed=false) invalid parameter</div><div>Jan 25 04:10:30 lb02 crmd: [9975]: info: process_graph_event: Detected action Nginx-rsc_monitor_10000 from a different transition: 5739 vs. 7552</div><div>Jan 25 04:10:30 lb02 crmd: [9975]: info: abort_transition_graph: process_graph_event:476 - Triggered transition abort (complete=1, tag=lrm_rsc_op, id=Nginx-rsc_last_failure_0, magic=0:2;4:5739:0:42d1ed53-9686-4174-84e7-d2c230ed8832, cib=</div><div>3.14.40) : Old event</div><div>Jan 25 04:10:30 lb02 crmd: [9975]: WARN: update_failcount: Updating failcount for Nginx-rsc on lb02 after failed monitor: rc=2 (update=value++, time=1422155430)</div><div>Jan 25 04:10:30 lb02 crmd: [9975]: notice: do_state_transition: State transition S_IDLE -> S_POLICY_ENGINE [ input=I_PE_CALC cause=C_FSA_INTERNAL origin=abort_transition_graph ]</div><div>Jan 25 04:10:30 lb02 attrd: [9974]: info: log-rotate detected on logfile /var/log/ha-log</div><div>Jan 25 04:10:30 lb02 attrd: [9974]: notice: attrd_trigger_update: Sending flush op to all hosts for: fail-count-Nginx-rsc (1)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: ERROR: unpack_rsc_op: Preventing Nginx-rsc from re-starting on lb02: operation monitor failed 'invalid parameter' (rc=2)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: WARN: unpack_rsc_op: Processing failed op Nginx-rsc_last_failure_0 on lb02: invalid parameter (2)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: WARN: unpack_rsc_op: Processing failed op Ldirector-rsc_last_failure_0 on lb02: not running (7)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: common_apply_stickiness: Ldirector-rsc can fail 999997 more times on lb02 before being forced off</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: LogActions: Stop IP-rsc_mysql (lb02)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: LogActions: Stop IP-rsc_nginx (lb02)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: LogActions: Stop IP-rsc_nginx6 (lb02)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: LogActions: Stop IP-rsc_elasticsearch (lb02)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: LogActions: Move Ldirector-rsc (Started lb02 -> lb01)</div><div>Jan 25 04:10:30 lb02 pengine: [10028]: notice: LogActions: Move Nginx-rsc (Started lb02 -> lb01)</div><div>Jan 25 04:10:30 lb02 attrd: [9974]: notice: attrd_perform_update: Sent update 23: fail-count-Nginx-rsc=1</div><div>Jan 25 04:10:30 lb02 attrd: [9974]: notice: attrd_trigger_update: Sending flush op to all hosts for: last-failure-Nginx-rsc (1422155430)</div></div><div><br></div><div>I see that Pacemaker is complaining about some errors like "invalid paraemter", for example in these lines:</div><div><br></div><div>Jan 25 04:10:30 lb02 crmd: [9975]: info: process_lrm_event: LRM operation Nginx-rsc_monitor_10000 (call=52, rc=2, cib-update=7633, confirmed=false) invalid parameter<br></div><div><br></div><div>Jan 25 04:10:30 lb02 pengine: [10028]: ERROR: unpack_rsc_op: Preventing Nginx-rsc from re-starting on lb02: operation monitor failed 'invalid parameter' (rc=2)<br></div><div><br></div><div>It sounds(for me) like a syntax problem defining the resources, but I've checked the confic with crm_verify and there is no error:</div><div><br></div><div><div>root# (S) crm_verify -LVV</div><div>root# (S)</div></div><div><br></div><div>So I'm just wondering why pacemaker is complaining about an invalid parameter.</div><div><br></div><div>This is my CIB objetcs:</div><div><br></div><div><div>node $id="43b2c5a1-9552-4438-962b-6e98a2dd67c7" lb01</div><div>node $id="68328520-68e0-42fd-9adf-062655691643" lb02</div><div>primitive IP-rsc_elasticsearch ocf:heartbeat:IPaddr2 \</div><div><span style="white-space:pre-wrap"> </span>params ip="xx.xx.xx.xx" nic="eth0" cidr_netmask="255.255.255.224"</div><div>primitive IP-rsc_elasticsearch6 ocf:heartbeat:IPv6addr \</div><div><span style="white-space:pre-wrap"> </span>params ipv6addr="xxxxxxxxxxxxxxxx" \</div><div><span style="white-space:pre-wrap"> </span>op monitor interval="10s"</div><div>primitive IP-rsc_mysql ocf:heartbeat:IPaddr2 \</div><div><span style="white-space:pre-wrap"> </span>params ip="xx.xx.xx.xx" nic="eth0" cidr_netmask="255.255.255.224"</div><div>primitive IP-rsc_mysql6 ocf:heartbeat:IPv6addr \</div><div><span style="white-space:pre-wrap"> </span>params ipv6addr="xxxxxxxxxxxxxx" \</div><div><span style="white-space:pre-wrap"> </span>op monitor interval="10s"</div><div>primitive IP-rsc_nginx ocf:heartbeat:IPaddr2 \</div><div><span style="white-space:pre-wrap"> </span>params ip="xx.xx.xx.xx" nic="eth0" cidr_netmask="255.255.255.224"</div><div>primitive IP-rsc_nginx6 ocf:heartbeat:IPv6addr \</div><div><span style="white-space:pre-wrap"> </span>params ipv6addr="xxxxxxxxxxxxxx" \</div><div><span style="white-space:pre-wrap"> </span>op monitor interval="10s"</div><div>primitive Ldirector-rsc ocf:heartbeat:ldirectord \</div><div><span style="white-space:pre-wrap"> </span>op monitor interval="10s" timeout="30s"</div><div>primitive Nginx-rsc ocf:heartbeat:nginx \</div><div><span style="white-space:pre-wrap"> </span>op monitor interval="10s" timeout="30s"</div><div>location cli-standby-IP-rsc_elasticsearch6 IP-rsc_elasticsearch6 \</div><div><span style="white-space:pre-wrap"> </span>rule $id="cli-standby-rule-IP-rsc_elasticsearch6" -inf: #uname eq lb01</div><div>location cli-standby-IP-rsc_mysql IP-rsc_mysql \</div><div><span style="white-space:pre-wrap"> </span>rule $id="cli-standby-rule-IP-rsc_mysql" -inf: #uname eq lb01</div><div>location cli-standby-IP-rsc_mysql6 IP-rsc_mysql6 \</div><div><span style="white-space:pre-wrap"> </span>rule $id="cli-standby-rule-IP-rsc_mysql6" -inf: #uname eq lb01</div><div>location cli-standby-IP-rsc_nginx IP-rsc_nginx \</div><div><span style="white-space:pre-wrap"> </span>rule $id="cli-standby-rule-IP-rsc_nginx" -inf: #uname eq lb01</div><div>location cli-standby-IP-rsc_nginx6 IP-rsc_nginx6 \</div><div><span style="white-space:pre-wrap"> </span>rule $id="cli-standby-rule-IP-rsc_nginx6" -inf: #uname eq lb01</div><div>colocation hcu_c inf: Nginx-rsc Ldirector-rsc IP-rsc_mysql IP-rsc_nginx IP-rsc_nginx6 IP-rsc_elasticsearch</div><div>order hcu_o inf: IP-rsc_nginx IP-rsc_nginx6 IP-rsc_mysql Ldirector-rsc Nginx-rsc IP-rsc_elasticsearch</div><div>property $id="cib-bootstrap-options" \</div><div><span style="white-space:pre-wrap"> </span>dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \</div><div><span style="white-space:pre-wrap"> </span>cluster-infrastructure="Heartbeat" \</div><div><span style="white-space:pre-wrap"> </span>stonith-enabled="false</div></div><div><br></div><div><br></div><div>Do you have some hints that I can follow?</div><div><br></div><div>Thanks in advance!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Oscar</div></font></span></div>
</blockquote></div><br></div>