Page MenuHomeClusterLabs Projects

No OneTemporary

diff --git a/cts/schemas/test-3/ref.err/role-after-failure.ref.err-0 b/cts/schemas/test-3/ref.err/role-after-failure.ref.err-0
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/role-after-failure.ref.err-1 b/cts/schemas/test-3/ref.err/role-after-failure.ref.err-1
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/role-after-failure.ref.err-2 b/cts/schemas/test-3/ref.err/role-after-failure.ref.err-2
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/role-after-failure.ref.err-3 b/cts/schemas/test-3/ref.err/role-after-failure.ref.err-3
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/role-after-failure.ref.err-4 b/cts/schemas/test-3/ref.err/role-after-failure.ref.err-4
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref.err/role-after-failure.ref.err-99 b/cts/schemas/test-3/ref.err/role-after-failure.ref.err-99
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/cts/schemas/test-3/ref/role-after-failure.ref-0 b/cts/schemas/test-3/ref/role-after-failure.ref-0
new file mode 100644
index 0000000000..4fbab40e25
--- /dev/null
+++ b/cts/schemas/test-3/ref/role-after-failure.ref-0
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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/role-after-failure.ref-1 b/cts/schemas/test-3/ref/role-after-failure.ref-1
new file mode 100644
index 0000000000..b79b10f6f9
--- /dev/null
+++ b/cts/schemas/test-3/ref/role-after-failure.ref-1
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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/role-after-failure.ref-2 b/cts/schemas/test-3/ref/role-after-failure.ref-2
new file mode 100644
index 0000000000..b79b10f6f9
--- /dev/null
+++ b/cts/schemas/test-3/ref/role-after-failure.ref-2
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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/role-after-failure.ref-3 b/cts/schemas/test-3/ref/role-after-failure.ref-3
new file mode 100644
index 0000000000..b79b10f6f9
--- /dev/null
+++ b/cts/schemas/test-3/ref/role-after-failure.ref-3
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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/role-after-failure.ref-4 b/cts/schemas/test-3/ref/role-after-failure.ref-4
new file mode 100644
index 0000000000..b79b10f6f9
--- /dev/null
+++ b/cts/schemas/test-3/ref/role-after-failure.ref-4
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes" original="1">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true" original="1"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization" original="1">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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/role-after-failure.ref-99 b/cts/schemas/test-3/ref/role-after-failure.ref-99
new file mode 100644
index 0000000000..b228cbe259
--- /dev/null
+++ b/cts/schemas/test-3/ref/role-after-failure.ref-99
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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/role-after-failure.xml b/cts/schemas/test-3/xml/role-after-failure.xml
new file mode 100644
index 0000000000..12a93b7130
--- /dev/null
+++ b/cts/schemas/test-3/xml/role-after-failure.xml
@@ -0,0 +1,120 @@
+<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="role_after_failure" and another with
+ name="other".
+ * There are other nvsets containing nvpairs with
+ name="role_after_failure".
+
+ In this situation, all role_after_failure 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true"/>
+ </instance_attributes>
+ <meta_attributes id="rsc1-meta_attributes">
+ <nvpair id="rsc1-meta_attributes-role_after_failure" name="role_after_failure" value="true"/>
+ </meta_attributes>
+ <utilization id="rsc1-utilization">
+ <nvpair id="rsc1-utilization-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" 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-role_after_failure" name="role_after_failure" value="true"/>
+ <nvpair id="op_defaults-meta_attributes-other" name="other" value="true"/>
+ </meta_attributes>
+ </op_defaults>
+ </configuration>
+ <status/>
+</cib>

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jul 10, 1:34 AM (22 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2009524
Default Alt Text
(47 KB)

Event Timeline