aboutsummaryrefslogtreecommitdiff
path: root/docker/common/nova-controller/nova-api/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/common/nova-controller/nova-api/start.sh')
-rwxr-xr-xdocker/common/nova-controller/nova-api/start.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/common/nova-controller/nova-api/start.sh b/docker/common/nova-controller/nova-api/start.sh
index 0737ba0b7..0d7ffca9b 100755
--- a/docker/common/nova-controller/nova-api/start.sh
+++ b/docker/common/nova-controller/nova-api/start.sh
@@ -10,4 +10,11 @@ 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
+ su -s /bin/sh -c "nova-manage db sync" nova
+ exit 0
+fi
+
exec $CMD $ARGS