60de42
From e64661a0a650f48939d700e065e238524042d05b Mon Sep 17 00:00:00 2001
60de42
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
60de42
Date: Sun, 20 Nov 2016 05:44:47 +0100
60de42
Subject: [PATCH 1/2] Low: rng: Create resources-2.7.rng to update template
60de42
 class validation
60de42
60de42
Breaks the class/provider attribute definitions for primitive and
60de42
template out into a new define, which will help prevent one or the
60de42
other getting out of sync.
60de42
60de42
Also fixes the template class list being outdated.
60de42
---
60de42
 xml/resources-2.7.rng | 218 ++++++++++++++++++++++++++++++++++++++++++++++++++
60de42
 1 file changed, 218 insertions(+)
60de42
 create mode 100644 xml/resources-2.7.rng
60de42
60de42
diff --git a/xml/resources-2.7.rng b/xml/resources-2.7.rng
60de42
new file mode 100644
60de42
index 0000000..355382b
60de42
--- /dev/null
60de42
+++ b/xml/resources-2.7.rng
60de42
@@ -0,0 +1,218 @@
60de42
+
60de42
+
60de42
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
60de42
+  <start>
60de42
+      <ref name="element-resources"/>
60de42
+  </start>
60de42
+
60de42
+  <define name="element-resources">
60de42
+    <element name="resources">
60de42
+      <zeroOrMore>
60de42
+        <choice>
60de42
+          <ref name="element-primitive"/>
60de42
+          <ref name="element-template"/>
60de42
+          <ref name="element-group"/>
60de42
+          <ref name="element-clone"/>
60de42
+          <ref name="element-master"/>
60de42
+        </choice>
60de42
+      </zeroOrMore>
60de42
+    </element>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-primitive">
60de42
+    <element name="primitive">
60de42
+      <interleave>
60de42
+        <attribute name="id"><data type="ID"/></attribute>
60de42
+        <choice>
60de42
+          <group>
60de42
+            <ref name="element-resource-class"/>
60de42
+            <attribute name="type"><text/></attribute>
60de42
+          </group>
60de42
+          <attribute name="template"><data type="IDREF"/></attribute>
60de42
+        </choice>
60de42
+        <optional>
60de42
+          <attribute name="description"><text/></attribute>
60de42
+        </optional>
60de42
+        <ref name="element-resource-extra"/>
60de42
+        <ref name="element-operations"/>
60de42
+        <zeroOrMore>
60de42
+          <element name="utilization">
60de42
+            <externalRef href="nvset-1.3.rng"/>
60de42
+          </element>
60de42
+        </zeroOrMore>
60de42
+      </interleave>
60de42
+    </element>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-template">
60de42
+    <element name="template">
60de42
+      <interleave>
60de42
+        <attribute name="id"><data type="ID"/></attribute>
60de42
+        <ref name="element-resource-class"/>
60de42
+        <attribute name="type"><text/></attribute>
60de42
+        <optional>
60de42
+          <attribute name="description"><text/></attribute>
60de42
+        </optional>
60de42
+        <ref name="element-resource-extra"/>
60de42
+        <ref name="element-operations"/>
60de42
+        <zeroOrMore>
60de42
+          <element name="utilization">
60de42
+            <externalRef href="nvset-1.3.rng"/>
60de42
+          </element>
60de42
+        </zeroOrMore>
60de42
+      </interleave>
60de42
+    </element>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-group">
60de42
+    <element name="group">
60de42
+      <attribute name="id"><data type="ID"/></attribute>
60de42
+      <optional>
60de42
+        <attribute name="description"><text/></attribute>
60de42
+      </optional>
60de42
+      <interleave>
60de42
+        <ref name="element-resource-extra"/>
60de42
+        <oneOrMore>
60de42
+          <ref name="element-primitive"/>
60de42
+        </oneOrMore>
60de42
+      </interleave>
60de42
+    </element>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-clone">
60de42
+    <element name="clone">
60de42
+      <attribute name="id"><data type="ID"/></attribute>
60de42
+      <optional>
60de42
+        <attribute name="description"><text/></attribute>
60de42
+      </optional>
60de42
+      <interleave>
60de42
+        <ref name="element-resource-extra"/>
60de42
+        <choice>
60de42
+          <ref name="element-primitive"/>
60de42
+          <ref name="element-group"/>
60de42
+        </choice>
60de42
+      </interleave>
60de42
+    </element>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-master">
60de42
+    <element name="master">
60de42
+      <attribute name="id"><data type="ID"/></attribute>
60de42
+      <optional>
60de42
+        <attribute name="description"><text/></attribute>
60de42
+      </optional>
60de42
+      <interleave>
60de42
+        <ref name="element-resource-extra"/>
60de42
+        <choice>
60de42
+          <ref name="element-primitive"/>
60de42
+          <ref name="element-group"/>
60de42
+        </choice>
60de42
+      </interleave>
60de42
+    </element>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-resource-extra">
60de42
+      <zeroOrMore>
60de42
+        <choice>
60de42
+          <element name="meta_attributes">
60de42
+            <externalRef href="nvset-1.3.rng"/>
60de42
+          </element>
60de42
+          <element name="instance_attributes">
60de42
+            <externalRef href="nvset-1.3.rng"/>
60de42
+          </element>
60de42
+        </choice>
60de42
+      </zeroOrMore>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-operations">
60de42
+    <optional>
60de42
+      <element name="operations">
60de42
+        <optional>
60de42
+          <attribute name="id"><data type="ID"/></attribute>
60de42
+        </optional>
60de42
+        <optional>
60de42
+          <attribute name="id-ref"><data type="IDREF"/></attribute>
60de42
+        </optional>
60de42
+        <zeroOrMore>
60de42
+          <element name="op">
60de42
+            <attribute name="id"><data type="ID"/></attribute>
60de42
+            <attribute name="name"><text/></attribute>
60de42
+            <attribute name="interval"><text/></attribute>
60de42
+            <optional>
60de42
+              <attribute name="description"><text/></attribute>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <choice>
60de42
+                <attribute name="start-delay"><text/></attribute>
60de42
+                <attribute name="interval-origin"><text/></attribute>
60de42
+              </choice>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <attribute name="timeout"><text/></attribute>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <attribute name="enabled"><data type="boolean"/></attribute>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <attribute name="record-pending"><data type="boolean"/></attribute>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <attribute name="role">
60de42
+                <choice>
60de42
+                  <value>Stopped</value>
60de42
+                  <value>Started</value>
60de42
+                  <value>Slave</value>
60de42
+                  <value>Master</value>
60de42
+                </choice>
60de42
+              </attribute>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <attribute name="requires">
60de42
+                <choice>
60de42
+                  <value>nothing</value>
60de42
+                  <value>quorum</value>
60de42
+                  <value>fencing</value>
60de42
+                  <value>unfencing</value>
60de42
+                </choice>
60de42
+              </attribute>
60de42
+            </optional>
60de42
+            <optional>
60de42
+              <attribute name="on-fail">
60de42
+                <choice>
60de42
+                  <value>ignore</value>
60de42
+                  <value>block</value>
60de42
+                  <value>stop</value>
60de42
+                  <value>restart</value>
60de42
+                  <value>standby</value>
60de42
+                  <value>fence</value>
60de42
+                  <value>restart-container</value>
60de42
+                </choice>
60de42
+              </attribute>
60de42
+            </optional>
60de42
+            <ref name="element-resource-extra"/>
60de42
+          </element>
60de42
+        </zeroOrMore>
60de42
+      </element>
60de42
+    </optional>
60de42
+  </define>
60de42
+
60de42
+  <define name="element-resource-class">
60de42
+    <choice>
60de42
+      <group>
60de42
+        <attribute name="class"><value>ocf</value></attribute>
60de42
+        <attribute name="provider"><text/></attribute>
60de42
+      </group>
60de42
+      <attribute name="class">
60de42
+        <choice>
60de42
+          <value>lsb</value>
60de42
+          <value>heartbeat</value>
60de42
+          <value>stonith</value>
60de42
+          <value>upstart</value>
60de42
+          <value>service</value>
60de42
+          <value>systemd</value>
60de42
+          <value>nagios</value>
60de42
+        </choice>
60de42
+      </attribute>
60de42
+    </choice>
60de42
+  </define>
60de42
+</grammar>
60de42
-- 
60de42
1.8.3.1
60de42
60de42
60de42
From 1ec756ce373e1ec36a6de7c2c2a9a2d599cbbe98 Mon Sep 17 00:00:00 2001
60de42
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
60de42
Date: Wed, 23 Nov 2016 19:46:34 +0100
60de42
Subject: [PATCH 2/2] Test: tools: make validity tests better adapting to new
60de42
 schemas
60de42
60de42
We only want to suppress boring repeated parts from the diff when
60de42
new schema emerges, but still want to be alerted about the new lines
60de42
arising from the presence of such new schema -- that's a feedback
60de42
loop that it is indeed being taken into account (and updating the
60de42
regression tests to reconcile this minimalistic diff is a bearable
60de42
duty at that opportunity).
60de42
60de42
In one go, also reflect latest addition (as of previous commit) to
60de42
the line of schemas -- pacemaker-2.7.
60de42
---
60de42
 tools/regression.sh           |  3 +-
60de42
 tools/regression.validity.exp | 84 +++++++++++++++++++++++++------------------
60de42
 2 files changed, 51 insertions(+), 36 deletions(-)
60de42
60de42
diff --git a/tools/regression.sh b/tools/regression.sh
60de42
index f8def43..47bff43 100755
60de42
--- a/tools/regression.sh
60de42
+++ b/tools/regression.sh
60de42
@@ -754,7 +754,8 @@ for t in $tests; do
60de42
         -e 's/.*error: unpack_resources:/error: unpack_resources:/g'\
60de42
         -e 's/ last-rc-change=\"[0-9]*\"//'\
60de42
         -e 's|^/tmp/[0-9][0-9]*\.||'\
60de42
-        -e 's/^Entity: line [0-9][0-9]*: //' $test_home/regression.$t.out
60de42
+        -e 's/^Entity: line [0-9][0-9]*: //'\
60de42
+        -e 's/\(validation ([0-9][0-9]* of \)[0-9][0-9]*\().*\)/\1X\2/' $test_home/regression.$t.out
60de42
 
