Hi,

I noticed a long time ago that the Basic sanity test doesn't work well
for older Linux versions.

I finally tracked it down (against heartbeat 2.1.3):

 lrmd is not linked against libxml2 if it does not supply a certain XML
functionality (xmlReadMemoty) though older versions of libxml2 do not
supply this functionality but though seem to req. libxml2. 

 This causes lrmd to fail loading lsb/stonith plugins.

Potentially this might explain:

1 stopping heartbeat may never end.

2.ERROR: crm_abort: parse_xml: Triggered non-fatal assert at xml.c:1373
: our_input[lpc] == '<'

 

Other related errors:

 

1. WARNING **: lt_dlopen() failure on plugin RAExec/lsb
[/usr/lib/heartbeat/plugins/RAExec/lsb.so]. Reason:
[/usr/lib/heartbeat/plugins/RAExec/lsb.so: undefined symbol: xmlFree]\n"

2.

+ERROR: This operation has timed out - no result from lrmd.

 .TRY Exec rscexec_rsc_r1 op=stop timeout=1000 interval=0
target=EVERYTIME args=

-> stop succeed (status=0,rc=0): [null]

-

+ERROR: This operation has timed out - no result from lrmd.

 .TRY Exec rscexec_rsc_r1 op=monitor timeout=1000 interval=0
target=EVERYTIME args=

-> monitor succeed (status=0,rc=7): [null]

-

+ERROR: This operation has timed out - no result from lrmd.

 .TRY Exec rscexec_rsc_r1 op=meta-data timeout=1000 interval=0
target=EVERYTIME args=

-> meta-data succeed (status=0,rc=0): [null]

-

+ERROR: This operation has timed out - no result from lrmd.

 .TRY Delete resource rscexec_rsc_r1

----------

+ return 1

+ sed -n '/BEGIN testcase rscexec/,$p' output/lrmd.log

+ '[' -x testcases/rscexec.log_filter ']'

+ cat

+ egrep '(CRIT|ERROR):'

lrmd[8696]: 2008/06/29_23:29:18 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:18 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8696]: 2008/06/29_23:29:18 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:18 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:18 ERROR: Managed rscexec_rsc_r1:start
process 8696 did not clean up private data!

lrmd[8713]: 2008/06/29_23:29:20 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:20 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8713]: 2008/06/29_23:29:20 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:20 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:20 ERROR: Managed rscexec_rsc_r1:start
process 8713 did not clean up private data!

lrmd[8722]: 2008/06/29_23:29:22 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:22 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8722]: 2008/06/29_23:29:22 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:22 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:22 ERROR: Managed rscexec_rsc_r1:start
process 8722 did not clean up private data!

lrmd[8731]: 2008/06/29_23:29:24 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:24 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8731]: 2008/06/29_23:29:24 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:24 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:24 ERROR: Managed rscexec_rsc_r1:start
process 8731 did not clean up private data!

lrmd[8740]: 2008/06/29_23:29:26 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:26 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8740]: 2008/06/29_23:29:26 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:26 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:26 ERROR: Managed rscexec_rsc_r1:start
process 8740 did not clean up private data!

lrmd[8779]: 2008/06/29_23:29:28 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:28 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8779]: 2008/06/29_23:29:28 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:28 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:28 ERROR: Managed rscexec_rsc_r1:start
process 8779 did not clean up private data!

lrmd[8788]: 2008/06/29_23:29:30 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:30 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8788]: 2008/06/29_23:29:30 ERROR:
perform_ra_op: can not find RAExec

lrmd[7035]: 2008/06/29_23:29:30 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:30 ERROR: Managed rscexec_rsc_r1:start
process 8788 did not clean up private data!

lrmd[7035]: 2008/06/29_23:29:32 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8797]: 2008/06/29_23:29:32 ERROR:
perform_ra_op: can not find RAExec

lrmd[8797]: 2008/06/29_23:29:32 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:32 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:32 ERROR: Managed rscexec_rsc_r1:start
process 8797 did not clean up private data!

lrmd[7035]: 2008/06/29_23:29:34 info: RA output:
(rscexec_rsc_r1:start:stderr) lrmd[8806]: 2008/06/29_23:29:34 ERROR:
perform_ra_op: can not find RAExec

lrmd[8806]: 2008/06/29_23:29:34 ERROR: perform_ra_op: can not find
RAExec

lrmd[7035]: 2008/06/29_23:29:34 ERROR: on_ra_proc_finished: can not find
RAExec for resource class <lsb>

lrmd[7035]: 2008/06/29_23:29:34 ERROR: Managed rscexec_rsc_r1:start
process 8806 did not clean up private data!

+ logmsg 'END testcase rscexec'

3. xmllint reported error in RA: noname

 

Upgrading libxml2 to 2.6 and rebuilding it solved the issue, though
there is no indication this should be done.

 

How about linking against libxml2 whenever possible and warning if not?

 

Best,

Oren

 

Platform: Linux 2.4.33, RH 7.3, libxml2-2.4.10, heartbeat-2.1.3

 

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to