File bsc#1198767-0003-Test-cts-scheduler-update-regression-test-about-not-.patch of Package pacemaker.34780

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/dot/pending-node-no-uname.dot   |  8 +++---
 cts/scheduler/exp/pending-node-no-uname.exp   | 27 -------------------
 .../summary/pending-node-no-uname.summary     | 11 +++-----
 3 files changed, 8 insertions(+), 38 deletions(-)

diff --git a/cts/scheduler/dot/pending-node-no-uname.dot b/cts/scheduler/dot/pending-node-no-uname.dot
index c808f7ea0..98783ca78 100644
--- a/cts/scheduler/dot/pending-node-no-uname.dot
+++ b/cts/scheduler/dot/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"]
 }
diff --git a/cts/scheduler/exp/pending-node-no-uname.exp b/cts/scheduler/exp/pending-node-no-uname.exp
index e8fbe17cb..2c45756b5 100644
--- a/cts/scheduler/exp/pending-node-no-uname.exp
+++ b/cts/scheduler/exp/pending-node-no-uname.exp
@@ -1,21 +1,5 @@
 <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"/>
@@ -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>
diff --git a/cts/scheduler/summary/pending-node-no-uname.summary b/cts/scheduler/summary/pending-node-no-uname.summary
index 93ac7d48d..5f04fc645 100644
--- a/cts/scheduler/summary/pending-node-no-uname.summary
+++ b/cts/scheduler/summary/pending-node-no-uname.summary
@@ -1,26 +1,23 @@
 Using the original execution date of: 2023-02-21 12:19:57Z
 Current cluster status:
   * Node List:
-    * Node node-2: UNCLEAN (offline)
+    * Node node-2: pending
     * Online: [ node-1 ]
 
   * Full List of Resources:
     * 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:
   * 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:
+    * Node node-2: pending
     * Online: [ node-1 ]
-    * OFFLINE: [ node-2 ]
 
   * Full List of Resources:
-    * st-sbd	(stonith:external/sbd):	 Started node-1
+    * st-sbd	(stonith:external/sbd):	 Stopped
-- 
2.35.3

openSUSE Build Service is sponsored by