Comments (13)
@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.
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.
I can confirm that I have this same issue.
from docker-keepalived.
bump on this.
from docker-keepalived.
knock -knock , I've met the same ((
from docker-keepalived.
=(
from docker-keepalived.
Oddly i have just started to get the exact same starting yesterday.
from docker-keepalived.
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.
How to eliminate the warning?
from docker-keepalived.
same problem.
from docker-keepalived.
Same issue here after updating to current release.
from docker-keepalived.
Same issue
from docker-keepalived.
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)
- Reload configuration HOT 2
- malformed unicast peer HOT 6
- Issues running on Ubuntu Server 16.04.6 HOT 2
- arm64 image is not actually arm64; binaries are x86-64 HOT 7
- Future of this project? HOT 4
- Configuration file is not a regular non-executable file HOT 1
- vrrp_script not working with killall in docker
- New config isnt copied on container restart
- Singals are ignored, breaking monitoring systems HOT 1
- Keepalived Blocks Docker's Overlay Network HOT 1
- Not Available on dockerhub now HOT 1
- Keepalived 2.2.7 HOT 5
- 执行脚本问题 HOT 2
- keepalived inside the docker don't expose outside port when the network mode is host
- The keepalived vip address cannot be transferred to other nodes
- Can IPv6 be supported HOT 1
- Can keepalived control the appending order of IPv6 protocol stack IPs?
- Do you have a version that supports arrch64 architecture?
- Is this replaced by shawly/docker-keepalived? HOT 2
- How to close the keepalived process without causing the container to close
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-keepalived.