diff options
| author | Gauvain Pocentek <gauvainpocentek@gmail.com> | 2020-03-10 12:46:17 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvainpocentek@gmail.com> | 2020-03-12 07:32:03 +0100 |
| commit | ff42ff20048ef3b7d2f8df04ada8ff4bf7b710e0 (patch) | |
| tree | a443b905d4225b6bc67f3561651bfccbd82305ab /docker/cinder/cinder-api/extend_start.sh | |
| parent | 031b17226a6a8c91246828764fe74da7c5d364d2 (diff) | |
| download | kolla-ff42ff20048ef3b7d2f8df04ada8ff4bf7b710e0.tar.gz kolla-ff42ff20048ef3b7d2f8df04ada8ff4bf7b710e0.zip | |
Fix invalid test in cinder data migration script
The extend_start.sh script for cinder-api uses an incorrect test to
check if the MAX_NUMBER variable is set. This leads to a incorrect
cinder-manage command being run if this variable is not set, making the
database migration fail.
This change fixes the test to properly use the MAX_NUMBER variable.
Change-Id: Ie46da709db0de09a9cf641b3c154275282f213fc
Closes-Bug: #1866827
Diffstat (limited to 'docker/cinder/cinder-api/extend_start.sh')
| -rw-r--r-- | docker/cinder/cinder-api/extend_start.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/cinder/cinder-api/extend_start.sh b/docker/cinder/cinder-api/extend_start.sh index cc0fd43f2..353983a95 100644 --- a/docker/cinder/cinder-api/extend_start.sh +++ b/docker/cinder/cinder-api/extend_start.sh @@ -9,7 +9,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then fi if [[ "${!KOLLA_OSM[@]}" ]]; then - if [[ -z ${MAX_NUMBER} ]]; then + if [[ "${!MAX_NUMBER[@]}" ]]; then cinder-manage db online_data_migrations --max_count ${MAX_NUMBER} else cinder-manage db online_data_migrations |
