[Linux-HA] Element crm_config content does not follow the DTD -
help with error
Slawomir Mroczek
s.mroczek at wasko.pl
Wed Oct 11 05:44:58 MDT 2006
On Wed, 11 Oct 2006 12:21:16 +0100
"Dan Track" <dan.track at gmail.com> wrote:
> 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
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
--
Sławomir Mroczek
Specjalista - Inżynier Serwisu
Departament Usług Serwisowych/Serwis Infrastruktury Informatycznej
tel. +48 32 33 25 630
kom. +48 501 38 98 38
fax: +48 32 33 25 560
e-mail: s.mroczek at wasko.pl
-----------------------------------
WASKO S.A.
ul. Berbeckiego 6
44-100 Gliwice
-----------------------------------
Dokument ten zawiera informacje poufne, które mogą być również objęte
tajemnicą służbową. Jest on przeznaczony do wyłącznego użytku adresata.
Jeśli nie są Państwo jego adresatem, to wszelkie rozpowszechnianie,
dystrybucja, reprodukcja, kopiowanie, publikacja lub wykorzystanie tego
dokumentu lub informacji jest zabronione. Jeśli otrzymali Państwo tę
wiadomość przez pomyłkę, prosimy o bezzwłoczne skontaktowanie się z nami
oraz usunięcie wiadomości z Państwa komputera.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail by
mistake) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
More information about the Linux-HA
mailing list