aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-09-27 11:38:25 +0000
committerSam Yaple <sam@yaple.net>2015-09-27 13:44:50 +0000
commit160f1cc0116bf93cfceffeb0149e525ba08eed3f (patch)
treee04158c84cd05b3b9a1b9e75c5f2a223f94eafba /docker
parent5e60d8ec873870fc7995b8ea006652a3381f523f (diff)
downloadkolla-160f1cc0116bf93cfceffeb0149e525ba08eed3f.tar.gz
kolla-160f1cc0116bf93cfceffeb0149e525ba08eed3f.zip
remove set_configs
Change-Id: I9bb0a1fac63cc326234b0f06b1e56b43e0753279 Partially-Implements: blueprint replace-config-external
Diffstat (limited to 'docker')
-rw-r--r--docker/base/kolla-common.sh23
-rwxr-xr-xdocker/ceilometer/ceilometer-alarm/start.sh4
-rwxr-xr-xdocker/ceilometer/ceilometer-api/start.sh4
-rwxr-xr-xdocker/ceilometer/ceilometer-central/start.sh4
-rwxr-xr-xdocker/ceilometer/ceilometer-collector/start.sh4
-rwxr-xr-xdocker/ceilometer/ceilometer-compute/start.sh4
-rwxr-xr-xdocker/ceilometer/ceilometer-notification/start.sh4
-rwxr-xr-xdocker/ceph/ceph-mon/start.sh4
-rwxr-xr-xdocker/ceph/ceph-osd/start.sh4
-rwxr-xr-xdocker/cinder/cinder-api/start.sh5
-rwxr-xr-xdocker/cinder/cinder-backup/start.sh5
-rwxr-xr-xdocker/cinder/cinder-scheduler/start.sh5
-rwxr-xr-xdocker/cinder/cinder-volume/start.sh5
-rwxr-xr-xdocker/designate/designate-api/start.sh5
-rwxr-xr-xdocker/designate/designate-backend-bind9/start.sh5
-rwxr-xr-xdocker/designate/designate-central/start.sh5
-rwxr-xr-xdocker/designate/designate-mdns/start.sh5
-rwxr-xr-xdocker/designate/designate-poolmanager/start.sh5
-rwxr-xr-xdocker/designate/designate-sink/start.sh5
-rwxr-xr-xdocker/glance/glance-api/start.sh5
-rwxr-xr-xdocker/glance/glance-registry/start.sh5
-rwxr-xr-xdocker/gnocchi/gnocchi-api/start.sh3
-rwxr-xr-xdocker/gnocchi/gnocchi-statsd/start.sh3
-rwxr-xr-xdocker/haproxy/start.sh4
-rwxr-xr-xdocker/heat/heat-api-cfn/start.sh4
-rwxr-xr-xdocker/heat/heat-api/start.sh4
-rwxr-xr-xdocker/heat/heat-engine/start.sh4
-rwxr-xr-xdocker/horizon/start.sh5
-rwxr-xr-xdocker/keepalived/start.sh4
-rwxr-xr-xdocker/keystone/start.sh5
-rwxr-xr-xdocker/logging/rsyslog/start.sh3
-rwxr-xr-xdocker/magnum/magnum-api/start.sh5
-rwxr-xr-xdocker/magnum/magnum-conductor/start.sh4
-rwxr-xr-xdocker/mariadb/start.sh8
-rwxr-xr-xdocker/memcached/start.sh5
-rwxr-xr-xdocker/murano/murano-api/start.sh4
-rwxr-xr-xdocker/murano/murano-engine/start.sh4
-rwxr-xr-xdocker/neutron/neutron-linuxbridge-agent/start.sh4
-rwxr-xr-xdocker/neutron/neutron-openvswitch-agent/start.sh4
-rwxr-xr-xdocker/neutron/neutron-server/start.sh4
-rwxr-xr-xdocker/nova/nova-api/start.sh5
-rwxr-xr-xdocker/nova/nova-compute/start.sh5
-rwxr-xr-xdocker/nova/nova-conductor/start.sh5
-rwxr-xr-xdocker/nova/nova-consoleauth/start.sh5
-rwxr-xr-xdocker/nova/nova-libvirt/start.sh5
-rwxr-xr-xdocker/nova/nova-network/start.sh4
-rwxr-xr-xdocker/nova/nova-novncproxy/start.sh5
-rwxr-xr-xdocker/nova/nova-scheduler/start.sh5
-rwxr-xr-xdocker/openvswitch/ovs-db-server/start.sh3
-rwxr-xr-xdocker/openvswitch/ovs-vswitchd/start.sh3
-rwxr-xr-xdocker/rabbitmq/start.sh8
-rwxr-xr-xdocker/swift/swift-account-auditor/start.sh4
-rwxr-xr-xdocker/swift/swift-account-reaper/start.sh4
-rwxr-xr-xdocker/swift/swift-account-replicator/start.sh4
-rwxr-xr-xdocker/swift/swift-account-server/start.sh4
-rwxr-xr-xdocker/swift/swift-container-auditor/start.sh4
-rwxr-xr-xdocker/swift/swift-container-replicator/start.sh4
-rwxr-xr-xdocker/swift/swift-container-server/start.sh4
-rwxr-xr-xdocker/swift/swift-container-updater/start.sh4
-rwxr-xr-xdocker/swift/swift-object-auditor/start.sh4
-rwxr-xr-xdocker/swift/swift-object-expirer/start.sh4
-rwxr-xr-xdocker/swift/swift-object-replicator/start.sh4
-rwxr-xr-xdocker/swift/swift-object-server/start.sh4
-rwxr-xr-xdocker/swift/swift-object-updater/start.sh4
-rwxr-xr-xdocker/swift/swift-proxy-server/start.sh4
-rwxr-xr-xdocker/swift/swift-rsyncd/start.sh4
-rwxr-xr-xdocker/zaqar/start.sh4
67 files changed, 10 insertions, 303 deletions
diff --git a/docker/base/kolla-common.sh b/docker/base/kolla-common.sh
index cc960ca24..0cbb04821 100644
--- a/docker/base/kolla-common.sh
+++ b/docker/base/kolla-common.sh
@@ -1,22 +1,5 @@
#!/bin/bash
-set_configs() {
- case $KOLLA_CONFIG_STRATEGY in
- COPY_ALWAYS)
- source /opt/kolla/config-external.sh
- ;;
- COPY_ONCE)
- if [[ -f /configured ]]; then
- echo 'INFO - This container has already been configured; Refusing to copy new configs'
- else
- source /opt/kolla/config-external.sh
- touch /configured
- fi
- ;;
-
- *)
- echo '$KOLLA_CONFIG_STRATEGY is not set properly'
- exit 1
- ;;
- esac
-}
+# Copying configs into place if needed and set run command
+python /opt/kolla/set_configs.py
+CMD=$(cat /run_command)
diff --git a/docker/ceilometer/ceilometer-alarm/start.sh b/docker/ceilometer/ceilometer-alarm/start.sh
index ab5501b23..d98577e08 100755
--- a/docker/ceilometer/ceilometer-alarm/start.sh
+++ b/docker/ceilometer/ceilometer-alarm/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceilometer-alarm"
@@ -8,7 +7,4 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/ceilometer/ceilometer-api/start.sh b/docker/ceilometer/ceilometer-api/start.sh
index 0f660e025..6ba3cc37d 100755
--- a/docker/ceilometer/ceilometer-api/start.sh
+++ b/docker/ceilometer/ceilometer-api/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceilometer-api"
@@ -8,9 +7,6 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Config-internal script exec out of this function, it does not return here.
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/ceilometer/ceilometer-central/start.sh b/docker/ceilometer/ceilometer-central/start.sh
index f2980a4d5..e074febc9 100755
--- a/docker/ceilometer/ceilometer-central/start.sh
+++ b/docker/ceilometer/ceilometer-central/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceilometer-agent-central"
@@ -8,7 +7,4 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/ceilometer/ceilometer-collector/start.sh b/docker/ceilometer/ceilometer-collector/start.sh
index 3a59c17d1..585e4d7f5 100755
--- a/docker/ceilometer/ceilometer-collector/start.sh
+++ b/docker/ceilometer/ceilometer-collector/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceilometer-collector"
@@ -8,7 +7,4 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/ceilometer/ceilometer-compute/start.sh b/docker/ceilometer/ceilometer-compute/start.sh
index 19d90be2f..f17a32709 100755
--- a/docker/ceilometer/ceilometer-compute/start.sh
+++ b/docker/ceilometer/ceilometer-compute/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceilometer-agent-compute"
@@ -8,7 +7,4 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/ceilometer/ceilometer-notification/start.sh b/docker/ceilometer/ceilometer-notification/start.sh
index 8ce4b4488..a3421acaf 100755
--- a/docker/ceilometer/ceilometer-notification/start.sh
+++ b/docker/ceilometer/ceilometer-notification/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceilometer-agent-notification"
@@ -8,7 +7,4 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/ceph/ceph-mon/start.sh b/docker/ceph/ceph-mon/start.sh
index 3afaa3ad4..34e8647da 100755
--- a/docker/ceph/ceph-mon/start.sh
+++ b/docker/ceph/ceph-mon/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/ceph-mon"
@@ -14,9 +13,6 @@ MON_DIR="/var/lib/ceph/mon/ceph-$(hostname)"
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/ceph/ceph-osd/start.sh b/docker/ceph/ceph-osd/start.sh
index 84549ae8c..7d24a4d1a 100755
--- a/docker/ceph/ceph-osd/start.sh
+++ b/docker/ceph/ceph-osd/start.sh
@@ -1,13 +1,9 @@
#!/bin/bash
-set -o xtrace
set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/cinder/cinder-api/start.sh b/docker/cinder/cinder-api/start.sh
index 2c6e3922f..553158a82 100755
--- a/docker/cinder/cinder-api/start.sh
+++ b/docker/cinder/cinder-api/start.sh
@@ -1,14 +1,9 @@
#!/bin/bash
-
set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/cinder/cinder-backup/start.sh b/docker/cinder/cinder-backup/start.sh
index bfa6c7878..a083e7bac 100755
--- a/docker/cinder/cinder-backup/start.sh
+++ b/docker/cinder/cinder-backup/start.sh
@@ -1,12 +1,7 @@
#!/bin/bash
-
set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/cinder/cinder-scheduler/start.sh b/docker/cinder/cinder-scheduler/start.sh
index bfa6c7878..a083e7bac 100755
--- a/docker/cinder/cinder-scheduler/start.sh
+++ b/docker/cinder/cinder-scheduler/start.sh
@@ -1,12 +1,7 @@
#!/bin/bash
-
set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/cinder/cinder-volume/start.sh b/docker/cinder/cinder-volume/start.sh
index bfa6c7878..a083e7bac 100755
--- a/docker/cinder/cinder-volume/start.sh
+++ b/docker/cinder/cinder-volume/start.sh
@@ -1,12 +1,7 @@
#!/bin/bash
-
set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/designate/designate-api/start.sh b/docker/designate/designate-api/start.sh
index fe556225b..816715fa9 100755
--- a/docker/designate/designate-api/start.sh
+++ b/docker/designate/designate-api/start.sh
@@ -1,15 +1,12 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/bin/designate-api"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/designate/designate-backend-bind9/start.sh b/docker/designate/designate-backend-bind9/start.sh
index 11922974a..bd3f8c401 100755
--- a/docker/designate/designate-backend-bind9/start.sh
+++ b/docker/designate/designate-backend-bind9/start.sh
@@ -1,13 +1,10 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/sbin/named"
ARGS="-u named -g"
# Execute config strategy
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/designate/designate-central/start.sh b/docker/designate/designate-central/start.sh
index eac012d3d..760f7eacd 100755
--- a/docker/designate/designate-central/start.sh
+++ b/docker/designate/designate-central/start.sh
@@ -1,13 +1,10 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/bin/designate-central"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/designate/designate-mdns/start.sh b/docker/designate/designate-mdns/start.sh
index b4bcda20c..026e8e6c3 100755
--- a/docker/designate/designate-mdns/start.sh
+++ b/docker/designate/designate-mdns/start.sh
@@ -1,13 +1,10 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/bin/designate-mdns"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/designate/designate-poolmanager/start.sh b/docker/designate/designate-poolmanager/start.sh
index 0752b9847..a648b9b37 100755
--- a/docker/designate/designate-poolmanager/start.sh
+++ b/docker/designate/designate-poolmanager/start.sh
@@ -1,13 +1,10 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/bin/designate-pool-manager"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/designate/designate-sink/start.sh b/docker/designate/designate-sink/start.sh
index d2f93e26f..94c70470c 100755
--- a/docker/designate/designate-sink/start.sh
+++ b/docker/designate/designate-sink/start.sh
@@ -1,13 +1,10 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/bin/designate-sink"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/glance/glance-api/start.sh b/docker/glance/glance-api/start.sh
index 7ceead556..f4463c6fa 100755
--- a/docker/glance/glance-api/start.sh
+++ b/docker/glance/glance-api/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
@@ -15,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
exit 0
fi
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/glance/glance-registry/start.sh b/docker/glance/glance-registry/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/glance/glance-registry/start.sh
+++ b/docker/glance/glance-registry/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/gnocchi/gnocchi-api/start.sh b/docker/gnocchi/gnocchi-api/start.sh
index 657368a27..bb91fb831 100755
--- a/docker/gnocchi/gnocchi-api/start.sh
+++ b/docker/gnocchi/gnocchi-api/start.sh
@@ -7,9 +7,6 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/gnocchi/gnocchi-statsd/start.sh b/docker/gnocchi/gnocchi-statsd/start.sh
index 636e71323..6070a785a 100755
--- a/docker/gnocchi/gnocchi-statsd/start.sh
+++ b/docker/gnocchi/gnocchi-statsd/start.sh
@@ -7,8 +7,5 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/haproxy/start.sh b/docker/haproxy/start.sh
index 629c85254..3bdd4018a 100755
--- a/docker/haproxy/start.sh
+++ b/docker/haproxy/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# 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
diff --git a/docker/heat/heat-api-cfn/start.sh b/docker/heat/heat-api-cfn/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/heat/heat-api-cfn/start.sh
+++ b/docker/heat/heat-api-cfn/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/heat/heat-api/start.sh b/docker/heat/heat-api/start.sh
index a0d3d6d04..b451c604c 100755
--- a/docker/heat/heat-api/start.sh
+++ b/docker/heat/heat-api/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/heat/heat-engine/start.sh b/docker/heat/heat-engine/start.sh
index db69f8509..21a783da1 100755
--- a/docker/heat/heat-engine/start.sh
+++ b/docker/heat/heat-engine/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/horizon/start.sh b/docker/horizon/start.sh
index 535f06b82..784ff5e87 100755
--- a/docker/horizon/start.sh
+++ b/docker/horizon/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
# Loading common functions
@@ -11,8 +10,4 @@ if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
source /etc/apache2/envvars
fi
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/keepalived/start.sh b/docker/keepalived/start.sh
index 8c41a5f7d..1d96c3bfa 100755
--- a/docker/keepalived/start.sh
+++ b/docker/keepalived/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
modprobe ip_vs
# Workaround for bug #1485079
diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh
index 91c95517c..45c6391fc 100755
--- a/docker/keystone/start.sh
+++ b/docker/keystone/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
# Loading common functions
@@ -11,10 +10,6 @@ if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
source /etc/apache2/envvars
fi
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/logging/rsyslog/start.sh b/docker/logging/rsyslog/start.sh
index 2d40de141..fea488a62 100755
--- a/docker/logging/rsyslog/start.sh
+++ b/docker/logging/rsyslog/start.sh
@@ -4,7 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD $ARGS
diff --git a/docker/magnum/magnum-api/start.sh b/docker/magnum/magnum-api/start.sh
index ed154e29a..dc22cd1c6 100755
--- a/docker/magnum/magnum-api/start.sh
+++ b/docker/magnum/magnum-api/start.sh
@@ -1,15 +1,12 @@
#!/bin/bash
-
set -o errexit
+
CMD="/usr/bin/magnum-api"
ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/magnum/magnum-conductor/start.sh b/docker/magnum/magnum-conductor/start.sh
index a5c76ee85..b96c6324f 100755
--- a/docker/magnum/magnum-conductor/start.sh
+++ b/docker/magnum/magnum-conductor/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/magnum-conductor"
@@ -8,7 +7,4 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
exec $CMD $ARGS
diff --git a/docker/mariadb/start.sh b/docker/mariadb/start.sh
index 69f40818c..6d80153f0 100755
--- a/docker/mariadb/start.sh
+++ b/docker/mariadb/start.sh
@@ -1,15 +1,8 @@
#!/bin/bash
-
set -o errexit
# Loading common functions
source /opt/kolla/kolla-common.sh
-
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-# Loading functions
source /opt/kolla/config/config-galera.sh
chown mysql: /var/lib/mysql
@@ -24,5 +17,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]] && [[ ! -e /var/lib/mysql/cluster.exists ]]; t
exit 0
fi
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/memcached/start.sh b/docker/memcached/start.sh
index bfa6c7878..a083e7bac 100755
--- a/docker/memcached/start.sh
+++ b/docker/memcached/start.sh
@@ -1,12 +1,7 @@
#!/bin/bash
-
set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/murano/murano-api/start.sh b/docker/murano/murano-api/start.sh
index 59599398e..05bf40eec 100755
--- a/docker/murano/murano-api/start.sh
+++ b/docker/murano/murano-api/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/murano/murano-engine/start.sh b/docker/murano/murano-engine/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/murano/murano-engine/start.sh
+++ b/docker/murano/murano-engine/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/neutron/neutron-linuxbridge-agent/start.sh b/docker/neutron/neutron-linuxbridge-agent/start.sh
index f02472648..6c4b09679 100755
--- a/docker/neutron/neutron-linuxbridge-agent/start.sh
+++ b/docker/neutron/neutron-linuxbridge-agent/start.sh
@@ -5,8 +5,4 @@ set -o errexit
source /opt/kolla/kolla-common.sh
source /opt/kolla/config-sudoers.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/neutron/neutron-openvswitch-agent/start.sh b/docker/neutron/neutron-openvswitch-agent/start.sh
index f02472648..6c4b09679 100755
--- a/docker/neutron/neutron-openvswitch-agent/start.sh
+++ b/docker/neutron/neutron-openvswitch-agent/start.sh
@@ -5,8 +5,4 @@ set -o errexit
source /opt/kolla/kolla-common.sh
source /opt/kolla/config-sudoers.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/neutron/neutron-server/start.sh b/docker/neutron/neutron-server/start.sh
index c6ae197d4..cf30a7f0a 100755
--- a/docker/neutron/neutron-server/start.sh
+++ b/docker/neutron/neutron-server/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
diff --git a/docker/nova/nova-api/start.sh b/docker/nova/nova-api/start.sh
index c61c37feb..6461777ca 100755
--- a/docker/nova/nova-api/start.sh
+++ b/docker/nova/nova-api/start.sh
@@ -4,10 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
@@ -15,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
exit 0
fi
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-compute/start.sh b/docker/nova/nova-compute/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/nova/nova-compute/start.sh
+++ b/docker/nova/nova-compute/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-conductor/start.sh b/docker/nova/nova-conductor/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/nova/nova-conductor/start.sh
+++ b/docker/nova/nova-conductor/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-consoleauth/start.sh b/docker/nova/nova-consoleauth/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/nova/nova-consoleauth/start.sh
+++ b/docker/nova/nova-consoleauth/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-libvirt/start.sh b/docker/nova/nova-libvirt/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/nova/nova-libvirt/start.sh
+++ b/docker/nova/nova-libvirt/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-network/start.sh b/docker/nova/nova-network/start.sh
index 2f8254b89..a083e7bac 100755
--- a/docker/nova/nova-network/start.sh
+++ b/docker/nova/nova-network/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-novncproxy/start.sh b/docker/nova/nova-novncproxy/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/nova/nova-novncproxy/start.sh
+++ b/docker/nova/nova-novncproxy/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/nova/nova-scheduler/start.sh b/docker/nova/nova-scheduler/start.sh
index 6191ce851..a083e7bac 100755
--- a/docker/nova/nova-scheduler/start.sh
+++ b/docker/nova/nova-scheduler/start.sh
@@ -4,9 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/openvswitch/ovs-db-server/start.sh b/docker/openvswitch/ovs-db-server/start.sh
index 4d3d772cc..60347b2dc 100755
--- a/docker/openvswitch/ovs-db-server/start.sh
+++ b/docker/openvswitch/ovs-db-server/start.sh
@@ -4,9 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
mkdir -p "/run/openvswitch"
if [[ ! -e "/etc/openvswitch/conf.db" ]]; then
ovsdb-tool create "/etc/openvswitch/conf.db"
diff --git a/docker/openvswitch/ovs-vswitchd/start.sh b/docker/openvswitch/ovs-vswitchd/start.sh
index 792954bb4..b72ba5a2e 100755
--- a/docker/openvswitch/ovs-vswitchd/start.sh
+++ b/docker/openvswitch/ovs-vswitchd/start.sh
@@ -4,9 +4,6 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
modprobe openvswitch
exec $CMD
diff --git a/docker/rabbitmq/start.sh b/docker/rabbitmq/start.sh
index 9e7108c3d..1a018bc89 100755
--- a/docker/rabbitmq/start.sh
+++ b/docker/rabbitmq/start.sh
@@ -1,15 +1,8 @@
#!/bin/bash
-
set -o errexit
# loading common functions
source /opt/kolla/kolla-common.sh
-
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
-# loading functions
source /opt/kolla/config-rabbit.sh
# This catches all cases of the BOOTSTRAP variable being set, including empty
@@ -18,5 +11,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
exit 0
fi
-echo "Running command: ${CMD}"
exec $CMD
diff --git a/docker/swift/swift-account-auditor/start.sh b/docker/swift/swift-account-auditor/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-account-auditor/start.sh
+++ b/docker/swift/swift-account-auditor/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-account-reaper/start.sh b/docker/swift/swift-account-reaper/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-account-reaper/start.sh
+++ b/docker/swift/swift-account-reaper/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-account-replicator/start.sh b/docker/swift/swift-account-replicator/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-account-replicator/start.sh
+++ b/docker/swift/swift-account-replicator/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-account-server/start.sh b/docker/swift/swift-account-server/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-account-server/start.sh
+++ b/docker/swift/swift-account-server/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-container-auditor/start.sh b/docker/swift/swift-container-auditor/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-container-auditor/start.sh
+++ b/docker/swift/swift-container-auditor/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-container-replicator/start.sh b/docker/swift/swift-container-replicator/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-container-replicator/start.sh
+++ b/docker/swift/swift-container-replicator/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-container-server/start.sh b/docker/swift/swift-container-server/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-container-server/start.sh
+++ b/docker/swift/swift-container-server/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-container-updater/start.sh b/docker/swift/swift-container-updater/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-container-updater/start.sh
+++ b/docker/swift/swift-container-updater/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-object-auditor/start.sh b/docker/swift/swift-object-auditor/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-object-auditor/start.sh
+++ b/docker/swift/swift-object-auditor/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-object-expirer/start.sh b/docker/swift/swift-object-expirer/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-object-expirer/start.sh
+++ b/docker/swift/swift-object-expirer/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-object-replicator/start.sh b/docker/swift/swift-object-replicator/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-object-replicator/start.sh
+++ b/docker/swift/swift-object-replicator/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-object-server/start.sh b/docker/swift/swift-object-server/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-object-server/start.sh
+++ b/docker/swift/swift-object-server/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-object-updater/start.sh b/docker/swift/swift-object-updater/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-object-updater/start.sh
+++ b/docker/swift/swift-object-updater/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-proxy-server/start.sh b/docker/swift/swift-proxy-server/start.sh
index 7adad007a..2fbfc3012 100755
--- a/docker/swift/swift-proxy-server/start.sh
+++ b/docker/swift/swift-proxy-server/start.sh
@@ -5,8 +5,4 @@ set -o errexit
source /opt/kolla/kolla-common.sh
source /opt/kolla/config-swift.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/swift/swift-rsyncd/start.sh b/docker/swift/swift-rsyncd/start.sh
index d43e03581..a083e7bac 100755
--- a/docker/swift/swift-rsyncd/start.sh
+++ b/docker/swift/swift-rsyncd/start.sh
@@ -4,8 +4,4 @@ set -o errexit
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Generate run command
-python /opt/kolla/set_configs.py
-CMD=$(cat /run_command)
-
exec $CMD
diff --git a/docker/zaqar/start.sh b/docker/zaqar/start.sh
index fa1050280..c5f1dea7f 100755
--- a/docker/zaqar/start.sh
+++ b/docker/zaqar/start.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
set -o errexit
CMD="/usr/bin/zaqar-server"
@@ -8,9 +7,6 @@ ARGS=""
# Loading common functions.
source /opt/kolla/kolla-common.sh
-# Execute config strategy
-set_configs
-
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then