Apply Nova rolling upgrade logic
This patchset apply Nova rolling upgrade logic [1] [1] https://docs.openstack.org/nova/latest/user/upgrade.html Change-Id: I2cc973896d08988c0db121673d357fd1d37e6e6c Implements: blueprint apply-service-upgrade-procedure
This commit is contained in:
parent
e795f8580a
commit
7f1ba57e18
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue