Apply Cinder rolling upgrade

Apply Cinder database migration procedure:

[1] https://docs.openstack.org/cinder/pike/upgrade.html

Change-Id: I9a847b0a916a85d8f2622e93734330da5122f0d8
This commit is contained in:
Duong Ha-Quang 2017-12-21 18:15:50 +07:00
parent d568df9bcc
commit 2be3e4e7cc

View File

@ -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