Skip to content

Commit 4696fc0

Browse files
gpocentekhrw
authored andcommitted
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 (cherry picked from commit ff42ff2)
1 parent 519eced commit 4696fc0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker/cinder/cinder-api/extend_start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
99
fi
1010

1111
if [[ "${!KOLLA_OSM[@]}" ]]; then
12-
if [[ -z ${MAX_NUMBER} ]]; then
12+
if [[ "${!MAX_NUMBER[@]}" ]]; then
1313
cinder-manage db online_data_migrations --max_count ${MAX_NUMBER}
1414
else
1515
cinder-manage db online_data_migrations
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes the MAX_NUMBER variable usage when running the database online
5+
migrations for cinder.

0 commit comments

Comments
 (0)