diff options
Diffstat (limited to 'cts/scheduler/exp/a-promote-then-b-migrate.exp')
-rw-r--r-- | cts/scheduler/exp/a-promote-then-b-migrate.exp | 248 |
1 files changed, 248 insertions, 0 deletions
diff --git a/cts/scheduler/exp/a-promote-then-b-migrate.exp b/cts/scheduler/exp/a-promote-then-b-migrate.exp new file mode 100644 index 0000000..28de3e8 --- /dev/null +++ b/cts/scheduler/exp/a-promote-then-b-migrate.exp @@ -0,0 +1,248 @@ +<transition_graph cluster-delay="60s" stonith-timeout="60s" failed-stop-offset="INFINITY" failed-start-offset="INFINITY" transition_id="0"> + <synapse id="0" priority="1000000"> + <action_set> + <rsc_op id="46" operation="notify" operation_key="rsc1:0_post_notify_promote_0" on_node="node1" on_node_uuid="node1"> + <primitive id="rsc1" long-id="rsc1:0" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="0" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_active_resource="rsc1:0 rsc1:1" CRM_meta_notify_active_uname="node1 node2" CRM_meta_notify_all_uname="node1 node2" CRM_meta_notify_available_uname="node1 node2" CRM_meta_notify_demote_resource=" " CRM_meta_notify_demote_uname=" " CRM_meta_notify_inactive_resource=" " CRM_meta_notify_key_operation="promoted" CRM_meta_notify_key_type="post" CRM_meta_notify_master_resource="rsc1:0" CRM_meta_notify_master_uname="node1" CRM_meta_notify_operation="promote" CRM_meta_notify_promote_resource="rsc1:1" CRM_meta_notify_promote_uname="node2" CRM_meta_notify_promoted_resource="rsc1:0" CRM_meta_notify_promoted_uname="node1" CRM_meta_notify_slave_resource="rsc1:1" CRM_meta_notify_slave_uname="node2" CRM_meta_notify_start_resource=" " CRM_meta_notify_start_uname=" " CRM_meta_notify_stop_resource=" " CRM_meta_notify_stop_uname=" " CRM_meta_notify_type="post" CRM_meta_notify_unpromoted_resource="rsc1:1" CRM_meta_notify_unpromoted_uname="node2" CRM_meta_on_node="node1" CRM_meta_on_node_uuid="node1" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <pseudo_event id="28" operation="notify" operation_key="ms1_post_notify_promoted_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="1"> + <action_set> + <rsc_op id="45" operation="notify" operation_key="rsc1:0_pre_notify_promote_0" on_node="node1" on_node_uuid="node1"> + <primitive id="rsc1" long-id="rsc1:0" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="0" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_active_resource="rsc1:0 rsc1:1" CRM_meta_notify_active_uname="node1 node2" CRM_meta_notify_all_uname="node1 node2" CRM_meta_notify_available_uname="node1 node2" CRM_meta_notify_demote_resource=" " CRM_meta_notify_demote_uname=" " CRM_meta_notify_inactive_resource=" " CRM_meta_notify_key_operation="promote" CRM_meta_notify_key_type="pre" CRM_meta_notify_master_resource="rsc1:0" CRM_meta_notify_master_uname="node1" CRM_meta_notify_operation="promote" CRM_meta_notify_promote_resource="rsc1:1" CRM_meta_notify_promote_uname="node2" CRM_meta_notify_promoted_resource="rsc1:0" CRM_meta_notify_promoted_uname="node1" CRM_meta_notify_slave_resource="rsc1:1" CRM_meta_notify_slave_uname="node2" CRM_meta_notify_start_resource=" " CRM_meta_notify_start_uname=" " CRM_meta_notify_stop_resource=" " CRM_meta_notify_stop_uname=" " CRM_meta_notify_type="pre" CRM_meta_notify_unpromoted_resource="rsc1:1" CRM_meta_notify_unpromoted_uname="node2" CRM_meta_on_node="node1" CRM_meta_on_node_uuid="node1" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <pseudo_event id="26" operation="notify" operation_key="ms1_pre_notify_promote_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="2" priority="1000000"> + <action_set> + <rsc_op id="48" operation="notify" operation_key="rsc1:1_post_notify_promote_0" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc1" long-id="rsc1:1" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="1" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_active_resource="rsc1:0 rsc1:1" CRM_meta_notify_active_uname="node1 node2" CRM_meta_notify_all_uname="node1 node2" CRM_meta_notify_available_uname="node1 node2" CRM_meta_notify_demote_resource=" " CRM_meta_notify_demote_uname=" " CRM_meta_notify_inactive_resource=" " CRM_meta_notify_key_operation="promoted" CRM_meta_notify_key_type="post" CRM_meta_notify_master_resource="rsc1:0" CRM_meta_notify_master_uname="node1" CRM_meta_notify_operation="promote" CRM_meta_notify_promote_resource="rsc1:1" CRM_meta_notify_promote_uname="node2" CRM_meta_notify_promoted_resource="rsc1:0" CRM_meta_notify_promoted_uname="node1" CRM_meta_notify_slave_resource="rsc1:1" CRM_meta_notify_slave_uname="node2" CRM_meta_notify_start_resource=" " CRM_meta_notify_start_uname=" " CRM_meta_notify_stop_resource=" " CRM_meta_notify_stop_uname=" " CRM_meta_notify_type="post" CRM_meta_notify_unpromoted_resource="rsc1:1" CRM_meta_notify_unpromoted_uname="node2" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <pseudo_event id="28" operation="notify" operation_key="ms1_post_notify_promoted_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="3"> + <action_set> + <rsc_op id="47" operation="notify" operation_key="rsc1:1_pre_notify_promote_0" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc1" long-id="rsc1:1" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="1" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_active_resource="rsc1:0 rsc1:1" CRM_meta_notify_active_uname="node1 node2" CRM_meta_notify_all_uname="node1 node2" CRM_meta_notify_available_uname="node1 node2" CRM_meta_notify_demote_resource=" " CRM_meta_notify_demote_uname=" " CRM_meta_notify_inactive_resource=" " CRM_meta_notify_key_operation="promote" CRM_meta_notify_key_type="pre" CRM_meta_notify_master_resource="rsc1:0" CRM_meta_notify_master_uname="node1" CRM_meta_notify_operation="promote" CRM_meta_notify_promote_resource="rsc1:1" CRM_meta_notify_promote_uname="node2" CRM_meta_notify_promoted_resource="rsc1:0" CRM_meta_notify_promoted_uname="node1" CRM_meta_notify_slave_resource="rsc1:1" CRM_meta_notify_slave_uname="node2" CRM_meta_notify_start_resource=" " CRM_meta_notify_start_uname=" " CRM_meta_notify_stop_resource=" " CRM_meta_notify_stop_uname=" " CRM_meta_notify_type="pre" CRM_meta_notify_unpromoted_resource="rsc1:1" CRM_meta_notify_unpromoted_uname="node2" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <pseudo_event id="26" operation="notify" operation_key="ms1_pre_notify_promote_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="4"> + <action_set> + <rsc_op id="11" operation="monitor" operation_key="rsc1:1_monitor_5000" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc1" long-id="rsc1:1" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="1" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_interval="5000" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_name="monitor" CRM_meta_notify="true" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_op_target_rc="8" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_role="Promoted" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="10" operation="promote" operation_key="rsc1:1_promote_0" on_node="node2" on_node_uuid="node2"/> + </trigger> + <trigger> + <pseudo_event id="29" operation="notified" operation_key="ms1_confirmed-post_notify_promoted_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="5"> + <action_set> + <rsc_op id="10" operation="promote" operation_key="rsc1:1_promote_0" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc1" long-id="rsc1:1" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="1" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_active_resource="rsc1:0 rsc1:1" CRM_meta_notify_active_uname="node1 node2" CRM_meta_notify_all_uname="node1 node2" CRM_meta_notify_available_uname="node1 node2" CRM_meta_notify_demote_resource=" " CRM_meta_notify_demote_uname=" " CRM_meta_notify_inactive_resource=" " CRM_meta_notify_master_resource="rsc1:0" CRM_meta_notify_master_uname="node1" CRM_meta_notify_promote_resource="rsc1:1" CRM_meta_notify_promote_uname="node2" CRM_meta_notify_promoted_resource="rsc1:0" CRM_meta_notify_promoted_uname="node1" CRM_meta_notify_slave_resource="rsc1:1" CRM_meta_notify_slave_uname="node2" CRM_meta_notify_start_resource=" " CRM_meta_notify_start_uname=" " CRM_meta_notify_stop_resource=" " CRM_meta_notify_stop_uname=" " CRM_meta_notify_unpromoted_resource="rsc1:1" CRM_meta_notify_unpromoted_uname="node2" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="3" operation="cancel" operation_key="rsc1:1_monitor_10000" on_node="node2" on_node_uuid="node2"/> + </trigger> + <trigger> + <pseudo_event id="24" operation="promote" operation_key="ms1_promote_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="6"> + <action_set> + <rsc_op id="3" operation="cancel" operation_key="rsc1:1_monitor_10000" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc1" long-id="rsc1:1" class="ocf" provider="pacemaker" type="Stateful"/> + <attributes CRM_meta_clone="1" CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_interval="10000" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_name="monitor" CRM_meta_notify="true" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_operation="monitor" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_role="Unpromoted" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs/> + </synapse> + <synapse id="7" priority="1000000"> + <action_set> + <pseudo_event id="29" operation="notified" operation_key="ms1_confirmed-post_notify_promoted_0"> + <attributes CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_key_operation="promoted" CRM_meta_notify_key_type="confirmed-post" CRM_meta_notify_operation="promote" CRM_meta_notify_type="post" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <pseudo_event id="28" operation="notify" operation_key="ms1_post_notify_promoted_0"/> + </trigger> + <trigger> + <rsc_op id="46" operation="notify" operation_key="rsc1:0_post_notify_promote_0" on_node="node1" on_node_uuid="node1"/> + </trigger> + <trigger> + <rsc_op id="48" operation="notify" operation_key="rsc1:1_post_notify_promote_0" on_node="node2" on_node_uuid="node2"/> + </trigger> + </inputs> + </synapse> + <synapse id="8" priority="1000000"> + <action_set> + <pseudo_event id="28" operation="notify" operation_key="ms1_post_notify_promoted_0"> + <attributes CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_key_operation="promoted" CRM_meta_notify_key_type="post" CRM_meta_notify_operation="promote" CRM_meta_notify_type="post" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <pseudo_event id="25" operation="promoted" operation_key="ms1_promoted_0"/> + </trigger> + <trigger> + <pseudo_event id="27" operation="notified" operation_key="ms1_confirmed-pre_notify_promote_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="9"> + <action_set> + <pseudo_event id="27" operation="notified" operation_key="ms1_confirmed-pre_notify_promote_0"> + <attributes CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_key_operation="promote" CRM_meta_notify_key_type="confirmed-pre" CRM_meta_notify_operation="promote" CRM_meta_notify_type="pre" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <pseudo_event id="26" operation="notify" operation_key="ms1_pre_notify_promote_0"/> + </trigger> + <trigger> + <rsc_op id="45" operation="notify" operation_key="rsc1:0_pre_notify_promote_0" on_node="node1" on_node_uuid="node1"/> + </trigger> + <trigger> + <rsc_op id="47" operation="notify" operation_key="rsc1:1_pre_notify_promote_0" on_node="node2" on_node_uuid="node2"/> + </trigger> + </inputs> + </synapse> + <synapse id="10"> + <action_set> + <pseudo_event id="26" operation="notify" operation_key="ms1_pre_notify_promote_0"> + <attributes CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_notify_key_operation="promote" CRM_meta_notify_key_type="pre" CRM_meta_notify_operation="promote" CRM_meta_notify_type="pre" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs/> + </synapse> + <synapse id="11" priority="1000000"> + <action_set> + <pseudo_event id="25" operation="promoted" operation_key="ms1_promoted_0"> + <attributes CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <rsc_op id="10" operation="promote" operation_key="rsc1:1_promote_0" on_node="node2" on_node_uuid="node2"/> + </trigger> + </inputs> + </synapse> + <synapse id="12"> + <action_set> + <pseudo_event id="24" operation="promote" operation_key="ms1_promote_0"> + <attributes CRM_meta_clone_max="2" CRM_meta_clone_node_max="1" CRM_meta_globally_unique="false" CRM_meta_master_max="2" CRM_meta_master_node_max="1" CRM_meta_notify="true" CRM_meta_promoted_max="2" CRM_meta_promoted_node_max="1" CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <pseudo_event id="27" operation="notified" operation_key="ms1_confirmed-pre_notify_promote_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="13"> + <action_set> + <rsc_op id="40" operation="migrate_from" operation_key="rsc2_migrate_from_0" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc2" class="ocf" provider="pacemaker" type="Dummy"/> + <attributes CRM_meta_migrate_source="node1" CRM_meta_migrate_target="node2" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="39" operation="migrate_to" operation_key="rsc2_migrate_to_0" on_node="node1" on_node_uuid="node1"/> + </trigger> + </inputs> + </synapse> + <synapse id="14"> + <action_set> + <rsc_op id="39" operation="migrate_to" operation_key="rsc2_migrate_to_0" on_node="node1" on_node_uuid="node1"> + <primitive id="rsc2" class="ocf" provider="pacemaker" type="Dummy"/> + <attributes CRM_meta_migrate_source="node1" CRM_meta_migrate_target="node2" CRM_meta_on_node="node1" CRM_meta_on_node_uuid="node1" CRM_meta_record_pending="true" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <pseudo_event id="29" operation="notified" operation_key="ms1_confirmed-post_notify_promoted_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="15"> + <action_set> + <rsc_op id="38" operation="monitor" operation_key="rsc2_monitor_5000" on_node="node2" on_node_uuid="node2"> + <primitive id="rsc2" class="ocf" provider="pacemaker" type="Dummy"/> + <attributes CRM_meta_interval="5000" CRM_meta_name="monitor" CRM_meta_on_node="node2" CRM_meta_on_node_uuid="node2" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <pseudo_event id="37" operation="start" operation_key="rsc2_start_0"/> + </trigger> + </inputs> + </synapse> + <synapse id="16"> + <action_set> + <pseudo_event id="37" operation="start" operation_key="rsc2_start_0"> + <attributes CRM_meta_timeout="20000" /> + </pseudo_event> + </action_set> + <inputs> + <trigger> + <pseudo_event id="29" operation="notified" operation_key="ms1_confirmed-post_notify_promoted_0"/> + </trigger> + <trigger> + <rsc_op id="36" operation="stop" operation_key="rsc2_stop_0" on_node="node1" on_node_uuid="node1"/> + </trigger> + <trigger> + <rsc_op id="40" operation="migrate_from" operation_key="rsc2_migrate_from_0" on_node="node2" on_node_uuid="node2"/> + </trigger> + </inputs> + </synapse> + <synapse id="17"> + <action_set> + <rsc_op id="36" operation="stop" operation_key="rsc2_stop_0" on_node="node1" on_node_uuid="node1"> + <primitive id="rsc2" class="ocf" provider="pacemaker" type="Dummy"/> + <attributes CRM_meta_on_node="node1" CRM_meta_on_node_uuid="node1" CRM_meta_timeout="20000" /> + </rsc_op> + </action_set> + <inputs> + <trigger> + <rsc_op id="40" operation="migrate_from" operation_key="rsc2_migrate_from_0" on_node="node2" on_node_uuid="node2"/> + </trigger> + </inputs> + </synapse> +</transition_graph> |