Blame SOURCES/025-feature-set.patch

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