[ClusterLabs] heartbeat/anything Resource Agent : "wait for proper service before ending the start operation"

Nicolas Huillard nicolas at huillard.net
Fri Apr 13 06:51:51 EDT 2018


Le vendredi 13 avril 2018 à 11:59 +0200, Oyvind Albrigtsen a écrit :
> On 13/04/18 11:53 +0200, Nicolas Huillard wrote:
> > Le vendredi 13 avril 2018 à 11:15 +0200, Oyvind Albrigtsen a
> > écrit :
> > The issue here is the monitor will at first return a "fail", which
> > is considered fatal by Pacemaker unless property start-failure-is-
> > fatal is set to false, which may come with side-effects.
> > That's what I do now with a ping RA inserted before the service
> > which may fail if the interface is not UP. It works, but triggers
> > some "fail" events which are not really "fails" but "not started
> > yet".
> 
> You might try setting it to e.g. "sleep 30;
> <command-for-checking-status>" and see if that works.

I'm using resource-agent package 4.0.0, and just noticed that what I
was thinking about was implemented more recently in :
https://github.com/ClusterLabs/resource-agents/commit/ee099d62c23e0afd0
442a4febde80412b8ac22f1#diff-07b3e128cbd8576888076cc71c00233b

I'll use that one, thanks !

-- 
Nicolas Huillard



More information about the Users mailing list