aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/cinder/cinder-api/extend_start.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/cinder/cinder-api/extend_start.sh b/docker/cinder/cinder-api/extend_start.sh
index f56c0cd5e..7fef2609b 100644
--- a/docker/cinder/cinder-api/extend_start.sh
+++ b/docker/cinder/cinder-api/extend_start.sh
@@ -8,6 +8,15 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
exit 0
fi
+if [[ "${!KOLLA_OSM[@]}" ]]; then
+ if [[ -z ${MAX_NUMBER} ]]; then
+ cinder-manage db online_data_migrations --max_count ${MAX_NUMBER}
+ else
+ cinder-manage db online_data_migrations
+ fi
+ exit 0
+fi
+
# Assume the service runs on top of Apache when user is root
if [[ "$(whoami)" == 'root' ]]; then
# NOTE(pbourke): httpd will not clean up after itself in some cases which