[Pacemaker] Pacemaker 0.7.3: can't create resources

Bruno Voigt Bruno.Voigt at ic3s.de
Wed Sep 24 06:09:46 EDT 2008


Hi,
I've just installed pacemaker unstable from
http://download.opensuse.org/repositories/server:/ha-clustering:/UNSTABLE/Debian_Etch/amd64/
replacing a previous configuration of debian heartbeat.

The CIB contains only the node configuration.

If I try to add a resource definition I get the following error
and was not able yet to figure out, why it is rejected.

root# cibadmin -V -C -o resources -x ./test-resource.xml
cibadmin[25909]: 2008/09/24_12:06:40 info: main: Starting mainloop
cibadmin[25909]: 2008/09/24_12:06:41 WARN: cibadmin_op_callback: Call
cib_create failed (-47): Update does not conform to the configured
schema/DTD
Call cib_create failed (-47): Update does not conform to the configured
schema/DTD
<null>


test-resource.xml contains:

<resources>
 <primitive id="hbtest1a" class="ocf" type="Xen" provider="heartbeat">
  <operations>
   <op id="hbtest1a-op01" name="start" timeout="60s" start_delay="0"/>
   <op id="hbtest1a-op02" name="stop" timeout="300s"/>
   <op id="hbtest1a-op03" name="monitor" interval="30s" timeout="60s"
start_delay="300s" prereq="nothing"/>
 </operations>

 <instance_attributes id="hbtest1a">
  <attributes>
   <nvpair id="hbtest1a-attr01" name="xmfile"
value="/etc/xen/hbtest1a.cfg"/>
  </attributes>
 </instance_attributes>

 <meta_attributes id="hbtest1a-meta01">
  <attributes>
   <nvpair id="hbtest1a-meta-attr01" name="is_managed" value="true"/>
   <nvpair id="hbtest1a-meta-attr02" name="allow_migrate" value="true"/>
   <nvpair id="hbtest1a-meta-attr03" name="target_role" value="stopped"/>
  </attributes>
 </meta_attributes>

 </primitive>
</resources>

How must a similar resource definition look like for pacemaker?

TIA for any hints,
Bruno
--
bruno.voigt at ic3s.de





More information about the Pacemaker mailing list