diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-09-25 13:50:16 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-09-25 13:50:16 +0000 |
| commit | 00f35e55907d54bacd291ebaab684d7b26420c37 (patch) | |
| tree | 16007cefaaf79415d97cb6493cfd30581a9a7b99 /docker | |
| parent | 0f297ed0ee9e9a2eedf8c846e200321fd0070072 (diff) | |
| parent | 89ecfc164ed92696de4c5cd2c0f90f23c1ad3784 (diff) | |
| download | kolla-00f35e55907d54bacd291ebaab684d7b26420c37.tar.gz kolla-00f35e55907d54bacd291ebaab684d7b26420c37.zip | |
Merge "Replace config-external - haproxy keepalived"
Diffstat (limited to 'docker')
| -rwxr-xr-x | docker/haproxy/ensure_latest_config.sh | 2 | ||||
| -rwxr-xr-x | docker/haproxy/start.sh | 10 | ||||
| -rwxr-xr-x | docker/keepalived/start.sh | 10 |
3 files changed, 9 insertions, 13 deletions
diff --git a/docker/haproxy/ensure_latest_config.sh b/docker/haproxy/ensure_latest_config.sh index b91189ca5..af20175a6 100755 --- a/docker/haproxy/ensure_latest_config.sh +++ b/docker/haproxy/ensure_latest_config.sh @@ -1,7 +1,7 @@ #!/bin/bash CURRENT_CONFIG_HASH=$(sha1sum /etc/haproxy/haproxy.cfg | cut -f1 -d' ') -NEW_CONFIG_HASH=$(sha1sum /opt/kolla/haproxy/haproxy.cfg | cut -f1 -d' ') +NEW_CONFIG_HASH=$(sha1sum /opt/kolla/config_files/haproxy.cfg | cut -f1 -d' ') if [[ $CURRENT_CONFIG_HASH != $NEW_CONFIG_HASH ]]; then changed=changed diff --git a/docker/haproxy/start.sh b/docker/haproxy/start.sh index d1da4a607..629c85254 100755 --- a/docker/haproxy/start.sh +++ b/docker/haproxy/start.sh @@ -1,17 +1,15 @@ #!/bin/bash set -o errexit -CMD='/usr/sbin/haproxy' -ARGS="-f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) # We are intentionally not using exec so we can reload the haproxy config later -$CMD $ARGS +$CMD # TODO(SamYaple): This has the potential for a race condition triggered by a # config reload that could cause the container to exit diff --git a/docker/keepalived/start.sh b/docker/keepalived/start.sh index a122526e4..8c41a5f7d 100755 --- a/docker/keepalived/start.sh +++ b/docker/keepalived/start.sh @@ -1,14 +1,12 @@ #!/bin/bash set -o errexit -CMD="/usr/sbin/keepalived" -ARGS="-nld -p /run/keepalived.pid" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) modprobe ip_vs @@ -17,4 +15,4 @@ if [ -f /run/keepalived.pid ]; then rm /run/keepalived.pid fi -exec $CMD $ARGS +exec $CMD |
