File bsc#1198767-0003-Test-cts-scheduler-update-regression-test-about-not-.patch of Package pacemaker.29834
From ce462ac7eaffd726ebf91b4e8a88d7f09e087e25 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Tue, 21 Feb 2023 18:15:44 +0100
Subject: [PATCH 3/3] Test: cts-scheduler: update regression test about not
fencing a pending node that doesn't have an uname in node state yet
---
cts/scheduler/pending-node-no-uname.dot | 8 +++---
cts/scheduler/pending-node-no-uname.exp | 27 -------------------
.../pending-node-no-uname.summary | 11 +++-----
3 files changed, 8 insertions(+), 38 deletions(-)
Index: pacemaker-2.0.5+20201202.ba59be712/cts/scheduler/pending-node-no-uname.dot
===================================================================
--- pacemaker-2.0.5+20201202.ba59be712.orig/cts/scheduler/pending-node-no-uname.dot
+++ pacemaker-2.0.5+20201202.ba59be712/cts/scheduler/pending-node-no-uname.dot
@@ -1,7 +1,7 @@
digraph "g" {
-"st-sbd_monitor_0 node-1" -> "st-sbd_start_0 node-1" [ style = bold]
+"st-sbd_monitor_0 node-1" -> "st-sbd_start_0 node-1" [ style = dashed]
"st-sbd_monitor_0 node-1" [ style=bold color="green" fontcolor="black"]
-"st-sbd_start_0 node-1" [ style=bold color="green" fontcolor="black"]
-"stonith 'reboot' node-2" -> "st-sbd_start_0 node-1" [ style = bold]
-"stonith 'reboot' node-2" [ style=bold color="green" fontcolor="black"]
+"st-sbd_monitor_0 node-2" -> "st-sbd_start_0 node-1" [ style = dashed]
+"st-sbd_monitor_0 node-2" [ style=dashed color="red" fontcolor="black"]
+"st-sbd_start_0 node-1" [ style=dashed color="red" fontcolor="black"]
}
Index: pacemaker-2.0.5+20201202.ba59be712/cts/scheduler/pending-node-no-uname.exp
===================================================================
--- pacemaker-2.0.5+20201202.ba59be712.orig/cts/scheduler/pending-node-no-uname.exp
+++ pacemaker-2.0.5+20201202.ba59be712/cts/scheduler/pending-node-no-uname.exp
@@ -1,22 +1,6 @@
<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="2" operation="start" operation_key="st-sbd_start_0" on_node="node-1" on_node_uuid="1">
- <primitive id="st-sbd" class="stonith" type="external/sbd"/>
- <attributes CRM_meta_on_node="node-1" CRM_meta_on_node_uuid="1" CRM_meta_timeout="20000" />
- </rsc_op>
- </action_set>
- <inputs>
- <trigger>
- <rsc_op id="1" operation="monitor" operation_key="st-sbd_monitor_0" on_node="node-1" on_node_uuid="1"/>
- </trigger>
- <trigger>
- <crm_event id="3" operation="stonith" operation_key="stonith-node-2-reboot" on_node="node-2" on_node_uuid="2"/>
- </trigger>
- </inputs>
- </synapse>
- <synapse id="1">
- <action_set>
<rsc_op id="1" operation="monitor" operation_key="st-sbd_monitor_0" on_node="node-1" on_node_uuid="1">
<primitive id="st-sbd" class="stonith" type="external/sbd"/>
<attributes CRM_meta_on_node="node-1" CRM_meta_on_node_uuid="1" CRM_meta_op_target_rc="7" CRM_meta_timeout="20000" />
@@ -24,15 +8,4 @@
</action_set>
<inputs/>
</synapse>
- <synapse id="2">
- <action_set>
- <crm_event id="3" operation="stonith" operation_key="stonith-node-2-reboot" on_node="node-2" on_node_uuid="2">
- <attributes CRM_meta_on_node="node-2" CRM_meta_on_node_uuid="2" CRM_meta_stonith_action="reboot" />
- <downed>
- <node id="2"/>
- </downed>
- </crm_event>
- </action_set>
- <inputs/>
- </synapse>
</transition_graph>
Index: pacemaker-2.0.5+20201202.ba59be712/cts/scheduler/pending-node-no-uname.summary
===================================================================
--- pacemaker-2.0.5+20201202.ba59be712.orig/cts/scheduler/pending-node-no-uname.summary
+++ pacemaker-2.0.5+20201202.ba59be712/cts/scheduler/pending-node-no-uname.summary
@@ -1,26 +1,21 @@
Using the original execution date of: 2023-02-21 12:19:57Z
+
Current cluster status:
- * Node List:
- * Node node-2: UNCLEAN (offline)
- * Online: [ node-1 ]
+Node node-2 (2): pending
+Online: [ node-1 ]
- * Full List of Resources:
- * st-sbd (stonith:external/sbd): Stopped
+ st-sbd (stonith:external/sbd): Stopped
Transition Summary:
- * Fence (reboot) node-2 'node is unclean'
- * Start st-sbd ( node-1 )
+ * Start st-sbd ( node-1 ) blocked
-Executing Cluster Transition:
+Executing cluster transition:
* Resource action: st-sbd monitor on node-1
- * Fencing node-2 (reboot)
- * Resource action: st-sbd start on node-1
Using the original execution date of: 2023-02-21 12:19:57Z
-Revised Cluster Status:
- * Node List:
- * Online: [ node-1 ]
- * OFFLINE: [ node-2 ]
+Revised cluster status:
+Node node-2 (2): pending
+Online: [ node-1 ]
+
+ st-sbd (stonith:external/sbd): Stopped
- * Full List of Resources:
- * st-sbd (stonith:external/sbd): Started node-1