Blame SOURCES/025-feature-set.patch

c563b9
From cf0eebd913855f9ceda2864cbcd9cbd647fca055 Mon Sep 17 00:00:00 2001
c563b9
From: Ken Gaillot <kgaillot@redhat.com>
c563b9
Date: Wed, 13 Jan 2021 12:10:07 -0600
c563b9
Subject: [PATCH] Build: xml: rename crm_resource API file
c563b9
c563b9
5aadeaf added an API schema 2.5 for crm_resource, but API schema 2.5 was
c563b9
released with 2.0.5, so rename it to 2.6 to indicate it is a later change.
c563b9
---
c563b9
 xml/api/crm_resource-2.5.rng | 238 -------------------------------------------
c563b9
 xml/api/crm_resource-2.6.rng | 238 +++++++++++++++++++++++++++++++++++++++++++
c563b9
 2 files changed, 238 insertions(+), 238 deletions(-)
c563b9
 delete mode 100644 xml/api/crm_resource-2.5.rng
c563b9
 create mode 100644 xml/api/crm_resource-2.6.rng
c563b9
c563b9
diff --git a/xml/api/crm_resource-2.5.rng b/xml/api/crm_resource-2.5.rng
c563b9
deleted file mode 100644
c563b9
index b49e24c..0000000
c563b9
--- a/xml/api/crm_resource-2.5.rng
c563b9
+++ /dev/null
c563b9
@@ -1,238 +0,0 @@
c563b9
-
c563b9
-
c563b9
-         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
c563b9
-
c563b9
-    <start>
c563b9
-        <ref name="element-crm-resource"/>
c563b9
-    </start>
c563b9
-
c563b9
-    <define name="element-crm-resource">
c563b9
-        <choice>
c563b9
-            <ref name="agents-list" />
c563b9
-            <ref name="alternatives-list" />
c563b9
-            <ref name="constraints-list" />
c563b9
-            <externalRef href="generic-list-2.4.rng"/>
c563b9
-            <element name="metadata"> <text/> </element>
c563b9
-            <ref name="locate-list" />
c563b9
-            <ref name="operations-list" />
c563b9
-            <ref name="providers-list" />
c563b9
-            <ref name="reasons-list" />
c563b9
-            <ref name="resource-check" />
c563b9
-            <ref name="resource-config" />
c563b9
-            <ref name="resources-list" />
c563b9
-        </choice>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="agents-list">
c563b9
-        <element name="agents">
c563b9
-            <attribute name="standard"> <text/> </attribute>
c563b9
-            <optional>
c563b9
-                <attribute name="provider"> <text/> </attribute>
c563b9
-            </optional>
c563b9
-            <zeroOrMore>
c563b9
-                <element name="agent"> <text/> </element>
c563b9
-            </zeroOrMore>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="alternatives-list">
c563b9
-        <element name="providers">
c563b9
-            <attribute name="for"> <text/> </attribute>
c563b9
-            <zeroOrMore>
c563b9
-                <element name="provider"> <text/> </element>
c563b9
-            </zeroOrMore>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="constraints-list">
c563b9
-        <element name="constraints">
c563b9
-            <interleave>
c563b9
-                <zeroOrMore>
c563b9
-                    <ref name="rsc-location" />
c563b9
-                </zeroOrMore>
c563b9
-                <zeroOrMore>
c563b9
-                    <ref name="rsc-colocation" />
c563b9
-                </zeroOrMore>
c563b9
-            </interleave>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="locate-list">
c563b9
-        <element name="nodes">
c563b9
-            <attribute name="resource"> <text/> </attribute>
c563b9
-            <zeroOrMore>
c563b9
-                <element name="node">
c563b9
-                    <optional>
c563b9
-                        <attribute name="state"><value>promoted</value></attribute>
c563b9
-                    </optional>
c563b9
-                    <text/>
c563b9
-                </element>
c563b9
-            </zeroOrMore>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="rsc-location">
c563b9
-        <element name="rsc_location">
c563b9
-            <attribute name="node"> <text/> </attribute>
c563b9
-            <attribute name="rsc"> <text/> </attribute>
c563b9
-            <attribute name="id"> <text/> </attribute>
c563b9
-            <externalRef href="../score.rng"/>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="operations-list">
c563b9
-        <element name="operations">
c563b9
-            <oneOrMore>
c563b9
-                <ref name="element-operation-list" />
c563b9
-            </oneOrMore>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="providers-list">
c563b9
-        <element name="providers">
c563b9
-            <attribute name="standard"> <value>ocf</value> </attribute>
c563b9
-            <optional>
c563b9
-                <attribute name="agent"> <text/> </attribute>
c563b9
-            </optional>
c563b9
-            <zeroOrMore>
c563b9
-                <element name="provider"> <text/> </element>
c563b9
-            </zeroOrMore>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="reasons-list">
c563b9
-        <choice>
c563b9
-            <ref name="no-resource-or-uname"/>
c563b9
-            <ref name="resource-and-uname"/>
c563b9
-            <ref name="no-resource-but-uname"/>
c563b9
-            <ref name="resource-but-no-uname"/>
c563b9
-        </choice>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="no-resource-or-uname">
c563b9
-        <element name="reason">
c563b9
-            <element name="resources">
c563b9
-                <zeroOrMore>
c563b9
-                    <element name="resource">
c563b9
-                        <attribute name="id"> <text/> </attribute>
c563b9
-                        <attribute name="running"> <data type="boolean"/> </attribute>
c563b9
-                        <ref name="resource-check"/>
c563b9
-                    </element>
c563b9
-                </zeroOrMore>
c563b9
-            </element>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="resource-and-uname">
c563b9
-        <element name="reason">
c563b9
-            <attribute name="running_on"> <text/> </attribute>
c563b9
-            <ref name="resource-check"/>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="no-resource-but-uname">
c563b9
-        <element name="reason">
c563b9
-            <element name="resources">
c563b9
-                <zeroOrMore>
c563b9
-                    <element name="resource">
c563b9
-                        <attribute name="id"> <text/> </attribute>
c563b9
-                        <attribute name="running"> <data type="boolean"/> </attribute>
c563b9
-                        <attribute name="host"> <text/> </attribute>
c563b9
-                        <ref name="resource-check"/>
c563b9
-                    </element>
c563b9
-                </zeroOrMore>
c563b9
-            </element>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="resource-but-no-uname">
c563b9
-        <element name="reason">
c563b9
-            <attribute name="running"> <data type="boolean"/> </attribute>
c563b9
-            <ref name="resource-check"/>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="resource-config">
c563b9
-        <element name="resource_config">
c563b9
-            <externalRef href="resources-2.4.rng" />
c563b9
-            <element name="xml"> <text/> </element>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="resource-check">
c563b9
-        <element name="check">
c563b9
-            <attribute name="id"> <text/> </attribute>
c563b9
-            <optional>
c563b9
-                <choice>
c563b9
-                    <attribute name="remain_stopped"><value>true</value></attribute>
c563b9
-                    <attribute name="promotable"><value>false</value></attribute>
c563b9
-                </choice>
c563b9
-            </optional>
c563b9
-            <optional>
c563b9
-                <attribute name="unmanaged"><value>true</value></attribute>
c563b9
-            </optional>
c563b9
-            <optional>
c563b9
-                <attribute name="locked-to"> <text/> </attribute>
c563b9
-            </optional>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="resources-list">
c563b9
-        <element name="resources">
c563b9
-            <zeroOrMore>
c563b9
-                <externalRef href="resources-2.4.rng" />
c563b9
-            </zeroOrMore>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="rsc-colocation">
c563b9
-        <element name="rsc_colocation">
c563b9
-            <attribute name="id"> <text/> </attribute>
c563b9
-            <attribute name="rsc"> <text/> </attribute>
c563b9
-            <attribute name="with-rsc"> <text/> </attribute>
c563b9
-            <externalRef href="../score.rng"/>
c563b9
-            <optional>
c563b9
-                <attribute name="node-attribute"> <text/> </attribute>
c563b9
-            </optional>
c563b9
-            <optional>
c563b9
-                <attribute name="rsc-role">
c563b9
-                    <ref name="attribute-roles"/>
c563b9
-                </attribute>
c563b9
-            </optional>
c563b9
-            <optional>
c563b9
-                <attribute name="with-rsc-role">
c563b9
-                    <ref name="attribute-roles"/>
c563b9
-                </attribute>
c563b9
-            </optional>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="element-operation-list">
c563b9
-        <element name="operation">
c563b9
-            <optional>
c563b9
-                <group>
c563b9
-                    <attribute name="rsc"> <text/> </attribute>
c563b9
-                    <attribute name="agent"> <text/> </attribute>
c563b9
-                </group>
c563b9
-            </optional>
c563b9
-            <attribute name="op"> <text/> </attribute>
c563b9
-            <attribute name="node"> <text/> </attribute>
c563b9
-            <attribute name="call"> <data type="nonNegativeInteger" /> </attribute>
c563b9
-            <attribute name="rc"> <data type="nonNegativeInteger" /> </attribute>
c563b9
-            <optional>
c563b9
-                <attribute name="last-rc-change"> <text/> </attribute>
c563b9
-                <attribute name="exec-time"> <data type="nonNegativeInteger" /> </attribute>
c563b9
-            </optional>
c563b9
-            <attribute name="status"> <text/> </attribute>
c563b9
-        </element>
c563b9
-    </define>
c563b9
-
c563b9
-    <define name="attribute-roles">
c563b9
-        <choice>
c563b9
-            <value>Stopped</value>
c563b9
-            <value>Started</value>
c563b9
-            <value>Master</value>
c563b9
-            <value>Slave</value>
c563b9
-        </choice>
c563b9
-    </define>
c563b9
-</grammar>
c563b9
diff --git a/xml/api/crm_resource-2.6.rng b/xml/api/crm_resource-2.6.rng
c563b9
new file mode 100644
c563b9
index 0000000..b49e24c
c563b9
--- /dev/null
c563b9
+++ b/xml/api/crm_resource-2.6.rng
c563b9
@@ -0,0 +1,238 @@
c563b9
+
c563b9
+
c563b9
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
c563b9
+
c563b9
+    <start>
c563b9
+        <ref name="element-crm-resource"/>
c563b9
+    </start>
c563b9
+
c563b9
+    <define name="element-crm-resource">
c563b9
+        <choice>
c563b9
+            <ref name="agents-list" />
c563b9
+            <ref name="alternatives-list" />
c563b9
+            <ref name="constraints-list" />
c563b9
+            <externalRef href="generic-list-2.4.rng"/>
c563b9
+            <element name="metadata"> <text/> </element>
c563b9
+            <ref name="locate-list" />
c563b9
+            <ref name="operations-list" />
c563b9
+            <ref name="providers-list" />
c563b9
+            <ref name="reasons-list" />
c563b9
+            <ref name="resource-check" />
c563b9
+            <ref name="resource-config" />
c563b9
+            <ref name="resources-list" />
c563b9
+        </choice>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="agents-list">
c563b9
+        <element name="agents">
c563b9
+            <attribute name="standard"> <text/> </attribute>
c563b9
+            <optional>
c563b9
+                <attribute name="provider"> <text/> </attribute>
c563b9
+            </optional>
c563b9
+            <zeroOrMore>
c563b9
+                <element name="agent"> <text/> </element>
c563b9
+            </zeroOrMore>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="alternatives-list">
c563b9
+        <element name="providers">
c563b9
+            <attribute name="for"> <text/> </attribute>
c563b9
+            <zeroOrMore>
c563b9
+                <element name="provider"> <text/> </element>
c563b9
+            </zeroOrMore>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="constraints-list">
c563b9
+        <element name="constraints">
c563b9
+            <interleave>
c563b9
+                <zeroOrMore>
c563b9
+                    <ref name="rsc-location" />
c563b9
+                </zeroOrMore>
c563b9
+                <zeroOrMore>
c563b9
+                    <ref name="rsc-colocation" />
c563b9
+                </zeroOrMore>
c563b9
+            </interleave>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="locate-list">
c563b9
+        <element name="nodes">
c563b9
+            <attribute name="resource"> <text/> </attribute>
c563b9
+            <zeroOrMore>
c563b9
+                <element name="node">
c563b9
+                    <optional>
c563b9
+                        <attribute name="state"><value>promoted</value></attribute>
c563b9
+                    </optional>
c563b9
+                    <text/>
c563b9
+                </element>
c563b9
+            </zeroOrMore>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="rsc-location">
c563b9
+        <element name="rsc_location">
c563b9
+            <attribute name="node"> <text/> </attribute>
c563b9
+            <attribute name="rsc"> <text/> </attribute>
c563b9
+            <attribute name="id"> <text/> </attribute>
c563b9
+            <externalRef href="../score.rng"/>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="operations-list">
c563b9
+        <element name="operations">
c563b9
+            <oneOrMore>
c563b9
+                <ref name="element-operation-list" />
c563b9
+            </oneOrMore>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="providers-list">
c563b9
+        <element name="providers">
c563b9
+            <attribute name="standard"> <value>ocf</value> </attribute>
c563b9
+            <optional>
c563b9
+                <attribute name="agent"> <text/> </attribute>
c563b9
+            </optional>
c563b9
+            <zeroOrMore>
c563b9
+                <element name="provider"> <text/> </element>
c563b9
+            </zeroOrMore>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="reasons-list">
c563b9
+        <choice>
c563b9
+            <ref name="no-resource-or-uname"/>
c563b9
+            <ref name="resource-and-uname"/>
c563b9
+            <ref name="no-resource-but-uname"/>
c563b9
+            <ref name="resource-but-no-uname"/>
c563b9
+        </choice>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="no-resource-or-uname">
c563b9
+        <element name="reason">
c563b9
+            <element name="resources">
c563b9
+                <zeroOrMore>
c563b9
+                    <element name="resource">
c563b9
+                        <attribute name="id"> <text/> </attribute>
c563b9
+                        <attribute name="running"> <data type="boolean"/> </attribute>
c563b9
+                        <ref name="resource-check"/>
c563b9
+                    </element>
c563b9
+                </zeroOrMore>
c563b9
+            </element>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="resource-and-uname">
c563b9
+        <element name="reason">
c563b9
+            <attribute name="running_on"> <text/> </attribute>
c563b9
+            <ref name="resource-check"/>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="no-resource-but-uname">
c563b9
+        <element name="reason">
c563b9
+            <element name="resources">
c563b9
+                <zeroOrMore>
c563b9
+                    <element name="resource">
c563b9
+                        <attribute name="id"> <text/> </attribute>
c563b9
+                        <attribute name="running"> <data type="boolean"/> </attribute>
c563b9
+                        <attribute name="host"> <text/> </attribute>
c563b9
+                        <ref name="resource-check"/>
c563b9
+                    </element>
c563b9
+                </zeroOrMore>
c563b9
+            </element>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="resource-but-no-uname">
c563b9
+        <element name="reason">
c563b9
+            <attribute name="running"> <data type="boolean"/> </attribute>
c563b9
+            <ref name="resource-check"/>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="resource-config">
c563b9
+        <element name="resource_config">
c563b9
+            <externalRef href="resources-2.4.rng" />
c563b9
+            <element name="xml"> <text/> </element>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="resource-check">
c563b9
+        <element name="check">
c563b9
+            <attribute name="id"> <text/> </attribute>
c563b9
+            <optional>
c563b9
+                <choice>
c563b9
+                    <attribute name="remain_stopped"><value>true</value></attribute>
c563b9
+                    <attribute name="promotable"><value>false</value></attribute>
c563b9
+                </choice>
c563b9
+            </optional>
c563b9
+            <optional>
c563b9
+                <attribute name="unmanaged"><value>true</value></attribute>
c563b9
+            </optional>
c563b9
+            <optional>
c563b9
+                <attribute name="locked-to"> <text/> </attribute>
c563b9
+            </optional>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="resources-list">
c563b9
+        <element name="resources">
c563b9
+            <zeroOrMore>
c563b9
+                <externalRef href="resources-2.4.rng" />
c563b9
+            </zeroOrMore>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="rsc-colocation">
c563b9
+        <element name="rsc_colocation">
c563b9
+            <attribute name="id"> <text/> </attribute>
c563b9
+            <attribute name="rsc"> <text/> </attribute>
c563b9
+            <attribute name="with-rsc"> <text/> </attribute>
c563b9
+            <externalRef href="../score.rng"/>
c563b9
+            <optional>
c563b9
+                <attribute name="node-attribute"> <text/> </attribute>
c563b9
+            </optional>
c563b9
+            <optional>
c563b9
+                <attribute name="rsc-role">
c563b9
+                    <ref name="attribute-roles"/>
c563b9
+                </attribute>
c563b9
+            </optional>
c563b9
+            <optional>
c563b9
+                <attribute name="with-rsc-role">
c563b9
+                    <ref name="attribute-roles"/>
c563b9
+                </attribute>
c563b9
+            </optional>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="element-operation-list">
c563b9
+        <element name="operation">
c563b9
+            <optional>
c563b9
+                <group>
c563b9
+                    <attribute name="rsc"> <text/> </attribute>
c563b9
+                    <attribute name="agent"> <text/> </attribute>
c563b9
+                </group>
c563b9
+            </optional>
c563b9
+            <attribute name="op"> <text/> </attribute>
c563b9
+            <attribute name="node"> <text/> </attribute>
c563b9
+            <attribute name="call"> <data type="nonNegativeInteger" /> </attribute>
c563b9
+            <attribute name="rc"> <data type="nonNegativeInteger" /> </attribute>
c563b9
+            <optional>
c563b9
+                <attribute name="last-rc-change"> <text/> </attribute>
c563b9
+                <attribute name="exec-time"> <data type="nonNegativeInteger" /> </attribute>
c563b9
+            </optional>
c563b9
+            <attribute name="status"> <text/> </attribute>
c563b9
+        </element>
c563b9
+    </define>
c563b9
+
c563b9
+    <define name="attribute-roles">
c563b9
+        <choice>
c563b9
+            <value>Stopped</value>
c563b9
+            <value>Started</value>
c563b9
+            <value>Master</value>
c563b9
+            <value>Slave</value>
c563b9
+        </choice>
c563b9
+    </define>
c563b9
+</grammar>
c563b9
-- 
c563b9
1.8.3.1
c563b9