Thank you for responding Deja

one of the resource agents has badly written metadata the logs might help
figure out which one(s).



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:linux-ha-
> [EMAIL PROTECTED] On Behalf Of Dejan Muhamedagic
> Sent: Friday, 27 April 2007 5:25 PM
> To: General Linux-HA mailing list
> Subject: Re: [Linux-HA] ERROR: parse_xml: Expected: action - HB 2.0.8
> 
> On Fri, Apr 27, 2007 at 11:22:44AM +1000, Alex Strachan wrote:
> > Error in /var/log/messages
> >
> >
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: info: process_lrm_event: LRM
> operation
> > resource_itsapaims_skel1_start_0 (call=134, rc=0) complete
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Expected: action
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Error parsing
> token:
> > Mismatching close tag
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Error at or
> before:
> > </actions> </resourc
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Error parsing
> token:
> > error parsing child
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Error at or
> before: />
> > <action name="mon
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Error parsing
> token:
> > error parsing child
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: parse_xml: Error at or
> before: >
> > <actions> <action
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: crm_abort: find_xml_node:
> > Triggered non-fatal assert at xml.c:77 : root != NULL
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: ERROR: cl_get_value: wrong arugment
> > (__name__)
> >
> > Apr 27 11:07:26 deneb crmd: [3038]: WARN: find_xml_node: Could not find
> > actions in (null).
> 
> Strange. Looks as if something's corrupted. If this cluster is
> important, I think that you should restart it (set first the
> unmanaged mode). Also, perhaps you could verify the local CIB copies:
> use cibadmin -Ql and then crm_diff to check if/how they differ.
[AS] 
I don't understand the meaning of ' set first the unmanaged mode'; I did try
the crm_diff command.  For this I did
  cibadmin -Q >saved_cib_g.xml
  cibadmin -Ql >saved_cib_l.xml
  crm_diif -o saved_cib_g.xml -n saved_cib_l.xml

There was no differences shown.

>From an earlier entry from Andrew he mentioned 
" one of the resource agents has badly written metadata the logs might help
figure out which one(s)."

I have written the meta-data section but still the error persists.  e.g.

<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="itsapaims_ISskel">
<version>1.0</version>

<longdesc lang="en">
Resource script for IS skel.
</longdesc>
<shortdesc lang="en">ISskel resource agent</shortdesc>

<parameters>

<parameter name="isskel_user" unique="1" required="1">
<longdesc lang="en">
sadmin
</longdesc>
<shortdesc lang="en">sadmin</shortdesc>
<content type="string" default="" />
</parameter>

<parameter name="isskel_id" unique="1" required="1">
<longdesc lang="en">
FIDS id
</longdesc>
<shortdesc lang="en">FIDS id</shortdesc>
<content type="string" default="" />
</parameter>

<parameter name="isskel_log" unique="1" required="1">
<longdesc lang="en">
FIDS log name
</longdesc>
<shortdesc lang="en">FIDS log name</shortdesc>
<content type="string" default="" />
</parameter>

<parameter name="isskel_sys" unique="1" required="1">
<longdesc lang="en">
FIDS SYS
</longdesc>
<shortdesc lang="en">FIDS SYS</shortdesc>
<content type="string" default="" />
</parameter>

<parameter name="isskel_port" unique="1" required="1">
<longdesc lang="en">
FIDS port number
</longdesc>
<shortdesc lang="en">FIDS port number</shortdesc>
<content type="string" default="" />
</parameter>

<parameter name="isskel_config" unique="1" required="1">
<longdesc lang="en">
FIDS config file
</longdesc>
<shortdesc lang="en">FIDS config filer</shortdesc>
<content type="string" default="" />
</parameter>

</parameters>

<actions>
<action name="start" timeout="120" />
<action name="stop" timeout="120" />
<action name="status" timeout="5" />
<action name="monitor" depth="0" timeout="30" interval="120"
start-delay="10" />
<action name="validate-all" timeout="5" />
<action name="meta-data" timeout="5" />
</actions>
</resource-agent>

I have attached the resource agent script.

How can I get more detail into the log file to help pinpoint the error?


> 
> The only thing crm_verify reported on your cib:
> 
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel2_canopus, rsc=resource_itsapaims_skel2)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel2_deneb, rsc=resource_itsapaims_skel2)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel2_epsilona1, rsc=resource_itsapaims_skel2)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel2_epsilona2, rsc=resource_itsapaims_skel2)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel3_canopus, rsc=resource_itsapaims_skel3)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel3_deneb, rsc=resource_itsapaims_skel3)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel3_epsilona1, rsc=resource_itsapaims_skel3)
> crm_verify[1644]: 2007/04/27_09:23:05 WARN: unpack_rsc_location: No
> resource (con=run_itsapaims_skel3_epsilona2, rsc=resource_itsapaims_skel3)
> Warnings found during check: config may not be valid
> 
> >
> >
> >
> >
> > Definition of the primitive
> >
> >
> >
> >          <primitive class="ocf" type="itsapaims_ISskel"
> provider="heartbeat"
> > restart_type="ignore" id="resource_itsapaims_skel1">
> >
> >            <instance_attributes
> > id="resource_itsapaims_skel1_instance_attrs">
> >
> >              <attributes>
> >
> >                <nvpair id="resource_itsapaims_skel1_user"
> name="isskel_user"
> > value="sadmin"/>
> >
> >                <nvpair id="resource_itsapaims_skel1_id" name="isskel_id"
> > value="Skel_Server1"/>
> >
> >                <nvpair id="resource_itsapaims_skel1_log"
> name="isskel_log"
> > value="isskel1"/>
> >
> >                <nvpair id="resource_itsapaims_skel1_sys"
> name="isskel_sys"
> > value="FIDS"/>
> >
> >                <nvpair id="resource_itsapaims_skel1_port"
> name="isskel_port"
> > value="11431"/>
> >
> >                <nvpair id="resource_itsapaims_skel1_config"
> > name="isskel_config" value="/u/fids/data/isskel1.cfg"/>
> >
> >              </attributes>
> >
> >            </instance_attributes>
> >
> >            <operations>
> >
> >              <op id="skel1_itsapaims_skel1_mon" interval="60s"
> > name="monitor" timeout="60s" on_fail="restart"/>
> >
> >            </operations>
> >
> >            <instance_attributes id="resource_itsapaims_skel1">
> >
> >              <attributes>
> >
> >                <nvpair name="is_managed"
> > id="resource_itsapaims_skel1-is_managed" value="true"/>
> >
> >              </attributes>
> >
> >            </instance_attributes>
> >
> >          </primitive>
> >
> >
> >
> >
> >
> > When I look in the output from  'cibadmin -Q' I don't see any <actions
> tags.
> >
> >
> >
> > [EMAIL PROTECTED] hb]# cibadmin -Q | grep -i actions
> >
> >            <nvpair id="cib-bootstrap-options-stop-orphan-actions"
> > name="stop-orphan-actions" value="true"/>
> >
> > [EMAIL PROTECTED] hb]# cibadmin -Q | grep -i action
> >
> >            <nvpair id="cib-bootstrap-options-default-action-timeout"
> > name="default-action-timeout" value="240"/>
> >
> >            <nvpair id="cib-bootstrap-options-stonith-action"
> > name="stonith-action" value="reboot"/>
> >
> >            <nvpair id="cib-bootstrap-options-stop-orphan-actions"
> > name="stop-orphan-actions" value="true"/>
> >
> >        <rsc_order id="order_itsapaims_itsapaims1"
> > from="resource_itsapaims1_aims" to="group_itsapaims" action="start"
> > type="before" symmetrical="true"/>
> >
> >        <rsc_order id="order_itsapaims_itsapaims2"
> > from="resource_itsapaims2_aims" to="group_itsapaims" action="start"
> > type="before" symmetrical="true"/>
> >
> >
> >
> >
> >
> > Any ideas?   Is the names too long?
> >
> >
> >
> >
> >
> >
> >
> > Alex
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> 
> --
> Dejan
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

Attachment: itsapaims_ISskel
Description: Binary data

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to