|
|
5cbf9a |
From b1094468ab0f7c6d2f5b457b721f3a852a9cae2c Mon Sep 17 00:00:00 2001
|
|
|
5cbf9a |
From: Klaus Wenninger <klaus.wenninger@aon.at>
|
|
|
5cbf9a |
Date: Thu, 14 Jul 2022 13:09:51 +0200
|
|
|
5cbf9a |
Subject: [PATCH 1/2] Fix: do unfencing equally for cluster-nodes & remotes
|
|
|
5cbf9a |
|
|
|
5cbf9a |
Fixes T28
|
|
|
5cbf9a |
---
|
|
|
5cbf9a |
lib/pengine/utils.c | 8 ++------
|
|
|
5cbf9a |
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
|
5cbf9a |
|
|
|
5cbf9a |
diff --git a/lib/pengine/utils.c b/lib/pengine/utils.c
|
|
|
5cbf9a |
index 0c2eb3c16..83f76cccf 100644
|
|
|
5cbf9a |
--- a/lib/pengine/utils.c
|
|
|
5cbf9a |
+++ b/lib/pengine/utils.c
|
|
|
5cbf9a |
@@ -1201,12 +1201,8 @@ pe_fence_op(pe_node_t * node, const char *op, bool optional, const char *reason,
|
|
|
5cbf9a |
add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET_UUID, node->details->id);
|
|
|
5cbf9a |
add_hash_param(stonith_op->meta, "stonith_action", op);
|
|
|
5cbf9a |
|
|
|
5cbf9a |
- if (pe__is_guest_or_remote_node(node)
|
|
|
5cbf9a |
- && pcmk_is_set(data_set->flags, pe_flag_enable_unfencing)) {
|
|
|
5cbf9a |
- /* Extra work to detect device changes on remotes
|
|
|
5cbf9a |
- *
|
|
|
5cbf9a |
- * We may do this for all nodes in the future, but for now
|
|
|
5cbf9a |
- * the pcmk__check_action_config() based stuff works fine.
|
|
|
5cbf9a |
+ if (pcmk_is_set(data_set->flags, pe_flag_enable_unfencing)) {
|
|
|
5cbf9a |
+ /* Extra work to detect device changes
|
|
|
5cbf9a |
*/
|
|
|
5cbf9a |
long max = 1024;
|
|
|
5cbf9a |
long digests_all_offset = 0;
|
|
|
5cbf9a |
--
|
|
|
5cbf9a |
2.31.1
|
|
|
5cbf9a |
|
|
|
5cbf9a |
|
|
|
5cbf9a |
From f5db6e2c94273623a49f36f1bdb6c39315c53cab Mon Sep 17 00:00:00 2001
|
|
|
5cbf9a |
From: Klaus Wenninger <klaus.wenninger@aon.at>
|
|
|
5cbf9a |
Date: Thu, 14 Jul 2022 11:29:05 +0200
|
|
|
5cbf9a |
Subject: [PATCH 2/2] Test: cts-scheduler: update expected output for changes
|
|
|
5cbf9a |
in unfencing
|
|
|
5cbf9a |
|
|
|
5cbf9a |
---
|
|
|
5cbf9a |
cts/scheduler/exp/start-then-stop-with-unfence.exp | 2 +-
|
|
|
5cbf9a |
cts/scheduler/exp/unfence-definition.exp | 6 +++---
|
|
|
5cbf9a |
cts/scheduler/exp/unfence-device.exp | 6 +++---
|
|
|
5cbf9a |
cts/scheduler/exp/unfence-parameters.exp | 6 +++---
|
|
|
5cbf9a |
cts/scheduler/exp/unfence-startup.exp | 4 ++--
|
|
|
5cbf9a |
5 files changed, 12 insertions(+), 12 deletions(-)
|
|
|
5cbf9a |
|
|
|
5cbf9a |
diff --git a/cts/scheduler/exp/start-then-stop-with-unfence.exp b/cts/scheduler/exp/start-then-stop-with-unfence.exp
|
|
|
5cbf9a |
index b1868586f..69cfb63de 100644
|
|
|
5cbf9a |
--- a/cts/scheduler/exp/start-then-stop-with-unfence.exp
|
|
|
5cbf9a |
+++ b/cts/scheduler/exp/start-then-stop-with-unfence.exp
|
|
|
5cbf9a |
@@ -151,7 +151,7 @@
|
|
|
5cbf9a |
<synapse id="11">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="5" operation="stonith" operation_key="stonith-rhel7-node1.example.com-on" on_node="rhel7-node1.example.com" on_node_uuid="1">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="rhel7-node1.example.com" CRM_meta_on_node_uuid="1" CRM_meta_probe_complete="true" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="mpath-node1:fence_mpath:019ed48e26413030411da3ae8888a649,mpath-node2:fence_mpath:b97ef86afabe0426040d1bef247023ee," CRM_meta_digests_secure="mpath-node1:fence_mpath:21f9562fe6837f7357aab98ba69f71fb,mpath-node2:fence_mpath:563e5d6a67b7dcdb65d2f0325aed9fc1," CRM_meta_on_node="rhel7-node1.example.com" CRM_meta_on_node_uuid="1" CRM_meta_probe_complete="true" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
diff --git a/cts/scheduler/exp/unfence-definition.exp b/cts/scheduler/exp/unfence-definition.exp
|
|
|
5cbf9a |
index 840a8d212..6a098ed3c 100644
|
|
|
5cbf9a |
--- a/cts/scheduler/exp/unfence-definition.exp
|
|
|
5cbf9a |
+++ b/cts/scheduler/exp/unfence-definition.exp
|
|
|
5cbf9a |
@@ -373,7 +373,7 @@
|
|
|
5cbf9a |
<synapse id="22">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="29" operation="stonith" operation_key="stonith-virt-4-reboot" on_node="virt-4" on_node_uuid="4">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-4" CRM_meta_on_node_uuid="4" CRM_meta_stonith_action="reboot" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-4" CRM_meta_on_node_uuid="4" CRM_meta_stonith_action="reboot" />
|
|
|
5cbf9a |
<downed>
|
|
|
5cbf9a |
<node id="4"/>
|
|
|
5cbf9a |
</downed>
|
|
|
5cbf9a |
@@ -384,7 +384,7 @@
|
|
|
5cbf9a |
<synapse id="23">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="3" operation="stonith" operation_key="stonith-virt-3-on" on_node="virt-3" on_node_uuid="3">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-3" CRM_meta_on_node_uuid="3" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-3" CRM_meta_on_node_uuid="3" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
@@ -392,7 +392,7 @@
|
|
|
5cbf9a |
<synapse id="24">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="1" operation="stonith" operation_key="stonith-virt-1-on" on_node="virt-1" on_node_uuid="1">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-1" CRM_meta_on_node_uuid="1" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-1" CRM_meta_on_node_uuid="1" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs>
|
|
|
5cbf9a |
diff --git a/cts/scheduler/exp/unfence-device.exp b/cts/scheduler/exp/unfence-device.exp
|
|
|
5cbf9a |
index a39fc758f..452351d98 100644
|
|
|
5cbf9a |
--- a/cts/scheduler/exp/unfence-device.exp
|
|
|
5cbf9a |
+++ b/cts/scheduler/exp/unfence-device.exp
|
|
|
5cbf9a |
@@ -76,7 +76,7 @@
|
|
|
5cbf9a |
<synapse id="5">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="6" operation="stonith" operation_key="stonith-virt-013-on" on_node="virt-013" on_node_uuid="3">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-013" CRM_meta_on_node_uuid="3" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fence_scsi:fence_scsi:5950f402238c1e5058a556fe39bb09de," CRM_meta_digests_secure="fence_scsi:fence_scsi:a911b9a554cdc5844d863a91b1ef283a," CRM_meta_on_node="virt-013" CRM_meta_on_node_uuid="3" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
@@ -84,7 +84,7 @@
|
|
|
5cbf9a |
<synapse id="6">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="4" operation="stonith" operation_key="stonith-virt-009-on" on_node="virt-009" on_node_uuid="2">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-009" CRM_meta_on_node_uuid="2" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fence_scsi:fence_scsi:5950f402238c1e5058a556fe39bb09de," CRM_meta_digests_secure="fence_scsi:fence_scsi:a911b9a554cdc5844d863a91b1ef283a," CRM_meta_on_node="virt-009" CRM_meta_on_node_uuid="2" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
@@ -92,7 +92,7 @@
|
|
|
5cbf9a |
<synapse id="7">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="2" operation="stonith" operation_key="stonith-virt-008-on" on_node="virt-008" on_node_uuid="1">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-008" CRM_meta_on_node_uuid="1" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fence_scsi:fence_scsi:5950f402238c1e5058a556fe39bb09de," CRM_meta_digests_secure="fence_scsi:fence_scsi:a911b9a554cdc5844d863a91b1ef283a," CRM_meta_on_node="virt-008" CRM_meta_on_node_uuid="1" CRM_meta_shutdown="0" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
diff --git a/cts/scheduler/exp/unfence-parameters.exp b/cts/scheduler/exp/unfence-parameters.exp
|
|
|
5cbf9a |
index 3e70cb8e9..268bf008e 100644
|
|
|
5cbf9a |
--- a/cts/scheduler/exp/unfence-parameters.exp
|
|
|
5cbf9a |
+++ b/cts/scheduler/exp/unfence-parameters.exp
|
|
|
5cbf9a |
@@ -357,7 +357,7 @@
|
|
|
5cbf9a |
<synapse id="21">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="28" operation="stonith" operation_key="stonith-virt-4-reboot" on_node="virt-4" on_node_uuid="4">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-4" CRM_meta_on_node_uuid="4" CRM_meta_stonith_action="reboot" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-4" CRM_meta_on_node_uuid="4" CRM_meta_stonith_action="reboot" />
|
|
|
5cbf9a |
<downed>
|
|
|
5cbf9a |
<node id="4"/>
|
|
|
5cbf9a |
</downed>
|
|
|
5cbf9a |
@@ -368,7 +368,7 @@
|
|
|
5cbf9a |
<synapse id="22">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="3" operation="stonith" operation_key="stonith-virt-3-on" on_node="virt-3" on_node_uuid="3">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-3" CRM_meta_on_node_uuid="3" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-3" CRM_meta_on_node_uuid="3" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
@@ -376,7 +376,7 @@
|
|
|
5cbf9a |
<synapse id="23">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="1" operation="stonith" operation_key="stonith-virt-1-on" on_node="virt-1" on_node_uuid="1">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-1" CRM_meta_on_node_uuid="1" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-1" CRM_meta_on_node_uuid="1" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs>
|
|
|
5cbf9a |
diff --git a/cts/scheduler/exp/unfence-startup.exp b/cts/scheduler/exp/unfence-startup.exp
|
|
|
5cbf9a |
index 6745bff4b..f2d38e80c 100644
|
|
|
5cbf9a |
--- a/cts/scheduler/exp/unfence-startup.exp
|
|
|
5cbf9a |
+++ b/cts/scheduler/exp/unfence-startup.exp
|
|
|
5cbf9a |
@@ -173,7 +173,7 @@
|
|
|
5cbf9a |
<synapse id="11">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="28" operation="stonith" operation_key="stonith-virt-4-reboot" on_node="virt-4" on_node_uuid="4">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-4" CRM_meta_on_node_uuid="4" CRM_meta_stonith_action="reboot" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-4" CRM_meta_on_node_uuid="4" CRM_meta_stonith_action="reboot" />
|
|
|
5cbf9a |
<downed>
|
|
|
5cbf9a |
<node id="4"/>
|
|
|
5cbf9a |
</downed>
|
|
|
5cbf9a |
@@ -184,7 +184,7 @@
|
|
|
5cbf9a |
<synapse id="12">
|
|
|
5cbf9a |
<action_set>
|
|
|
5cbf9a |
<crm_event id="3" operation="stonith" operation_key="stonith-virt-3-on" on_node="virt-3" on_node_uuid="3">
|
|
|
5cbf9a |
- <attributes CRM_meta_on_node="virt-3" CRM_meta_on_node_uuid="3" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
+ <attributes CRM_meta_digests_all="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_digests_secure="fencing:fence_scsi:f2317cad3d54cec5d7d7aa7d0bf35cf8," CRM_meta_on_node="virt-3" CRM_meta_on_node_uuid="3" CRM_meta_stonith_action="on" />
|
|
|
5cbf9a |
</crm_event>
|
|
|
5cbf9a |
</action_set>
|
|
|
5cbf9a |
<inputs/>
|
|
|
5cbf9a |
--
|
|
|
5cbf9a |
2.31.1
|
|
|
5cbf9a |
|