On Nov 11, 2008, at 12:11 PM, Raoul Bhatia [IPAX] wrote:
hi,
i am trying to validate a simple cib.xml (attached) with the new
tools.
first, i try to use xmllint:
$ xmllint --noout --relaxng /usr/share/pacemaker/pacemaker-1.0.rng
cib.minimal.xml; echo $?
cib.minimal.xml validates
0
so this works.
using crm_verify does not work:
$ crm_verify -V -x cib.minimal.xml
crm_verify[7963]: 2008/11/11_12:04:52 notice: main: Required
feature set: 2.0
crm_verify[7963]: 2008/11/11_12:04:52 WARN: main: Your
configuration was internally updated to the latest version
(pacemaker-1.0)
crm_verify[7963]: 2008/11/11_12:04:52 ERROR: common_unpack: Must
specify id tag in <resource>
crm_verify[7963]: 2008/11/11_12:04:52 ERROR: unpack_resources:
Failed unpacking comment (null)
Errors found during check: config not valid
it seems to relate to the comment, because if i remove the comment, i
get:
$ crm_verify -V -x cib.minimal.xml
crm_verify[10801]: 2008/11/11_12:07:13 notice: main: Required
feature set: 2.0
crm_verify[10801]: 2008/11/11_12:07:13 WARN: main: Your
configuration was internally updated to the latest version
(pacemaker-1.0)
Warnings found during check: config may not be valid
so i guess, this should work.
question 1: what is the correct way to use comments inside the
cib.xml file?
In all honesty, i don't know.
I haven't been able to figure out how to allow them in the schema...
if anyone has any pointers I'd be grateful.
question 2: why is my configuration "internally upgraded"?
a bug that has since been fixed
cheers,
raoul
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. [EMAIL PROTECTED]
Technischer Leiter
IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. [EMAIL PROTECTED]
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
<?xml version="1.0" encoding="UTF-8"?>
<cib crm_feature_set="2.1" admin_epoch="0" epoch="20"
num_updates="1" have-quorum="1" remote-tls-port="0" validate-
with="pacemaker-1.0" >
<configuration>
<crm_config>
<cluster_property_set id="default">
<nvpair id="stonith-enabled" name="stonith-
enabled" value="false" />
</cluster_property_set>
</crm_config>
<nodes />
<resources>
<!-- test comment -->
<primitive id="nfs-kernel-server" class="lsb" type="nfs-kernel-
server" />
</resources>
<constraints />
</configuration>
<status/>
</cib>
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker