summaryrefslogtreecommitdiffstats
path: root/xml/test-2-enter
diff options
context:
space:
mode:
Diffstat (limited to 'xml/test-2-enter')
-rw-r--r--xml/test-2-enter/010-clu-props.ref17
-rw-r--r--xml/test-2-enter/010-clu-props.ref.err0
-rw-r--r--xml/test-2-enter/010-clu-props.xml15
-rw-r--r--xml/test-2-enter/020-instance_atributes-rsc.ref41
-rw-r--r--xml/test-2-enter/020-instance_atributes-rsc.ref.err0
-rw-r--r--xml/test-2-enter/020-instance_atributes-rsc.xml39
-rw-r--r--xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref40
-rw-r--r--xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref.err0
-rw-r--r--xml/test-2-enter/021-instance_atributes-rsc-nonbijective.xml38
9 files changed, 190 insertions, 0 deletions
diff --git a/xml/test-2-enter/010-clu-props.ref b/xml/test-2-enter/010-clu-props.ref
new file mode 100644
index 0000000..86369fb
--- /dev/null
+++ b/xml/test-2-enter/010-clu-props.ref
@@ -0,0 +1,17 @@
+<cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
+ <configuration>
+ <crm_config>
+ <cluster_property_set id="cluster-opts">
+ <nvpair id="cluster-opts-stonith_enabled" name="stonith_enabled" value="off"/>
+ </cluster_property_set>
+ <!-- this doesn't make any sense, i.e., a design flaw -->
+ <cluster_property_set id="_cibtr-2_cluster-opts">
+ <nvpair id="__cibtr-2_cluster-opts__cluster-opts-stonith_enabled" name="stonith_enabled" value="off"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes/>
+ <resources/>
+ <constraints/>
+ </configuration>
+ <status/>
+</cib>
diff --git a/xml/test-2-enter/010-clu-props.ref.err b/xml/test-2-enter/010-clu-props.ref.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/xml/test-2-enter/010-clu-props.ref.err
diff --git a/xml/test-2-enter/010-clu-props.xml b/xml/test-2-enter/010-clu-props.xml
new file mode 100644
index 0000000..e44f4db
--- /dev/null
+++ b/xml/test-2-enter/010-clu-props.xml
@@ -0,0 +1,15 @@
+<cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
+ <configuration>
+ <crm_config>
+ <cluster_property_set id="cluster-opts">
+ <nvpair id="cluster-opts-stonith_enabled" name="stonith_enabled" value="off"/>
+ </cluster_property_set>
+ <!-- this doesn't make any sense, i.e., a design flaw -->
+ <cluster_property_set id-ref="cluster-opts"/>
+ </crm_config>
+ <nodes/>
+ <resources/>
+ <constraints/>
+ </configuration>
+ <status/>
+</cib>
diff --git a/xml/test-2-enter/020-instance_atributes-rsc.ref b/xml/test-2-enter/020-instance_atributes-rsc.ref
new file mode 100644
index 0000000..e746319
--- /dev/null
+++ b/xml/test-2-enter/020-instance_atributes-rsc.ref
@@ -0,0 +1,41 @@
+<cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
+ <configuration>
+ <crm_config/>
+ <nodes>
+
+ <node id="virt-063" uname="virt-063"/>
+ <node id="virt-064" uname="virt-064"/>
+ <node id="virt-069" uname="virt-069"/>
+
+ </nodes>
+ <resources>
+
+ <primitive id="myAddr1" class="ocf" provider="heartbeat" type="IPaddr2">
+ <operations>
+ <op id="myAddr1-monitor" name="monitor" interval="30s"/>
+ </operations>
+ <instance_attributes id="myAddr1-params">
+ <nvpair id="myAddr1-ip" name="ip" value="192.0.2.10"/>
+ </instance_attributes>
+ <instance_attributes id="myAddr-common-params">
+ <nvpair id="myAddr-common-cidr_netmask" name="cidr_netmask" value="23"/>
+ </instance_attributes>
+ </primitive>
+
+ <primitive id="myAddr2" class="ocf" provider="heartbeat" type="IPaddr2">
+ <operations>
+ <op id="myAddr2-monitor" name="monitor" interval="30s"/>
+ </operations>
+ <instance_attributes id="myAddr2-params">
+ <nvpair id="myAddr2-ip" name="ip" value="192.0.2.42"/>
+ </instance_attributes>
+ <instance_attributes id="_cibtr-2_myAddr-common-params">
+ <nvpair id="__cibtr-2_myAddr-common-params__myAddr-common-cidr_netmask" name="cidr_netmask" value="23"/>
+ </instance_attributes>
+ </primitive>
+
+ </resources>
+ <constraints/>
+ </configuration>
+ <status/>
+</cib>
diff --git a/xml/test-2-enter/020-instance_atributes-rsc.ref.err b/xml/test-2-enter/020-instance_atributes-rsc.ref.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/xml/test-2-enter/020-instance_atributes-rsc.ref.err
diff --git a/xml/test-2-enter/020-instance_atributes-rsc.xml b/xml/test-2-enter/020-instance_atributes-rsc.xml
new file mode 100644
index 0000000..0a651d0
--- /dev/null
+++ b/xml/test-2-enter/020-instance_atributes-rsc.xml
@@ -0,0 +1,39 @@
+<cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
+ <configuration>
+ <crm_config/>
+ <nodes>
+
+ <node id="virt-063" uname="virt-063"/>
+ <node id="virt-064" uname="virt-064"/>
+ <node id="virt-069" uname="virt-069"/>
+
+ </nodes>
+ <resources>
+
+ <primitive id="myAddr1" class="ocf" provider="heartbeat" type="IPaddr2">
+ <operations>
+ <op id="myAddr1-monitor" name="monitor" interval="30s"/>
+ </operations>
+ <instance_attributes id="myAddr1-params">
+ <nvpair id="myAddr1-ip" name="ip" value="192.0.2.10"/>
+ </instance_attributes>
+ <instance_attributes id="myAddr-common-params">
+ <nvpair id="myAddr-common-cidr_netmask" name="cidr_netmask" value="23"/>
+ </instance_attributes>
+ </primitive>
+
+ <primitive id="myAddr2" class="ocf" provider="heartbeat" type="IPaddr2">
+ <operations>
+ <op id="myAddr2-monitor" name="monitor" interval="30s"/>
+ </operations>
+ <instance_attributes id="myAddr2-params">
+ <nvpair id="myAddr2-ip" name="ip" value="192.0.2.42"/>
+ </instance_attributes>
+ <instance_attributes id-ref="myAddr-common-params"/>
+ </primitive>
+
+ </resources>
+ <constraints/>
+ </configuration>
+ <status/>
+</cib>
diff --git a/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref b/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref
new file mode 100644
index 0000000..3a94fb0
--- /dev/null
+++ b/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref
@@ -0,0 +1,40 @@
+<cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
+ <configuration>
+ <crm_config/>
+ <nodes>
+
+ <node id="virt-063" uname="virt-063"/>
+ <node id="virt-064" uname="virt-064"/>
+ <node id="virt-069" uname="virt-069"/>
+
+ </nodes>
+ <resources>
+
+ <primitive id="mySmartFuse" class="ocf" provider="experiment" type="SmartFuse">
+ <operations>
+ <op id="mySmartFuse-start" name="start" interval="0" timeout="40s"/>
+ <op id="mySmartFuse-monitor-inputpower" name="monitor" interval="30s">
+ <instance_attributes id="mySmartFuse-inputpower-instanceparams">
+ <nvpair id="mySmartFuse-inputpower-requires" name="requires" value="inputpower"/>
+ </instance_attributes>
+ </op>
+ <op id="mySmartFuse-monitor-outputpower" name="monitor" interval="2s">
+ <instance_attributes id="mySmartFuse-outputpower-instanceparams">
+ <nvpair id="mySmartFuse-outputpower-requires" name="requires" value="outputpower"/>
+ </instance_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="mySmartFuse-params">
+ <nvpair id="mySmartFuse-params-ip" name="ip" value="192.0.2.10"/>
+ </instance_attributes>
+ <!-- a bit hairy but valid -->
+ <instance_attributes id="_cibtr-2_mySmartFuse-outputpower-instanceparams">
+ <nvpair id="__cibtr-2_mySmartFuse-outputpower-instanceparams__mySmartFuse-outputpower-requires" name="requires" value="outputpower"/>
+ </instance_attributes>
+ </primitive>
+
+ </resources>
+ <constraints/>
+ </configuration>
+ <status/>
+</cib>
diff --git a/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref.err b/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.ref.err
diff --git a/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.xml b/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.xml
new file mode 100644
index 0000000..7a12ebe
--- /dev/null
+++ b/xml/test-2-enter/021-instance_atributes-rsc-nonbijective.xml
@@ -0,0 +1,38 @@
+<cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
+ <configuration>
+ <crm_config/>
+ <nodes>
+
+ <node id="virt-063" uname="virt-063"/>
+ <node id="virt-064" uname="virt-064"/>
+ <node id="virt-069" uname="virt-069"/>
+
+ </nodes>
+ <resources>
+
+ <primitive id="mySmartFuse" class="ocf" provider="experiment" type="SmartFuse">
+ <operations>
+ <op id="mySmartFuse-start" name="start" interval="0" timeout="40s"/>
+ <op id="mySmartFuse-monitor-inputpower" name="monitor" interval="30s">
+ <instance_attributes id="mySmartFuse-inputpower-instanceparams">
+ <nvpair id="mySmartFuse-inputpower-requires" name="requires" value="inputpower"/>
+ </instance_attributes>
+ </op>
+ <op id="mySmartFuse-monitor-outputpower" name="monitor" interval="2s">
+ <instance_attributes id="mySmartFuse-outputpower-instanceparams">
+ <nvpair id="mySmartFuse-outputpower-requires" name="requires" value="outputpower"/>
+ </instance_attributes>
+ </op>
+ </operations>
+ <instance_attributes id="mySmartFuse-params">
+ <nvpair id="mySmartFuse-params-ip" name="ip" value="192.0.2.10"/>
+ </instance_attributes>
+ <!-- a bit hairy but valid -->
+ <instance_attributes id-ref="mySmartFuse-outputpower-instanceparams"/>
+ </primitive>
+
+ </resources>
+ <constraints/>
+ </configuration>
+ <status/>
+</cib>