[ClusterLabs] False negative from kamailio resource agent
amijaresp at gmail.com
Sat Mar 24 01:51:34 EDT 2018
On Fri, Mar 23, 2018 at 5:04 AM, Valentin Vidic
<Valentin.Vidic at carnet.hr> wrote:
> On Thu, Mar 22, 2018 at 03:36:55PM -0400, Alberto Mijares wrote:
>> Straight to the question: how can I manually run a resource agent
>> script (kamailio) simulating the pacemaker's environment without
>> actually having pacemaker running?
> You should be able to run it with something like:
> # OCF_ROOT=/usr/lib/ocf OCF_RESKEY_conffile=/etc/kamailio/kamailio.cfg /usr/lib/ocf/resource.d/heartbeat/kamailio monitor
> INFO: No PID file found and our kamailio instance is not active
Thank you. It was very helpful, indeed.
>> We have this cluster in production and from time to time kamailio
>> reported a failure when the reality is that kamailio was still
>> running. The failover produces a small downtime unnecessarily, so we
>> decided to stop it until we find a solution for that.
>> I saw the check functions in the script. They all run OK out of the
>> pacemaker's environment, so I need to replicate it by my own.
> Do you have anything in the logs that might say why the monitor action
> failed for the resource? Maybe it was overloaded for a moment and did
> not respond to sipsak tests.
It came to be "kamctl monitor 1" what failed. I raised the timeout
value to 5 seconds in that check, now I have to wait.
More information about the Users