[Pacemaker] LSB openswan script monitor problems

Frank Brendel Frank.Brendel at eurolog.com
Mon Feb 3 12:34:28 UTC 2014


As far as I know, Pacemaker does not parse STDOUT but it keeps STDERR 
for logging.
Experts correct me if I am wrong.

The important thing is the return value of the ipsec script.
You could debug the ipsec script. If it is a Bash script you can put a 
logger command after each 'RETVAL=$?'.

Example:
RETVAL=$?
logger -t  ipsec\[$$\] "line $LINENO exit $RETVAL"



Regards
Frank

Am 03.02.2014 12:50, schrieb Dennis Jacobfeuerborn:
> On 27.01.2014 19:41, Dennis Jacobfeuerborn wrote:
>> Hi,
>> I'm trying to make an openswan setup redundant and this kind of works
>> but pacemaker reports errors like this on failover:
>>
>> p_ipsec_monitor_15000 on node02 'not running' (7): call=113,
>> status=complete, last-rc-change='Mon Jan 27 18:32:29 2014', queued=37ms,
>> exec=0ms
>>
>> The resource definition looks like this:
>>
>> primitive p_ipsec lsb:ipsec \
>>      op monitor interval="15" timeout="15"
>>
>> The interesting bit is that the log shows no errors/warnings and the
>> service is running fine. After a bit of googling it appears that the
>> custom output of the status command is the culprit.
>> Replacing it with a static string like "ipsec (pid 1111) is running..."
>> seems to fix it but replacing "running" with "rnning" also seems to
>> work. Also outputting this line followed by the normal status output
>> fails as well.
>>
>> So my question is what exactly is pacemaker doing to determine if the
>> status call returned successfully if at all and what needs to be done so
>> I don't get the "not running" errors in pacemaker?
>
> Does nobody have an idea? I checked this link:
>
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html/Pacemaker_Explained/ap-lsb.html 
>
>
> This doesn't seem to have anything to do with what pacemaker is 
> actually checking the status result against though.
>
> Regards,
>   Dennis
>
> _______________________________________________
> 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://bugs.clusterlabs.org





More information about the Pacemaker mailing list