Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker.3577
bug-972187_pacemaker-pengine-multiple-monitor-o...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-972187_pacemaker-pengine-multiple-monitor-one-failed-test.patch of Package pacemaker.3577
commit dbf2ce94b3382c280ef27ac375d5023ff843b9ae Author: Gao,Yan <ygao@suse.com> Date: Tue Apr 19 13:29:57 2016 +0200 Test: pengine: Consider resource failed if any of the configured monitor operations failed diff --git a/pengine/regression.sh b/pengine/regression.sh index c897964..e5a8135 100755 --- a/pengine/regression.sh +++ b/pengine/regression.sh @@ -227,6 +227,7 @@ do_test stop-failure-no-quorum "Stop failure without quorum" do_test stop-failure-no-fencing "Stop failure without fencing available" do_test stop-failure-with-fencing "Stop failure with fencing available" do_test multiple-active-block-group "Support of multiple-active=block for resource groups" +do_test multiple-monitor-one-failed "Consider resource failed if any of the configured monitor operations failed" echo "" do_test quorum-1 "No quorum - ignore" diff --git a/pengine/test10/multiple-monitor-one-failed.dot b/pengine/test10/multiple-monitor-one-failed.dot new file mode 100644 index 0000000..e4eb8fd --- /dev/null +++ b/pengine/test10/multiple-monitor-one-failed.dot @@ -0,0 +1,11 @@ +digraph "g" { +"Dummy-test2_monitor_10000 dhcp180" [ style=bold color="green" fontcolor="black"] +"Dummy-test2_monitor_30000 dhcp180" [ style=bold color="green" fontcolor="black"] +"Dummy-test2_start_0 dhcp180" -> "Dummy-test2_monitor_10000 dhcp180" [ style = bold] +"Dummy-test2_start_0 dhcp180" -> "Dummy-test2_monitor_30000 dhcp180" [ style = bold] +"Dummy-test2_start_0 dhcp180" [ style=bold color="green" fontcolor="black"] +"Dummy-test2_stop_0 dhcp180" -> "Dummy-test2_start_0 dhcp180" [ style = bold] +"Dummy-test2_stop_0 dhcp180" -> "all_stopped" [ style = bold] +"Dummy-test2_stop_0 dhcp180" [ style=bold color="green" fontcolor="black"] +"all_stopped" [ style=bold color="green" fontcolor="orange"] +} diff --git a/pengine/test10/multiple-monitor-one-failed.exp b/pengine/test10/multiple-monitor-one-failed.exp new file mode 100644 index 0000000..2f0ff23 --- /dev/null +++ b/pengine/test10/multiple-monitor-one-failed.exp @@ -0,0 +1,62 @@ +<transition_graph cluster-delay="60s" stonith-timeout="60s" failed-stop-offset="INFINITY" failed-start-offset="INFINITY" transition_id="0"> + <synapse id="0"> + <action_set> + <rsc_op id="5" operation="start" operation_key="Dummy-test2_start_0" on_node="dhcp180" on_node_uuid="dhcp180"> + <primitive id="Dummy-test2" class="ocf" provider="test" type="Dummy"/> + <attributes CRM_meta_timeout="20000" state="/tmp/dummy-state" state2="/tmp/dummy-state-2"/> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="3" operation="stop" operation_key="Dummy-test2_stop_0" on_node="dhcp180" on_node_uuid="dhcp180"/> + </trigger> + </inputs> + </synapse> + <synapse id="1"> + <action_set> + <rsc_op id="3" operation="stop" operation_key="Dummy-test2_stop_0" on_node="dhcp180" on_node_uuid="dhcp180"> + <primitive id="Dummy-test2" class="ocf" provider="test" type="Dummy"/> + <attributes CRM_meta_timeout="20000" state="/tmp/dummy-state" state2="/tmp/dummy-state-2"/> + </rsc_op> + </action_set> + <inputs/> + </synapse> + <synapse id="2"> + <action_set> + <rsc_op id="2" operation="monitor" operation_key="Dummy-test2_monitor_30000" on_node="dhcp180" on_node_uuid="dhcp180"> + <primitive id="Dummy-test2" class="ocf" provider="test" type="Dummy"/> + <attributes CRM_meta_OCF_CHECK_LEVEL="20" CRM_meta_interval="30000" CRM_meta_name="monitor" CRM_meta_timeout="60000" OCF_CHECK_LEVEL="20" state="/tmp/dummy-state" state2="/tmp/dummy-state-2"/> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="5" operation="start" operation_key="Dummy-test2_start_0" on_node="dhcp180" on_node_uuid="dhcp180"/> + </trigger> + </inputs> + </synapse> + <synapse id="3"> + <action_set> + <rsc_op id="1" operation="monitor" operation_key="Dummy-test2_monitor_10000" on_node="dhcp180" on_node_uuid="dhcp180"> + <primitive id="Dummy-test2" class="ocf" provider="test" type="Dummy"/> + <attributes CRM_meta_interval="10000" CRM_meta_name="monitor" CRM_meta_timeout="20000" CRM_meta_trace_ra="1" state="/tmp/dummy-state" state2="/tmp/dummy-state-2" trace_ra="1"/> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="5" operation="start" operation_key="Dummy-test2_start_0" on_node="dhcp180" on_node_uuid="dhcp180"/> + </trigger> + </inputs> + </synapse> + <synapse id="4"> + <action_set> + <pseudo_event id="4" operation="all_stopped" operation_key="all_stopped"> + <attributes /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <rsc_op id="3" operation="stop" operation_key="Dummy-test2_stop_0" on_node="dhcp180" on_node_uuid="dhcp180"/> + </trigger> + </inputs> + </synapse> +</transition_graph> diff --git a/pengine/test10/multiple-monitor-one-failed.scores b/pengine/test10/multiple-monitor-one-failed.scores new file mode 100644 index 0000000..5e83394 --- /dev/null +++ b/pengine/test10/multiple-monitor-one-failed.scores @@ -0,0 +1,3 @@ +Allocation scores: +native_color: Dummy-test2 allocation score on dhcp180: 0 +native_color: Dummy-test2 allocation score on dhcp69: 0 diff --git a/pengine/test10/multiple-monitor-one-failed.summary b/pengine/test10/multiple-monitor-one-failed.summary new file mode 100644 index 0000000..b10abbe --- /dev/null +++ b/pengine/test10/multiple-monitor-one-failed.summary @@ -0,0 +1,21 @@ + +Current cluster status: +Online: [ dhcp180 dhcp69 ] + + Dummy-test2 (ocf::test:Dummy): FAILED dhcp180 + +Transition Summary: + * Recover Dummy-test2 (Started dhcp180) + +Executing cluster transition: + * Resource action: Dummy-test2 stop on dhcp180 + * Pseudo action: all_stopped + * Resource action: Dummy-test2 start on dhcp180 + * Resource action: Dummy-test2 monitor=30000 on dhcp180 + * Resource action: Dummy-test2 monitor=10000 on dhcp180 + +Revised cluster status: +Online: [ dhcp180 dhcp69 ] + + Dummy-test2 (ocf::test:Dummy): Started dhcp180 + diff --git a/pengine/test10/multiple-monitor-one-failed.xml b/pengine/test10/multiple-monitor-one-failed.xml new file mode 100644 index 0000000..d110458 --- /dev/null +++ b/pengine/test10/multiple-monitor-one-failed.xml @@ -0,0 +1,77 @@ +<cib epoch="8" num_updates="18" admin_epoch="0" validate-with="pacemaker-1.2" cib-last-written="Wed Mar 30 15:44:19 2016" update-origin="dhcp180" update-client="cibadmin" update-user="root" crm_feature_set="3.0.8" have-quorum="1" dc-uuid="dhcp180"> + <configuration> + <crm_config> + <cluster_property_set id="cib-bootstrap-options"> + <nvpair name="dc-version" value="1.1.11-3ca8c3b" id="cib-bootstrap-options-dc-version"/> + <nvpair name="cluster-infrastructure" value="classic openais (with plugin)" id="cib-bootstrap-options-cluster-infrastructure"/> + <nvpair name="stonith-enabled" value="0" id="cib-bootstrap-options-stonith-enabled"/> + <nvpair name="expected-quorum-votes" value="2" id="cib-bootstrap-options-expected-quorum-votes"/> + </cluster_property_set> + </crm_config> + <nodes> + <node id="dhcp180" uname="dhcp180"/> + <node id="dhcp69" uname="dhcp69"/> + </nodes> + <resources> + <primitive id="Dummy-test2" class="ocf" provider="test" type="Dummy"> + <meta_attributes id="Dummy-test2-meta_attributes"> + <nvpair name="target-role" value="Started" id="Dummy-test2-meta_attributes-target-role"/> + </meta_attributes> + <operations id="Dummy-test2-operations"> + <op name="monitor" interval="10" timeout="20" id="Dummy-test2-monitor-10"> + <instance_attributes id="Dummy-test2-monitor-10-instance_attributes"> + <nvpair name="trace_ra" value="1" id="Dummy-test2-monitor-10-instance_attributes-trace_ra"/> + </instance_attributes> + </op> + <op name="monitor" interval="30" timeout="60" id="Dummy-test2-monitor-30"> + <instance_attributes id="Dummy-test2-monitor-30-instance_attributes"> + <nvpair name="OCF_CHECK_LEVEL" value="20" id="Dummy-test2-monitor-30-instance_attributes-OCF_CHECK_LEVEL"/> + </instance_attributes> + </op> + </operations> + <instance_attributes id="Dummy-test2-instance_attributes"> + <nvpair name="state" value="/tmp/dummy-state" id="Dummy-test2-instance_attributes-state"/> + <nvpair name="state2" value="/tmp/dummy-state-2" id="Dummy-test2-instance_attributes-state2"/> + </instance_attributes> + </primitive> + </resources> + <constraints/> + </configuration> + <status> + <node_state id="dhcp180" uname="dhcp180" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member"> + <transient_attributes id="dhcp180"> + <instance_attributes id="status-dhcp180"> + <nvpair id="status-dhcp180-shutdown" name="shutdown" value="0"/> + <nvpair id="status-dhcp180-probe_complete" name="probe_complete" value="true"/> + <nvpair id="status-dhcp180-fail-count-Dummy-test2" name="fail-count-Dummy-test2" value="1"/> + <nvpair id="status-dhcp180-last-failure-Dummy-test2" name="last-failure-Dummy-test2" value="1459345561"/> + </instance_attributes> + </transient_attributes> + <lrm id="dhcp180"> + <lrm_resources> + <lrm_resource id="Dummy-test2" type="Dummy" class="ocf" provider="test"> + <lrm_rsc_op id="Dummy-test2_last_0" operation_key="Dummy-test2_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.8" transition-key="8:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" transition-magic="0:0;8:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" call-id="15" rc-code="0" op-status="0" interval="0" last-run="1459345561" last-rc-change="1459345561" exec-time="15" queue-time="0" op-digest="709111243f64c1b2998dbf906b898d8d" op-force-restart=" state state2 " op-restart-digest="709111243f64c1b2998dbf906b898d8d"/> + <lrm_rsc_op id="Dummy-test2_monitor_30000" operation_key="Dummy-test2_monitor_30000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.8" transition-key="1:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" transition-magic="0:0;1:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" call-id="17" rc-code="0" op-status="0" interval="30000" last-rc-change="1459345561" exec-time="17" queue-time="52" op-digest="88cbe5ebda13278368b81f63edbb6b03"/> + <lrm_rsc_op id="Dummy-test2_monitor_10000" operation_key="Dummy-test2_monitor_10000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.8" transition-key="2:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" transition-magic="0:0;2:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" call-id="16" rc-code="0" op-status="0" interval="10000" last-rc-change="1459345561" exec-time="53" queue-time="0" op-digest="88f69460c4f7a70e57779a95eaf1799c"/> + <lrm_rsc_op id="Dummy-test2_last_failure_0" operation_key="Dummy-test2_monitor_10000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.8" transition-key="2:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" transition-magic="0:7;2:8:0:51641ea2-5c0b-4579-9137-a71f42f798b9" call-id="16" rc-code="7" op-status="0" interval="10000" last-rc-change="1459345571" exec-time="0" queue-time="0" op-digest="88f69460c4f7a70e57779a95eaf1799c"/> + </lrm_resource> + </lrm_resources> + </lrm> + </node_state> + <node_state id="dhcp69" uname="dhcp69" crmd="online" crm-debug-origin="do_update_resource" in_ccm="true" join="member" expected="member"> + <transient_attributes id="dhcp69"> + <instance_attributes id="status-dhcp69"> + <nvpair id="status-dhcp69-shutdown" name="shutdown" value="0"/> + <nvpair id="status-dhcp69-probe_complete" name="probe_complete" value="true"/> + </instance_attributes> + </transient_attributes> + <lrm id="dhcp69"> + <lrm_resources> + <lrm_resource id="Dummy-test2" type="Dummy" class="ocf" provider="test"> + <lrm_rsc_op id="Dummy-test2_last_0" operation_key="Dummy-test2_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.8" transition-key="6:5:7:51641ea2-5c0b-4579-9137-a71f42f798b9" transition-magic="0:7;6:5:7:51641ea2-5c0b-4579-9137-a71f42f798b9" call-id="8" rc-code="7" op-status="0" interval="0" last-run="1459345459" last-rc-change="1459345459" exec-time="154" queue-time="1" op-digest="709111243f64c1b2998dbf906b898d8d"/> + </lrm_resource> + </lrm_resources> + </lrm> + </node_state> + </status> +</cib>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor