Blame SOURCES/006-stateful-metadata.patch

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