aboutsummaryrefslogtreecommitdiff
path: root/docker/cinder/cinder-api
diff options
context:
space:
mode:
authorDuong Ha-Quang <duonghq@vn.fujitsu.com>2017-12-21 18:15:50 +0700
committerDuong Ha-Quang <duonghq@vn.fujitsu.com>2018-01-05 10:16:34 +0000
commit2be3e4e7cc6740dd8657c019cc5e97e63a9d0132 (patch)
treee69dff0f193a53e58526c4c88baee9d41ea5342f /docker/cinder/cinder-api
parentd568df9bccccf78d92276ac3be98dc2f0a61fb79 (diff)
downloadkolla-2be3e4e7cc6740dd8657c019cc5e97e63a9d0132.tar.gz
kolla-2be3e4e7cc6740dd8657c019cc5e97e63a9d0132.zip
Apply Cinder rolling upgrade
Apply Cinder database migration procedure: [1] https://docs.openstack.org/cinder/pike/upgrade.html Change-Id: I9a847b0a916a85d8f2622e93734330da5122f0d8
Diffstat (limited to 'docker/cinder/cinder-api')
-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