Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4638858
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
45 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/cts/schemas/test-3/ref.err/can-fail.ref.err-0 b/cts/schemas/test-3/ref.err/can-fail.ref.err-0
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/can-fail.ref.err-1 b/cts/schemas/test-3/ref.err/can-fail.ref.err-1
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/can-fail.ref.err-2 b/cts/schemas/test-3/ref.err/can-fail.ref.err-2
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/can-fail.ref.err-3 b/cts/schemas/test-3/ref.err/can-fail.ref.err-3
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/can-fail.ref.err-4 b/cts/schemas/test-3/ref.err/can-fail.ref.err-4
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/can-fail.ref.err-99 b/cts/schemas/test-3/ref.err/can-fail.ref.err-99
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref/can-fail.ref-0 b/cts/schemas/test-3/ref/can-fail.ref-0
new file mode 100644
index 0000000000..84a3a89f32
--- /dev/null
+++ b/cts/schemas/test-3/ref/can-fail.ref-0
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-3.10" epoch="8" num_updates="0" admin_epoch="0" original="1">
+ <configuration original="1">
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config original="1">
+ <cluster_property_set id="cib-bootstrap-options" original="1">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true" original="1"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes original="1"/>
+ <resources original="1">
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="template1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="template1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes" original="1">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true" original="1"/>
+ </utilization>
+ </primitive>
+ <group id="grp1" original="1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1" original="1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2" original="1">
+ <group id="grp2" original="1">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1" original="1">
+ <podman image="localhost/pcmktest:http" replicas="3" original="1"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache" original="1">
+ <operations original="1">
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints original="1"/>
+ <op_defaults original="1">
+ <meta_attributes id="op_defaults-meta_attributes" original="1">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status original="1"/>
+</cib>
diff --git a/cts/schemas/test-3/ref/can-fail.ref-1 b/cts/schemas/test-3/ref/can-fail.ref-1
new file mode 100644
index 0000000000..44c1a256ff
--- /dev/null
+++ b/cts/schemas/test-3/ref/can-fail.ref-1
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-4.0" epoch="8" num_updates="0" admin_epoch="0" original="1">
+ <configuration original="1">
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config original="1">
+ <cluster_property_set id="cib-bootstrap-options" original="1">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true" original="1"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes original="1"/>
+ <resources original="1">
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="template1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="template1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes" original="1">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true" original="1"/>
+ </utilization>
+ </primitive>
+ <group id="grp1" original="1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1" original="1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2" original="1">
+ <group id="grp2" original="1">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1" original="1">
+ <podman image="localhost/pcmktest:http" replicas="3" original="1"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache" original="1">
+ <operations original="1">
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints original="1"/>
+ <op_defaults original="1">
+ <meta_attributes id="op_defaults-meta_attributes" original="1">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status original="1"/>
+</cib>
diff --git a/cts/schemas/test-3/ref/can-fail.ref-2 b/cts/schemas/test-3/ref/can-fail.ref-2
new file mode 100644
index 0000000000..44c1a256ff
--- /dev/null
+++ b/cts/schemas/test-3/ref/can-fail.ref-2
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-4.0" epoch="8" num_updates="0" admin_epoch="0" original="1">
+ <configuration original="1">
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config original="1">
+ <cluster_property_set id="cib-bootstrap-options" original="1">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true" original="1"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes original="1"/>
+ <resources original="1">
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="template1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="template1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes" original="1">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true" original="1"/>
+ </utilization>
+ </primitive>
+ <group id="grp1" original="1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1" original="1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2" original="1">
+ <group id="grp2" original="1">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1" original="1">
+ <podman image="localhost/pcmktest:http" replicas="3" original="1"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache" original="1">
+ <operations original="1">
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints original="1"/>
+ <op_defaults original="1">
+ <meta_attributes id="op_defaults-meta_attributes" original="1">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status original="1"/>
+</cib>
diff --git a/cts/schemas/test-3/ref/can-fail.ref-3 b/cts/schemas/test-3/ref/can-fail.ref-3
new file mode 100644
index 0000000000..44c1a256ff
--- /dev/null
+++ b/cts/schemas/test-3/ref/can-fail.ref-3
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-4.0" epoch="8" num_updates="0" admin_epoch="0" original="1">
+ <configuration original="1">
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config original="1">
+ <cluster_property_set id="cib-bootstrap-options" original="1">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true" original="1"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes original="1"/>
+ <resources original="1">
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="template1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="template1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes" original="1">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true" original="1"/>
+ </utilization>
+ </primitive>
+ <group id="grp1" original="1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1" original="1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2" original="1">
+ <group id="grp2" original="1">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1" original="1">
+ <podman image="localhost/pcmktest:http" replicas="3" original="1"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache" original="1">
+ <operations original="1">
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints original="1"/>
+ <op_defaults original="1">
+ <meta_attributes id="op_defaults-meta_attributes" original="1">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status original="1"/>
+</cib>
diff --git a/cts/schemas/test-3/ref/can-fail.ref-4 b/cts/schemas/test-3/ref/can-fail.ref-4
new file mode 100644
index 0000000000..44c1a256ff
--- /dev/null
+++ b/cts/schemas/test-3/ref/can-fail.ref-4
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-4.0" epoch="8" num_updates="0" admin_epoch="0" original="1">
+ <configuration original="1">
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config original="1">
+ <cluster_property_set id="cib-bootstrap-options" original="1">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true" original="1"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes original="1"/>
+ <resources original="1">
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="template1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="template1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes" original="1">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true" original="1"/>
+ </utilization>
+ </primitive>
+ <group id="grp1" original="1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1" original="1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2" original="1">
+ <group id="grp2" original="1">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy" original="1">
+ <operations original="1">
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1" original="1">
+ <podman image="localhost/pcmktest:http" replicas="3" original="1"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache" original="1">
+ <operations original="1">
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor" original="1">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes" original="1">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false" original="1"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false" original="1"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints original="1"/>
+ <op_defaults original="1">
+ <meta_attributes id="op_defaults-meta_attributes" original="1">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true" original="1"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true" original="1"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status original="1"/>
+</cib>
diff --git a/cts/schemas/test-3/ref/can-fail.ref-99 b/cts/schemas/test-3/ref/can-fail.ref-99
new file mode 100644
index 0000000000..6ea72db913
--- /dev/null
+++ b/cts/schemas/test-3/ref/can-fail.ref-99
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-4.0" epoch="8" num_updates="0" admin_epoch="0">
+ <configuration>
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config>
+ <cluster_property_set id="cib-bootstrap-options">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes/>
+ <resources>
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="template1_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="template1_monitor_20000-meta_attributes">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true"/>
+ </utilization>
+ </primitive>
+ <group id="grp1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2">
+ <group id="grp2">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1">
+ <podman image="localhost/pcmktest:http" replicas="3"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache">
+ <operations>
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints/>
+ <op_defaults>
+ <meta_attributes id="op_defaults-meta_attributes">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status/>
+</cib>
diff --git a/cts/schemas/test-3/xml/can-fail.xml b/cts/schemas/test-3/xml/can-fail.xml
new file mode 100644
index 0000000000..42e58d0637
--- /dev/null
+++ b/cts/schemas/test-3/xml/can-fail.xml
@@ -0,0 +1,119 @@
+<cib crm_feature_set="3.19.7" validate-with="pacemaker-3.10" epoch="8" num_updates="0" admin_epoch="0">
+ <configuration>
+ <!-- The essential elements of this test are:
+ * There are the following resources:
+ * A template
+ * A primitive outside of any collective resource
+ * A group containing a single member
+ * A cloned primitive
+ * A cloned group containing a single member
+ * A bundle containing a primitive
+ * There is an op_defaults element.
+ * Each primitive has an op element.
+ * Each op and the op_defaults element have a meta_attributes element
+ containing an nvpair with name="can_fail" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with name="can_fail".
+
+ In this situation, all can_fail meta-attributes within op and
+ op_defaults elements should be dropped. Other meta-attributes should be
+ unchanged.
+ -->
+ <crm_config>
+ <cluster_property_set id="cib-bootstrap-options">
+ <nvpair id="cib-bootstrap-options-can_fail" name="can_fail" value="true"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes/>
+ <resources>
+ <template class="ocf" id="template1" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="template1_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="template1_monitor_20000-meta_attributes">
+ <nvpair id="template_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="template_monitor_20000-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </template>
+ <primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc1_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc1_monitor_20000-meta_attributes">
+ <nvpair id="rsc1_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false"/>
+ <nvpair id="rsc1_monitor_20000-meta_attributes-other" name="other" value="false"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="rsc1-instance_attributes">
+ <nvpair id="rsc1-instance_attributes-can_fail" name="can_fail" value="true"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes">
+ <nvpair id="rsc1-meta_attributes-can_fail" name="can_fail" value="true"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization">
+ <nvpair id="rsc1-utilization-can_fail" name="can_fail" value="true"/>
+ </utilization>
+ </primitive>
+ <group id="grp1">
+ <primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc2_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc2_monitor_20000-meta_attributes">
+ <nvpair id="rsc2_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="rsc2_monitor_20000-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ <clone id="clone1">
+ <primitive class="ocf" id="rsc3" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc3_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc3_monitor_20000-meta_attributes">
+ <nvpair id="rsc3_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false"/>
+ <nvpair id="rsc3_monitor_20000-meta_attributes-other" name="other" value="false"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </clone>
+ <clone id="clone2">
+ <group id="grp2">
+ <primitive class="ocf" id="rsc4" provider="pacemaker" type="Dummy">
+ <operations>
+ <op id="rsc4_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc4_monitor_20000-meta_attributes">
+ <nvpair id="rsc4_monitor_20000-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="rsc4_monitor_20000-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </group>
+ </clone>
+ <bundle id="bundle1">
+ <podman image="localhost/pcmktest:http" replicas="3"/>
+ <primitive class="ocf" id="rsc5" provider="heartbeat" type="apache">
+ <operations>
+ <op id="rsc5_monitor_20000" interval="20s" name="monitor">
+ <meta_attributes id="rsc5_monitor_20000-meta_attributes">
+ <nvpair id="rsc5_monitor_20000-meta_attributes-can_fail" name="can_fail" value="false"/>
+ <nvpair id="rsc5_monitor_20000-meta_attributes-other" name="other" value="false"/>
+ </meta_attributes>
+ </op>
+ </operations>
+ </primitive>
+ </bundle>
+ </resources>
+ <constraints/>
+ <op_defaults>
+ <meta_attributes id="op_defaults-meta_attributes">
+ <nvpair id="op_defaults-meta_attributes-can_fail" name="can_fail" value="true"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status/>
+</cib>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jul 10, 1:34 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2009519
Default Alt Text
(45 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment