[Pacemaker] xml passes crm_verify but fails cibadmin --replace

Joe Armstrong jarmstrong at postpath.com
Thu May 14 18:01:59 UTC 2009


Answering my own question here... I had forgotten to add the <status/> tag.  Still odd that crm_verify passed though...

Joe

-----Original Message-----
From: Joe Armstrong 
Sent: Thursday, May 14, 2009 7:35 AM
To: pacemaker at clusterlabs.org
Subject: [Pacemaker] xml passes crm_verify but fails cibadmin --replace


Any ideas on how I can get more information on the reason --replace fails (running it with --verbose already).

Thanks.

Joe

... The base xml file came from "cibadmin --query > new.xml" then I manually added the resources section

[root at vm2 ~]# cat new.xml
<cib validate-with="pacemaker-1.0" crm_feature_set="3.0.1" have-quorum="1" admin_epoch="0" epoch="19" num_updates="11" cib-last-written="Wed May 13 07:51:56 2009" dc-uuid="ff29bf8a-9ab6-423f-8002-b74a03b1f1d2">
  <configuration>
    <crm_config >
      <cluster_property_set id="cib-stonith-options">
        <nvpair id="cib-stonith" name="stonith-enabled" value="false"/>
      </cluster_property_set>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.3-b133b3f19797c00f9189f4b66b513963f9d25db9"/>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="ff29bf8a-9ab6-423f-8002-b74a03b1f1d2" uname="vm2.jarmsdt.postpath.com" type="normal"/>
      <node id="f2dd7f3e-026c-4ba8-8694-786360cfd602" uname="vm1.jarmsdt.postpath.com" type="normal"/>
    </nodes>
    <resources>
      <primitive id="http-1" class="lsb" type="httpd"/>
      <primitive id="http-ip-1" class="ocf" provider="heartbeat" type="IPaddr">
        <instance_attributes id="ip-1">
          <nvpair id="nv013" name="ip" value="10.200.76.188"/>
          <nvpair id="nv014" name="device" value="auto"/>
          <nvpair id="nv015" name="netmask" value="255.255.255.0"/>
          <nvpair id="nv016" name="broadcast" value="10.200.76.255"/>
        </instance_attributes>
      </primitive>
    </resources>
    <constraints>
    </constraints>
  </configuration>
</cib>
[root at vm2 ~]# crm_verify -V --xml-file new.xml
[root at vm2 ~]# cibadmin --verbose --replace --xml-file new.xml
Call cib_replace failed (-47): Update does not conform to the configured schema/DTD
<null>
[root at vm2 ~]#


Versions installed:

/RPMs/heartbeat-2.99.2-8.1.x86_64.rpm            /RPMs/openais-0.80.5-13.1.x86_64.rpm
/RPMs/heartbeat-common-2.99.2-8.1.x86_64.rpm     /RPMs/pacemaker-1.0.3-2.2.x86_64.rpm
/RPMs/heartbeat-resources-2.99.2-8.1.x86_64.rpm  /RPMs/pacemaker-mgmt-1.99.1-2.1.x86_64.rpm
/RPMs/libheartbeat2-2.99.2-8.1.x86_64.rpm        /RPMs/pacemaker-mgmt-client-1.99.1-2.1.x86_64.rpm
/RPMs/libopenais2-0.80.5-13.1.x86_64.rpm         /RPMs/python-lxml-1.3.4-1.el5.rf.x86_64.rpm
/RPMs/libpacemaker3-1.0.3-2.2.x86_64.rpm

Running on CentOs 5.3

_______________________________________________
Pacemaker mailing list
Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list