diff options
| author | Zuul <zuul@review.openstack.org> | 2018-01-17 05:39:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-01-17 05:39:40 +0000 |
| commit | bfc3facdc816c9a8d23b04c01af0161354934232 (patch) | |
| tree | 8485efa31aaf3d94dd3cbbdb7d0c7a4919088e1f | |
| parent | 3246aafc23cd62814692d39673d460d80782f6b4 (diff) | |
| parent | 2be3e4e7cc6740dd8657c019cc5e97e63a9d0132 (diff) | |
| download | kolla-bfc3facdc816c9a8d23b04c01af0161354934232.tar.gz kolla-bfc3facdc816c9a8d23b04c01af0161354934232.zip | |
Merge "Apply Cinder rolling upgrade"
| -rw-r--r-- | docker/cinder/cinder-api/extend_start.sh | 9 |
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 |