60de42
     if [ $do_save = 1 ]; then
60de42
 	cp $test_home/regression.$t.out $test_home/regression.$t.exp
60de42
diff --git a/tools/regression.validity.exp b/tools/regression.validity.exp
60de42
index 39dbf92..827b660 100644
60de42
--- a/tools/regression.validity.exp
60de42
+++ b/tools/regression.validity.exp
60de42
@@ -22,43 +22,47 @@ Call failed: Update does not conform to the configured schema
60de42
 =#=#=#= End test: Try to make resulting CIB invalid (enum violation) - Update does not conform to the configured schema (203) =#=#=#=
60de42
 * Passed: cibadmin       - Try to make resulting CIB invalid (enum violation)
60de42
 =#=#=#= Begin test: Run crm_simulate with invalid CIB (enum violation) =#=#=#=
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-1.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.0 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.1 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.4 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.5 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.6 validation failed
60de42
-Your current configuration pacemaker-1.2 could not validate with any schema in range [pacemaker-1.2, pacemaker-2.6], cannot upgrade to pacemaker-2.0.
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
+element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
+element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
+(   schemas.c:760   )   trace: update_validation:	pacemaker-2.7 validation failed
60de42
+Your current configuration pacemaker-1.2 could not validate with any schema in range [pacemaker-1.2, pacemaker-2.7], cannot upgrade to pacemaker-2.0.
60de42
 =#=#=#= End test: Run crm_simulate with invalid CIB (enum violation) - Required key not available (126) =#=#=#=
60de42
 * Passed: crm_simulate   - Run crm_simulate with invalid CIB (enum violation)
60de42
 =#=#=#= Begin test: Try to make resulting CIB invalid (unrecognized validate-with) =#=#=#=
60de42
@@ -82,54 +86,57 @@ Call failed: Update does not conform to the configured schema
60de42
 * Passed: cibadmin       - Try to make resulting CIB invalid (unrecognized validate-with)
60de42
 =#=#=#= Begin test: Run crm_simulate with invalid CIB (unrecognized validate-with) =#=#=#=
