[Pacemaker] Trouble with ocf:Squid resource agent

Lars Ellenberg lars.ellenberg at linbit.com
Fri Feb 8 05:21:15 EST 2013


On Mon, Aug 13, 2012 at 02:07:46PM +0200, Dejan Muhamedagic wrote:
> Hi,
> 
> On Mon, Jul 30, 2012 at 12:09:10PM -0400, Jake Smith wrote:
> > 
> > ----- Original Message -----
> > > From: "Julien Cornuwel" <cornuwel at gmail.com>
> > > To: pacemaker at oss.clusterlabs.org
> > > Sent: Wednesday, July 25, 2012 5:51:28 AM
> > > Subject: Re: [Pacemaker] Trouble with ocf:Squid resource agent
> > > 
> > > Oops! Spoke too fast. The fix below allows squid to start. But the
> > > script also has problems in the 'stop' part. It is stuck in an
> > > infinite loop and here are the logs (repeats every second) :
> > > 
> > > Jul 25 11:38:47 corsen-a lrmd: [24099]: info: RA output:
> > > (Proxy:stop:stderr) /usr/lib/ocf/resource.d//heartbeat/Squid: line
> > > 320: kill: -: arguments must be process or job IDs
> > > Jul 25 11:38:47 corsen-a lrmd: [24099]: info: RA output:
> > > (Proxy:stop:stderr) /usr/lib/ocf/resource.d//heartbeat/Squid: line
> > > 320: kill: -: arguments must be process or job IDs
> > > Jul 25 11:38:48 corsen-a Squid(Proxy)[24659]: [25682]: INFO:
> > > squid:stop_squid:318:  try to stop by SIGKILL: -
> > > Jul 25 11:38:48 corsen-a Squid(Proxy)[24659]: [25682]: INFO:
> > > squid:stop_squid:318:  try to stop by SIGKILL: -
> > > 
> > > Being on a deadline, I'll use the lsb script for the moment. If
> > > someone figures out how to use this ocf script, I'm very interrested.
> > > 

Did you try to use the current version of the script?

It very much looks like you miss out on this fix:

commit cbf70945f162aa296dacfc07817f1764a76e412e
Author: Dejan Muhamedagic <dejan at suse.de>
Date:   Mon Oct 1 12:43:29 2012 +0200

    Medium: Squid: fix getting PIDs of squid processes (lf#2653)

See
https://github.com/ClusterLabs/resource-agents/commit/cbf70945f162aa296dacfc07817f1764a76e412e

(and some other fixes that come later!)

> > > > Fixed! The problem comes from the squid ocf script
> > > > (/usr/lib/ocf/resource.d/heartbeat/Squid) that doesn't handle IPv6
> > > > addresses correctly.
> > > > All you have to do is modify the line 198 as such :
> > > > awk '/(tcp.*[0-9]+\.[0-9]+\.+[0-9]+\.[0-9]+:'$SQUID_PORT'
> > > > |tcp.*:::'$SQUID_PORT' )/{

This is supposed to be fixed as well
in the current version of that script...

> Yes. If somebody opens a bugzilla at LF
> (https://developerbugs.linuxfoundation.org/) or an issue at
> https://github.com/ClusterLabs/resource-agents somebody
> (hopefully the author) will take care of it.

As I wrote, I think both of these are already fixed.

Please use resource-agents v3.9.5.

	Lars

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.




More information about the Pacemaker mailing list