Merge "Apply Cinder rolling upgrade"

This commit is contained in:
Zuul 2018-01-17 05:39:40 +00:00 committed by Gerrit Code Review
commit bfc3facdc8
1 changed files with 9 additions and 0 deletions

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