[Linux-HA] Element crm_config content does not follow the DTD -
help with error
Dan Track
dan.track at gmail.com
Wed Oct 11 05:21:16 MDT 2006
Hi
I'm trying to introduce crm into my test cluster, but I'm getting the
following error. I had a few other errors but I managed to solve
those, but I can't solve this, could someone please help me with this.
Below is the log output:
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk] </resources>
crmd[20846]: 2006/10/11_11:54:55 WARN: cib_native_signon:cib_native.c
Connection to CIB failed: connection failed
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
<constraints>
crmd[20846]: 2006/10/11_11:54:55 WARN: do_cib_control:cib.c Couldn't
complete CIB registration 1 times... pause and retry
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
<rsc_location id="rsc_location_group_1" rsc="group_1">
mgmtd[20847]: 2006/10/11_11:54:55 info: login to cib: 1, ret:-10
crmd[20846]: 2006/10/11_11:54:55 info: init_start:main.c Starting
crmd's mainloop
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
<rule id="prefered_location_group_1" score="100">
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
<expression attribute="#uname" operation="eq"
value="zhang.staging.moneyextra.com"/>
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk] </rule>
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
</rsc_location>
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
</constraints>
ccm[20841]: 2006/10/11_11:54:55 info: Break tie for 2 nodes cluster
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk]
</configuration>
ccm[20841]: 2006/10/11_11:54:55 info: G_main_add_SignalHandler: Added
signal handler for signal 15
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk] <status/>
cib[20842]: 2006/10/11_11:54:55 info: readCibXmlFile: [on-disk] </cib>
cib[20842]: 2006/10/11_11:54:55 ERROR: Element crm_config content does
not follow the DTD, expecting (cluster_property_set)*, got (nvpair
nvpair nvpair )
cib[20842]: 2006/10/11_11:54:55 ERROR: Element instance_attributes
does not carry attribute id
cib[20842]: 2006/10/11_11:54:55 ERROR: Element nvpair does not carry
attribute id
cib[20842]: 2006/10/11_11:54:55 ERROR: Element nvpair does not carry
attribute id
cib[20842]: 2006/10/11_11:54:55 ERROR: Element nvpair does not carry
attribute id
cib[20842]: 2006/10/11_11:54:56 ERROR: Element expression does not
carry attribute id
cib[20842]: 2006/10/11_11:54:56 ERROR: validate_with_dtd:xml.c CIB
does not validate against /usr/lib/heartbeat/crm.dtd
cib[20842]: 2006/10/11_11:54:56 WARN: assign_uuid:xml.c Updating
object from <nvpair id=__empty__/> to <nvpair
id=bbe7216c-bace-4351-a62e-28ac9bfb960c/>
crmd[20846]: 2006/10/11_11:54:56 info: crm_timer_popped:utils.c Wait
Timer (I_NULL) just popped!
Here's my config:
ha.cf:
logfile /var/log/ha-log
logfacility daemon
keepalive 1
deadtime 10
warntime 5
initdead 120 # depend on your hardware
udpport 694
bcast eth1
auto_failback off
node zhang.example.com
node quan.example.com
crm yes
Here's my cib.xml:
<?xml version="1.0" ?>
<cib>
<configuration>
<crm_config>
<nvpair id="transition_idle_timeout"
name="transition_idle_timeout" value="120s"/>
<nvpair id="symmetric_cluster" name="symmetric_cluster"
value="true"/>
<nvpair id="no_quorum_policy" name="no_quorum_policy" value="stop"/>
</crm_config>
<nodes/>
<resources>
<group id="group_1">
<primitive class="ocf" id="IPaddr_1"
provider="heartbeat" type="IPaddr">
<operations>
<op id="1" interval="5s" name="monitor" timeout="5s"/>
</operations>
<instance_attributes>
<attributes>
<nvpair name="ip" value="10.11.8.45"/>
<nvpair name="netmask" value="16"/>
<nvpair name="nic" value="eth0"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" id="apache2id"
provider="heartbeat" type="apache2">
<operations>
<op id="3" name="monitor" interval="10s" timeout="10s"/>
</operations>
</primitive>
</group>
</resources>
<constraints>
<rsc_location id="rsc_location_group_1" rsc="group_1">
<rule id="prefered_location_group_1" score="100">
<expression attribute="#uname" operation="eq"
value="zhang.example.com"/>
</rule>
</rsc_location>
</constraints>
</configuration>
<status/>
</cib>
If you need any further information please let me know.
Thanks in advance
Dan
More information about the Linux-HA
mailing list