Merge "Apply Nova rolling upgrade logic"

This commit is contained in:
Zuul 2018-06-07 12:33:13 +00:00 committed by Gerrit Code Review
commit 91f5cca186
1 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,17 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
exit 0
fi
if [[ "${!KOLLA_UPGRADE[@]}}" ]]; then
nova-manage db sync
nova-manage api_db sync
exit 0
fi
if [[ "${!KOLLA_OSM[@]}}" ]]; then
nova-manage db online_data_migrations
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