[Pacemaker] Possible bug with ibmrsa stonith resource

Dejan Muhamedagic dejanmm at fastmail.fm
Thu Jul 8 05:07:26 EDT 2010


Hi,

On Wed, Jul 07, 2010 at 04:09:51PM -0400, Claude.Durocher at mcccf.gouv.qc.ca wrote:
> 
> - Avis: Ce message est confidentiel et ne s'adresse qu'aux destinataires.
> Si vous le recevez par erreur, veuillez le supprimer et nous en aviser.
> -
> I'm using the latest version of the external/ibmrsa stonith resource. When
> I start or monitor the ressource, the log file is filled with error
> messages :
> 
> Jul  6 14:04:56 server03 external/ibmrsa[1667]: [1678]: ERROR:
> Jul  6 14:04:59 server03 external/ibmrsa[1680]: [2109]: ERROR:
> Jul  6 14:05:00 server03 external/ibmrsa[2296]: [2307]: ERROR:
> Jul  6 14:05:00 server03 stonith-ng: [6509]: info: log_operation: Operation
> 'monitor' [1665] for device 'stonith-server02' returned: 0
> 
> At the begenning of the script, a check for a temp file is done and if
> found, the output is sent to the log file. I think the output to the ha_log
> file should be removed :
> 
> replace : trap 'if [ -n "$outf" ]; then ha_log.sh err "`cat $outf`"; rm -f
> "$outf"; fi' 0
> by : trap 'if [ -n "$outf" ]; then rm -f "$outf"; fi' 0

Yes, you're right. Actually, it should be just

trap 'rm -f "$outf"' 0

I'll attach a patch to this message which you may test.

Thanks,

Dejan

> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibmrsa-outf.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100708/d91ef126/attachment-0003.bin>


More information about the Pacemaker mailing list