[Pacemaker] LSB openswan script monitor problems

Andrew Beekhof andrew at beekhof.net
Wed Feb 5 18:39:35 EST 2014


On 5 Feb 2014, at 2:57 pm, Dennis Jacobfeuerborn <dennisml at conversis.de> wrote:

> On 05.02.2014 04:06, Andrew Beekhof wrote:
>> 
>> On 3 Feb 2014, at 11:34 pm, Frank Brendel <Frank.Brendel at eurolog.com> wrote:
>> 
>>> As far as I know, Pacemaker does not parse STDOUT but it keeps STDERR
>>> for logging.
>>> Experts correct me if I am wrong.
>> 
>> You are correct
>> 
>> [snip]
>> 
>>>> 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.
>> 
>> $? holds the return code from the command you just ran.
>> This is the value pacemaker is looking for
> 
> The return code of "service ipsec status"

That is not the command pacemaker is running though, so the result may differ from: /etc/init.d/ipsec status
Also assuming you're not on a systemd system, since service redirects to the systemd unit file instead of the init script.

> is always 0 yet crm status shows the failure:
> 
> 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
> 
> When I change the init script to modify what the status command prints out to something that looks like what the other scripts print then the error goes away. This suggests that what the status command outputs to stdout does indeed matter.
> 
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140206/f0f8fe5b/attachment-0003.sig>


More information about the Pacemaker mailing list