Giter VIP home page Giter VIP logo

Comments (13)

bulletmark avatar bulletmark commented on May 28, 2024 8

@husa570 can you (or somebody else) please re-open this issue? It is a pain to maintain different keepalived.conf files on every node merely to get rid of this noise which is flooding the log. I would think keepalived should not be sending an advert to itself, or at the very least please suppress the log message for that case.

from docker-keepalived.

meyayl avatar meyayl commented on May 28, 2024 7

If the node itself is in the KEEPALIVED_UNICAST_PEERS, it gets confused by its own unicast message.
I do run a three node setup and had the same issue, when my list included all my three nodes. After removing the node itself from the list, everything returned to expected state.

Though, I would prefer to keep all nodes with the same KEEPALIVED_UNICAST_PEERS values and make the entrypoint script filter out the nodes own ip.

from docker-keepalived.

nick-fox avatar nick-fox commented on May 28, 2024 3

I can confirm that I have this same issue.

from docker-keepalived.

drew1kun avatar drew1kun commented on May 28, 2024 2

bump on this.

from docker-keepalived.

paulliss avatar paulliss commented on May 28, 2024 2

knock -knock , I've met the same ((

from docker-keepalived.

autokilla47 avatar autokilla47 commented on May 28, 2024 2

=(

from docker-keepalived.

cbrherms avatar cbrherms commented on May 28, 2024

Oddly i have just started to get the exact same starting yesterday.

from docker-keepalived.

husa570 avatar husa570 commented on May 28, 2024

If the node itself is in the KEEPALIVED_UNICAST_PEERS, it gets confused by its own unicast message.
I do run a three node setup and had the same issue, when my list included all my three nodes. After removing the node itself from the list, everything returned to expected state.
Though, I would prefer to keep all nodes with the same KEEPALIVED_UNICAST_PEERS values and make the entrypoint script filter out the nodes own ip.

I can confirm that I see the same as @meyayl, for simplify configuration I whould also prefer to have the same keepalive config in both nodes if possible.
My "feeling" (or lack of memory) says that it have not always been like this…. same as @cbrherms

from docker-keepalived.

cobolbaby avatar cobolbaby commented on May 28, 2024

How to eliminate the warning?

from docker-keepalived.

tomsozolins avatar tomsozolins commented on May 28, 2024

same problem.

from docker-keepalived.

davewat avatar davewat commented on May 28, 2024

Same issue here after updating to current release.

from docker-keepalived.

tc0nn avatar tc0nn commented on May 28, 2024

Same issue

from docker-keepalived.

notnarb avatar notnarb commented on May 28, 2024

In case anyone else runs into this issue, I came up with a hacky workaround by setting cmd to /bin/sh and args to ["-c", "<the below script>"]

script:

set -eux
# Parse existing ip addresses assigned to specified interface
export IPV4_ADDRESSES=$(ip a show dev $KEEPALIVED_INTERFACE  | grep "inet " | sed -r "s/.*inet ([0-9.]+).*/\1/g")
# Remove each found address from KEEPALIVED_UNICAST_PEERS
for ADDRESS in $IPV4_ADDRESSES; do
# Skip indenting to make python happy.
export KEEPALIVED_UNICAST_PEERS=$(/usr/bin/python3 <<EOF
import ast, os;
existing_list = ast.literal_eval(os.environ["KEEPALIVED_UNICAST_PEERS"].split(":")[1])
filtered_list = list(filter(lambda x: x != "${ADDRESS}", existing_list))
print("#PYTHON2BASH:" + str(filtered_list))
EOF
)
done
exec /container/tool/run

(note: this assumes you're using PYTHON2BASH and only works for IPV4)

I am sure this is somewhat fragile and there is probably a cleaner way of doing this, but basically I just overwrote the entrypoint to remove any assigned IP addresses from ${KEEPALIVED_UNICAST_PEERS} before calling the actual entrypoint.


Would be cool to see something like this upstreamed as an experimental flag since the equivalent logic would probably better fit in startup.sh and passing multi-line variables to Docker can be annoying

from docker-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.