60de42
 (   schemas.c:736   )   debug: update_validation:	Unknown validation type
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-0.6' validation (0 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-0.6' validation (0 of X)
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute to
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute from
60de42
 element rsc_order: validity error : No declaration for attribute first of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute first-action of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute then of element rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-0.6 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'transitional-0.6' validation (1 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'transitional-0.6' validation (1 of X)
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute to
60de42
 element rsc_order: validity error : Element rsc_order does not carry attribute from
60de42
 element rsc_order: validity error : No declaration for attribute first of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute first-action of element rsc_order
60de42
 element rsc_order: validity error : No declaration for attribute then of element rsc_order
60de42
 (   schemas.c:760   )   trace: update_validation:	transitional-0.6 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-0.7' validation (2 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-0.7' validation (2 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-0.7 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.0' validation (3 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.0' validation (3 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-1.0 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-1.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.0 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.1 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.3 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.4 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.5 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
 element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-2.6 validation failed
60de42
-Your current configuration pacemaker-9999.0 could not validate with any schema in range [unknown, pacemaker-2.6], cannot upgrade to pacemaker-2.0.
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
+element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
60de42
+(   schemas.c:760   )   trace: update_validation:	pacemaker-2.7 validation failed
60de42
+Your current configuration pacemaker-9999.0 could not validate with any schema in range [unknown, pacemaker-2.7], cannot upgrade to pacemaker-2.0.
60de42
 =#=#=#= End test: Run crm_simulate with invalid CIB (unrecognized validate-with) - Required key not available (126) =#=#=#=
60de42
 * Passed: crm_simulate   - Run crm_simulate with invalid CIB (unrecognized validate-with)
60de42
 =#=#=#= Begin test: Try to make resulting CIB invalid, but possibly recoverable (valid with X.Y+1) =#=#=#=
60de42
@@ -152,33 +159,36 @@ Call failed: Update does not conform to the configured schema
60de42
 =#=#=#= End test: Try to make resulting CIB invalid, but possibly recoverable (valid with X.Y+1) - Update does not conform to the configured schema (203) =#=#=#=
60de42
 * Passed: cibadmin       - Try to make resulting CIB invalid, but possibly recoverable (valid with X.Y+1)
60de42
 =#=#=#= Begin test: Run crm_simulate with invalid, but possibly recoverable CIB (valid with X.Y+1) =#=#=#=
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.2' validation (4 of X)
60de42
 element tags: Relax-NG validity error : Element configuration has extra content: tags
60de42
 (   schemas.c:760   )   trace: update_validation:	pacemaker-1.2 validation failed
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-1.3' validation (5 of X)
60de42
 (   schemas.c:804   )   debug: update_validation:	Upgrading pacemaker-1.3-style configuration to pacemaker-2.0 with upgrade-1.3.xsl
60de42
 (   schemas.c:816   )    info: update_validation:	Transformation upgrade-1.3.xsl successful
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.0' validation (6 of X)
60de42
 (   schemas.c:797   )   debug: update_validation:	pacemaker-2.0-style configuration is also valid for pacemaker-2.1
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.1' validation (7 of X)
60de42
 (   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.1
60de42
 (   schemas.c:797   )   debug: update_validation:	pacemaker-2.1-style configuration is also valid for pacemaker-2.2
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.2' validation (8 of X)
60de42
 (   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.2
60de42
 (   schemas.c:797   )   debug: update_validation:	pacemaker-2.2-style configuration is also valid for pacemaker-2.3
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.3' validation (9 of X)
60de42
 (   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.3
60de42
 (   schemas.c:797   )   debug: update_validation:	pacemaker-2.3-style configuration is also valid for pacemaker-2.4
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.4' validation (10 of X)
60de42
 (   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.4
60de42
 (   schemas.c:797   )   debug: update_validation:	pacemaker-2.4-style configuration is also valid for pacemaker-2.5
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.5' validation (11 of X)
60de42
 (   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.5
60de42
 (   schemas.c:797   )   debug: update_validation:	pacemaker-2.5-style configuration is also valid for pacemaker-2.6
60de42
-(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of 12)
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.6' validation (12 of X)
60de42
 (   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.6
60de42
-(   schemas.c:787   )   trace: update_validation:	Stopping at pacemaker-2.6
60de42
-(   schemas.c:843   )    info: update_validation:	Transformed the configuration from pacemaker-1.2 to pacemaker-2.6
60de42
+(   schemas.c:797   )   debug: update_validation:	pacemaker-2.6-style configuration is also valid for pacemaker-2.7
60de42
+(   schemas.c:751   )   debug: update_validation:	Testing 'pacemaker-2.7' validation (13 of X)
60de42
+(   schemas.c:771   )   debug: update_validation:	Configuration valid for schema: pacemaker-2.7
60de42
+(   schemas.c:787   )   trace: update_validation:	Stopping at pacemaker-2.7
60de42
+(   schemas.c:843   )    info: update_validation:	Transformed the configuration from pacemaker-1.2 to pacemaker-2.7
60de42
 error: unpack_resources:	Resource start-up disabled since no STONITH resources have been defined
60de42
 error: unpack_resources:	Either configure some or disable STONITH with the stonith-enabled option
60de42
 error: unpack_resources:	NOTE: Clusters with shared data need STONITH to ensure data integrity
60de42
@@ -302,6 +312,8 @@ element rsc_order: Relax-NG validity error : Invalid attribute first-action for
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
+element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
+element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 =#=#=#= Current cib after: Make resulting CIB invalid, and without validate-with attribute =#=#=#=
60de42
 <cib epoch="31" num_updates="0" admin_epoch="0" validate-with="none">
60de42
   <configuration>
60de42
@@ -357,6 +369,8 @@ bad-1.2.xml:10: element rsc_order: Relax-NG validity error : Invalid attribute f
60de42
 bad-1.2.xml:10: element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 bad-1.2.xml:10: element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
 bad-1.2.xml:10: element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
+bad-1.2.xml:10: element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
60de42
+bad-1.2.xml:10: element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
60de42
 error: unpack_resources:	Resource start-up disabled since no STONITH resources have been defined
60de42
 error: unpack_resources:	Either configure some or disable STONITH with the stonith-enabled option
60de42
 error: unpack_resources:	NOTE: Clusters with shared data need STONITH to ensure data integrity
60de42
-- 
60de42
1.8.3.1
60de42