Code Monkey home page Code Monkey logo

Comments (11)

rohara avatar rohara commented on May 13, 2024

I believe this patch is causing the problem:

5c41773

from keepalived.

acassen avatar acassen commented on May 13, 2024

Try with following configuration

notify {
/etc/keepalived_notify.sh
}

But I am considering reverting original patch causing this issue.

from keepalived.

DStape avatar DStape commented on May 13, 2024

Do you see the same issue if you also revert 89f9102?

from keepalived.

rohara avatar rohara commented on May 13, 2024

I also reverted that patch and it works as expected.

from keepalived.

ajschorr avatar ajschorr commented on May 13, 2024

Changing to the altered syntax as suggested does work.

If the syntax is changed to require curly braces, shouldn't that be documented somewhere? The man page has the old syntax.

from keepalived.

ajschorr avatar ajschorr commented on May 13, 2024

Also, I noticed that with the changed syntax, the notify script is actually called twice at startup. In my test, I'm simply logging the invocations to a log file, and I see this:

Thu Jun 18 10:46:51 EDT 2015 Called with args: INSTANCE pcr-ny4-mktdata-relay MASTER 200
Thu Jun 18 10:46:51 EDT 2015 Called with args: INSTANCE pcr-ny4-mktdata-relay MASTER 200

Is that intended? That seems like another bug...

from keepalived.

DStape avatar DStape commented on May 13, 2024

Unless two state transitions have occurred, then no, the the notification script should only get invoked once.

from keepalived.

ajschorr avatar ajschorr commented on May 13, 2024

Well yes, that's my point. I simply started up keepalived, and it immediately made those 2 calls to the notify script indicating MASTER state. Should I open a separate bug for this?

from keepalived.

DStape avatar DStape commented on May 13, 2024

Yes, open a separate bug. Could you show me your configuration please? I'll repro this and try and figure out where it's going wrong.

from keepalived.

DStape avatar DStape commented on May 13, 2024

Ajschorr, I note that you already posted your config in your first post.

from keepalived.

ajschorr avatar ajschorr commented on May 13, 2024

Ah, sorry, I would have posted it again, but I opened a new issue #157 and assumed that you would see it there. It's pretty similar to what I posted above. But please take a look at #157 to see a bunch of debug info. I didn't dig deeper since I'm not familiar with the code base...

from keepalived.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.