Blame SOURCES/006-stateful-metadata.patch

533c21
From b52fe799c89637e2a761a5725c2376db5c05f2d1 Mon Sep 17 00:00:00 2001
533c21
From: Ken Gaillot <kgaillot@redhat.com>
533c21
Date: Tue, 30 Nov 2021 15:51:54 -0600
533c21
Subject: [PATCH 1/2] Low: resources: remove DOCTYPE from OCF 1.1-compliant
533c21
 agents
533c21
533c21
OCF 1.1 replaced the DTD schema with RNG, but DOCTYPE still refers to the DTD.
533c21
There's no DOCTYPE for RNG, and DOCTYPE is optional, so just remove it.
533c21
---
533c21
 extra/resources/Dummy        | 3 +--
533c21
 extra/resources/HealthIOWait | 3 +--
533c21
 extra/resources/Stateful     | 3 +--
533c21
 extra/resources/attribute    | 3 +--
533c21
 extra/resources/ping         | 3 +--
533c21
 extra/resources/remote       | 3 +--
533c21
 6 files changed, 6 insertions(+), 12 deletions(-)
533c21
533c21
diff --git a/extra/resources/Dummy b/extra/resources/Dummy
533c21
index a344deac0..56584e564 100755
533c21
--- a/extra/resources/Dummy
533c21
+++ b/extra/resources/Dummy
533c21
@@ -58,8 +58,7 @@
533c21
 meta_data() {
533c21
     cat <
533c21
 
533c21
-
533c21
-<resource-agent name="Dummy" version="2.0">
533c21
+<resource-agent name="Dummy" version="2.1">
533c21
 <version>1.1</version>
533c21
 
533c21
 <longdesc lang="en">
533c21
diff --git a/extra/resources/HealthIOWait b/extra/resources/HealthIOWait
533c21
index 43a8b70c4..5f1483ef7 100755
533c21
--- a/extra/resources/HealthIOWait
533c21
+++ b/extra/resources/HealthIOWait
533c21
@@ -25,8 +25,7 @@
533c21
 meta_data() {
533c21
         cat <
533c21
 
533c21
-
533c21
-<resource-agent name="HealthIOWait" version="1.1">
533c21
+<resource-agent name="HealthIOWait" version="1.2">
533c21
 <version>1.1</version>
533c21
 
533c21
 <longdesc lang="en">
533c21
diff --git a/extra/resources/Stateful b/extra/resources/Stateful
533c21
index ae3424bbf..0d2062d51 100755
533c21
--- a/extra/resources/Stateful
533c21
+++ b/extra/resources/Stateful
533c21
@@ -39,8 +39,7 @@ SCORE_PROMOTED=10
533c21
 meta_data() {
533c21
     cat <
533c21
 
533c21
-
533c21
-<resource-agent name="Stateful" version="1.1">
533c21
+<resource-agent name="Stateful" version="1.2">
533c21
 <version>1.1</version>
533c21
 
533c21
 <longdesc lang="en">
533c21
diff --git a/extra/resources/attribute b/extra/resources/attribute
533c21
index 1800dff8f..a2bd353e0 100755
533c21
--- a/extra/resources/attribute
533c21
+++ b/extra/resources/attribute
533c21
@@ -57,8 +57,7 @@ END
533c21
 meta_data() {
533c21
     cat <
533c21
 
533c21
-
533c21
-<resource-agent name="attribute" version="1.1">
533c21
+<resource-agent name="attribute" version="1.2">
533c21
   <version>1.1</version>
533c21
   <shortdesc lang="en">Manages a node attribute</shortdesc>
533c21
   <longdesc lang="en">
533c21
diff --git a/extra/resources/ping b/extra/resources/ping
533c21
index 6e296979f..7cc6b802d 100755
533c21
--- a/extra/resources/ping
533c21
+++ b/extra/resources/ping
533c21
@@ -36,8 +36,7 @@
533c21
 meta_data() {
533c21
      cat <
533c21
 
533c21
-
533c21
-<resource-agent name="ping" version="1.1">
533c21
+<resource-agent name="ping" version="1.2">
533c21
 <version>1.1</version>
533c21
 
533c21
 <longdesc lang="en">
533c21
diff --git a/extra/resources/remote b/extra/resources/remote
533c21
index a53262bb6..f7e40dc81 100755
533c21
--- a/extra/resources/remote
533c21
+++ b/extra/resources/remote
533c21
@@ -24,8 +24,7 @@
533c21
 meta_data() {
533c21
     cat <
533c21
 
533c21
-
533c21
-<resource-agent name="remote" version="1.0">
533c21
+<resource-agent name="remote" version="1.1">
533c21
   <version>1.1</version>
533c21
   <shortdesc lang="en">Pacemaker Remote connection</shortdesc>
533c21
   <parameters>
533c21
-- 
533c21
2.27.0
533c21
533c21
533c21
From 70f469120f8db6a024c786466ee74a6c7fbd1f43 Mon Sep 17 00:00:00 2001
533c21
From: Ken Gaillot <kgaillot@redhat.com>
533c21
Date: Tue, 30 Nov 2021 15:53:39 -0600
533c21
Subject: [PATCH 2/2] Fix: resources: use correct syntax in Stateful meta-data
533c21
533c21
The OCF standard only allows "0" or "1" for booleans.
533c21
533c21
This fixes incorrect ocf:pacemaker:Stateful meta-data syntax introduced by
533c21
7024398 as a regression in the 2.1.0 release.
533c21
---
533c21
 extra/resources/Stateful | 4 ++--
533c21
 1 file changed, 2 insertions(+), 2 deletions(-)
533c21
533c21
diff --git a/extra/resources/Stateful b/extra/resources/Stateful
533c21
index 0d2062d51..2ebe6725f 100755
533c21
--- a/extra/resources/Stateful
533c21
+++ b/extra/resources/Stateful
533c21
@@ -57,7 +57,7 @@ Location to store the resource state in
533c21
 <content type="string" default="${HA_VARRUN%%/}/Stateful-${OCF_RESOURCE_INSTANCE}.state" />
533c21
 </parameter>
533c21
 
533c21
-<parameter name="envfile" reloadable="true">
533c21
+<parameter name="envfile" reloadable="1">
533c21
 <longdesc lang="en">
533c21
 If this is set, the environment will be dumped to this file for every call.
533c21
 </longdesc>
533c21
@@ -65,7 +65,7 @@ If this is set, the environment will be dumped to this file for every call.
533c21
 <content type="string" default="" />
533c21
 </parameter>
533c21
 
533c21
-<parameter name="notify_delay" reloadable="true">
533c21
+<parameter name="notify_delay" reloadable="1">
533c21
 <longdesc lang="en">
533c21
 The notify action will sleep for this many seconds before returning,
533c21
 to simulate a long-running notify.
533c21
-- 
533c21
2.27.0
533c21