Upgrade to Train fails while running Cinder online schema migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
High
|
Pierre Riteau | ||
Train |
Fix Committed
|
High
|
Mark Goddard | ||
Ussuri |
Fix Committed
|
High
|
Mark Goddard | ||
Victoria |
Fix Released
|
High
|
Pierre Riteau |
Bug Description
During an upgrade from Stein to Train, Kolla Ansible fails while running TASK [cinder : Running Cinder online schema migration]
This is because the `--max_count 10` option is used, which returns 1 while migrations are processed. According to the upgrade documentation, the command should be rerun while the exit status is 1: https:/
msg: Container exited with non-zero return code 1
rc: 1
stderr: |-
+ sudo -E kolla_set_configs
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
INFO:
++ cat /run_command
+ CMD='httpd -DFOREGROUND'
+ ARGS=
+ sudo kolla_copy_cacerts
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ [[ ! -d /var/log/
+++ stat -c %a /var/log/
++ [[ 755 != \7\5\5 ]]
++ . /usr/local/
+++ set -o errexit
+++ [[ -n '' ]]
+++ [[ -n 0 ]]
+++ [[ -n 0 ]]
+++ cinder-manage db online_
Deprecated: Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
stderr_lines: <omitted>
stdout: |-
10 rows matched query untyped_
+--
| Migration | Total Needed | Completed |
+--
| untyped_
+--
stdout_lines: <omitted>
**Environment**:
* CentOS 7.8
* Kolla-Ansible version: stable/train
* Docker image Install type (source/binary): binary
* Docker image distribution: centos
* Official images from Docker Hub
Changed in kolla-ansible: | |
importance: | Undecided → High |
Changed in kolla-ansible: | |
assignee: | Mark Goddard (mgoddard) → Pierre Riteau (priteau) |
Workaround:
- set cinder_ max_number_ osm to a high number
- run upgrade: it will fail again, but will have processed many more migrations
- run upgrade again, which should work since cinder-manage will return 0