[Pacemaker] Trouble with ocf:Squid resource agent

Jake Smith jsmith at argotec.com
Wed Jul 18 13:25:07 EDT 2012


----- Original Message -----
> From: "Julien Cornuwel" <cornuwel at gmail.com>
> To: "The Pacemaker cluster resource manager" <pacemaker at oss.clusterlabs.org>
> Sent: Wednesday, July 18, 2012 4:06:55 AM
> Subject: [Pacemaker] Trouble with ocf:Squid resource agent
> 
> Hi,
> 
> I'm setting up a proxy cluster on OpenSuSE 12.1. Squid starts OK on
> both servers when called from the lsb script. I stopped it and here
> is
> the configuration I set up :
> 
> # crm configure show
> node corsen-a
> node corsen-b
> primitive Proxy ocf:heartbeat:Squid \
>         params squid_exe="/usr/sbin/squid"
> squid_conf="/etc/squid/squid.conf" squid_pidfile="/tmp/squid.pid"
> squid_port="3128" squid_stop_timeout="30" \
>         op start interval="0" timeout="60s" \
>         op stop interval="0" timeout="120s" \
>         op monitor interval="20s" timeout="30s"
> property $id="cib-bootstrap-options" \
>         dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="2" \
>         stonith-enabled="false" \
>         no-quorum-policy="ignore"
> 
> # crm_mon -1
> ============
> Last updated: Tue Jul 17 16:51:30 2012
> Last change: Tue Jul 17 16:46:32 2012 by root via cibadmin on
> corsen-a
> Stack: openais
> Current DC: corsen-a - partition with quorum
> Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c
> 2 Nodes configured, 2 expected votes
> 1 Resources configured.
> ============
> 
> Online: [ corsen-a corsen-b ]
> 
> 
> Failed actions:
>     Proxy_start_0 (node=corsen-a, call=3, rc=-2, status=Timed Out):
> unknown exec error
>     Proxy_start_0 (node=corsen-b, call=3, rc=-2, status=Timed Out):
> unknown exec error
> 

With the "status=Timed Out" I'm thinking that you're setting of 60s for start timeout might be too short?  How long does it take to return if you start squid from the LSB script? How long after starting until the squid.pid is created (is it even created?)?

HTH

Jake




More information about the Pacemaker mailing list