Comments (6)
startup.sh seems to never convert the yaml string to bash (line 28):
for peer in $(complex-bash-env iterate KEEPALIVED_UNICAST_PEERS)
do
sed -i "s|{{ KEEPALIVED_UNICAST_PEERS }}|${!peer}\n {{ KEEPALIVED_UNICAST_PEERS }}|g"
${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf
done
sed -i "/{{ KEEPALIVED_UNICAST_PEERS }}/d"
${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf
I took a closer look into into complex-bash-env and it doesn't seem to interpret "#PYTHON2BASH:" at all
from docker-keepalived.
We have found the issue. The KEEPALIVED_UNICAST_PEERS variable had quotes in it, which made the PYTHON2BASH not work:
[root@keepalived system]# docker exec -it keepalived bash
bash-5.0# env
KEEPALIVED_UNICAST_PEERS="#PYTHON2BASH:['10.4.52.12','10.4.52.6']"
from docker-keepalived.
We have found the issue. The KEEPALIVED_UNICAST_PEERS variable had quotes in it, which made the PYTHON2BASH not work:
[root@keepalived system]# docker exec -it keepalived bash bash-5.0# env KEEPALIVED_UNICAST_PEERS="#PYTHON2BASH:['10.4.52.12','10.4.52.6']"
I have the same problem,Has someone solved it?
from docker-keepalived.
@NoPerfectName Try to use is like this
"KEEPALIVED_UNICAST_PEERS=#PYTHON2BASH:['10.4.52.12','10.4.52.6']"
from docker-keepalived.
@BertrandGouny this ticket can be closed.
from docker-keepalived.
It works when using this format (i.e. using no double quotes at all):
KEEPALIVED_UNICAST_PEERS=#PYTHON2BASH:['1.1.1.1', '1.1.1.2', '1.1.1.3']
I'm using an env-file instead of command line variables, so that may be of influence.
from docker-keepalived.
Related Issues (20)
- How to use the '--config-id' command line option HOT 1
- Reload configuration HOT 2
- 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
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.