Hi,

On Mon, Jan 14, 2008 at 11:48:17AM +0800, ?????? wrote:
>  Hi All,
> I used heartbeat 2.1.2 in Open SuSE 9.3. Before add WAS6 resource, I have
> added drbd, db2 resources successfully. When I add WAS6 resource into
> heartbeat, I received a "wget failure" error. I saw the WAS6 file in the
> resource folder, I found it in the WAS_monitor function. I changed that line
> to $OCF_SUCCESS, but it run on the other node different from the other
> reources in the same group(WAS6 run on nodeb, other resources in the same
> group run on nodea). I changed that line to $OCF_NOT_RUNNING, it run on both
> nodes (nodea and nodeb). How can I solve this problem?

There seems to be a problem with the monitor function of the WAS
RA. It should sometimes return OCF_NOT_RUNNING. Not an expert on
WAS, but probably both occurences of OCF_ERR_GENERIC below should
be replaced with OCF_NOT_RUNNING.

Perhaps somebody knows more about WAS here?

Thanks,

Dejan

> thanks
> 
> 
> WAS_monitor() {
>   tmpfile=`maketempfile`
>   SnoopPort=`GetWASSnoopPort $1`
>   output=`$WGET -nv -O$tmpfile  http://localhost:$SnoopPort/snoop 2>&1`
>   rc=$?
>   if
>     [ $rc -eq 0 ]
>   then
>     if
>       grep -i 'user-agent.*Wget' $tmpfile >/dev/null
>     then
>       : OK
>     else
>       ocf_log "err" "WAS: $1: no user-agent from snoop application"
>       rc=$OCF_ERR_GENERIC
>     fi
>   else
>     ocf_log "err" "WAS: $1: wget failure: $output"
>     rc=$OCF_ERR_GENERIC
>   fi
>   rm -fr $tmpfile
>   return $rc
> }
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
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