AW: [Linux-HA] AW: Convert haresources with haresources2cib.py
Andrew Beekhof
beekhof at gmail.com
Thu Nov 9 01:14:26 MST 2006
On 11/8/06, Ralf Klausch <rklausch at pironet-ndh.com> wrote:
> sorry, I used the wrong heartbeat version for crm_verify. now the output is:
>
> dc-system-test01:/opt/heartbeat-2.0.7/sbin# ./crm_verify -V < /opt/heartbeat-2.0.7/var/lib/heartbeat/crm/cib.xml
> Reading XML from: stdin
> element cib: validity error : Element cib content does not follow the DTD, expecting (configuration , status), got (configuration )
> crm_verify[22046]: 2006/11/08_17:41:43 ERROR: validate_with_dtd:xml.c CIB does not validate against /opt/heartbeat-2.0.7/lib/heartbeat/crm.dtd
> crm_verify[22046]: 2006/11/08_17:41:43 ERROR: main:crm_verify.c CIB did not pass DTD validation
> Errors found during check: config not valid
you can safely ignore this. we'll fill in the status section when
heartbeat starts.
i'll see what i can do to fix up the conversion.
>
>
> -----Ursprüngliche Nachricht-----
> Von: linux-ha-bounces at lists.linux-ha.org [mailto:linux-ha-bounces at lists.linux-ha.org] Im Auftrag von Ralf Klausch
> Gesendet: Mittwoch, 8. November 2006 16:17
> An: General Linux-HA mailing list
> Betreff: [Linux-HA] AW: Convert haresources with haresources2cib.py
>
> maybe the attachments (gziped logfiles, 500 kB) where too big. If you like I can send you the logfiles via mail...
> -----Ursprüngliche Nachricht-----
> Von: Ralf Klausch
> Gesendet: Mittwoch, 8. November 2006 15:40
> An: 'General Linux-HA mailing list'
> Betreff: Convert haresources with haresources2cib.py
>
> Hi,
>
> I convert my haresources to cib.xml:
>
> python /opt/heartbeat-2.0.7/lib/heartbeat/haresources2cib.py > /opt/heartbeat-2.0.7/var/lib/heartbeat/crm/cib.xml
>
> haresources:
> dc-system-test01.pironet-ndh.com service_script
>
>
> result cib.xml:
> <cib admin_epoch="0" epoch="4" num_updates="260996" have_quorum="true" generate
> d="true" num_peers="1" cib_feature_revision="1.3" cib-last-written="Fri Oct 27 1
> 1:59:33 2006" ccm_transition="1" dc_uuid="cfad0d09-db27-4b36-8e29-f07802b173d9">
> <configuration>
> <crm_config>
> <cluster_property_set id="cib-bootstrap-options">
> <attributes>
> <nvpair id="cib-bootstrap-options-symmetric_cluster" name="symmetric_
> cluster" value="False"/>
> <nvpair id="cib-bootstrap-options-no_quorum_policy" name="no_quorum_p
> olicy" value="stop"/>
> <nvpair id="cib-bootstrap-options-default_resource_stickiness" name="
> default_resource_stickiness" value="0"/>
> <nvpair id="cib-bootstrap-options-default_resource_failure_stickiness
> " name="default_resource_failure_stickiness" value="0"/>
> <nvpair id="cib-bootstrap-options-stonith_enabled" name="stonith_enab
> led" value="false"/>
> <nvpair id="cib-bootstrap-options-stonith_action" name="stonith_actio
> n" value="reboot"/>
> <nvpair id="cib-bootstrap-options-stop_orphan_resources" name="stop_o
> rphan_resources" value="true"/>
> <nvpair id="cib-bootstrap-options-stop_orphan_actions" name="stop_orp
> han_actions" value="true"/>
> <nvpair id="cib-bootstrap-options-remove_after_stop" name="remove_aft
> er_stop" value="false"/>
> <nvpair id="cib-bootstrap-options-short_resource_names" name="short_r
> esource_names" value="true"/>
> <nvpair id="cib-bootstrap-options-transition_idle_timeout" name="tran
> sition_idle_timeout" value="5min"/>
> <nvpair id="cib-bootstrap-options-default_action_timeout" name="defau
> lt_action_timeout" value="5s"/>
> <nvpair id="cib-bootstrap-options-is_managed_default" name="is_manage
> d_default" value="true"/>
> </attributes>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="cfad0d09-db27-4b36-8e29-f07802b173d9" uname="dc-system-test01.p
> ironet-ndh.com" type="normal"/>
> </nodes>
> <resources>
> <primitive class="heartbeat" id="service_script_1" provider="heartbeat" t
> ype="service_script" is_managed="true">
> <operations>
> <op id="service_script_1_mon" interval="120s" name="monitor" timeout=
> "60s"/>
> </operations>
> </primitive>
> </resources>
> <constraints>
> <rsc_location id="rsc_location_service_script_1" rsc="service_script_1">
> <rule id="prefered_location_service_script_1" score="100">
> <expression attribute="#uname" id="prefered_location_service_script_1
> _expr" operation="eq" value="dc-system-test01.pironet-ndh.com"/>
> </rule>
> </rsc_location>
> </constraints>
> </configuration>
> </cib>
>
> And when I check with crm_verify:
>
> dc-system-test01:/opt/heartbeat-2.0.6/sbin# ./crm_verify -V < /opt/heartbeat-2.0.7/var/lib/heartbeat/crm/cib.xml
> Reading XML from: stdin
> element cib: validity error : Element cib content does not follow the DTD, expecting (configuration , status), got (configuration )
> crm_verify[12792]: 2006/11/08_15:34:13 ERROR: validate_with_dtd:xml.c CIB does not validate against /opt/heartbeat-2.0.6/lib/heartbeat/crm.dtd
> crm_verify[12792]: 2006/11/08_15:34:13 ERROR: main:crm_verify.c CIB did not pass DTD validation
> Errors found during check: config not valid
>
> and when I now start my heartbeat I get no status at the GUI. And the heartbeat seems to be looping or something like that. I attached the logfiles.
>
> What is wrong with my cib.xml ?
> And how can I monitor one process ? If the process is not running heartbeat should try to restart the service via service_script and if this fails the cluster should switch to the other node !
>
> Thanks in advance
>
> Kind regards
>
> ralf
> _______________________________________________
> 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
> _______________________________________________
> 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
>
More information about the Linux-HA
mailing list