Re: State transitions and notify scripts

Todd Fleisher <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
I've had to put sleep timers in some of my transition scripts for this very reason. Bind9's rndc reload for example needing to be run *after* a VIP is present on the box to ensure it is listening on that IP. I like the idea of having pre/post scripts instead of generic scripts.

-T

On Aug 6, 2014, at 9:41 AM, Ryan O'Hara wrote:

> 
> A colleague of mine mentioned that notify scripts, specifically
> notify_backup, is run before the transition is complete. For example,
> the notify_master script is run before the VIP has been added to an
> interface. I'm running some tests now and tracing the code.
> 
> Is this expected behavior? A quick glance at the code caused me to
> wonder if it is just sending a netlink message to add the VIP(s) to an
> interface and then returning. I should know more later today.
> 
> On a related note, I suspect changing this such that the notify_master
> script is run after the VIP is up could break configuration where the
> assumption is that it runs at the start of a state transition. In this
> case, we'd probably need something like "notify_master_post".
> 
> Thoughts?
> 
> Ryan
> 
> 
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls. 
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.