[Pacemaker] Pacemaker 0.7.3: can't create resources

Andrew Beekhof beekhof at gmail.com
Wed Sep 24 06:33:11 EDT 2008


On Sep 24, 2008, at 12:09 PM, Bruno Voigt wrote:

> 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"/>

start_delay -> start-delay

>
>   <op id="hbtest1a-op02" name="stop" timeout="300s"/>
>   <op id="hbtest1a-op03" name="monitor" interval="30s" timeout="60s"
> start_delay="300s" prereq="nothing"/>
> </operations>


prereq -> requires

>
>
> <instance_attributes id="hbtest1a">
>  <attributes>

the attributes scaffolding is no longer used

>
>   <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"/>

_ -> - for all options

>
>  </attributes>
> </meta_attributes>
>
> </primitive>
> </resources>
>
> How must a similar resource definition look like for pacemaker?

http://clusterlabs.org/mw/Image:Configuration_Explained_1.0.pdf

specifically, you might want to read the bit on upgrading an old  
configuration

>
>
> TIA for any hints,
> Bruno
> --
> bruno.voigt at ic3s.de
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list