summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-07 12:33:13 +0000
committerGerrit Code Review <review@openstack.org>2018-06-07 12:33:13 +0000
commit91f5cca1863bb54695774a892c83ccb2ffaf9006 (patch)
treeb581349d4cf79d64742053b024ad15294be89185
parent291ba252a5d07f02a058c5cee4370d74121f563f (diff)
parent7f1ba57e1868cab599f3f8fb2731fe4663428462 (diff)
Merge "Apply Nova rolling upgrade logic"
-rw-r--r--docker/nova/nova-api/extend_start.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/nova/nova-api/extend_start.sh b/docker/nova/nova-api/extend_start.sh
index df27792..dd18f79 100644
--- a/docker/nova/nova-api/extend_start.sh
+++ b/docker/nova/nova-api/extend_start.sh
@@ -9,6 +9,17 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
9 exit 0 9 exit 0
10fi 10fi
11 11
12if [[ "${!KOLLA_UPGRADE[@]}}" ]]; then
13 nova-manage db sync
14 nova-manage api_db sync
15 exit 0
16fi
17
18if [[ "${!KOLLA_OSM[@]}}" ]]; then
19 nova-manage db online_data_migrations
20 exit 0
21fi
22
12# Assume the service runs on top of Apache when user is root 23# Assume the service runs on top of Apache when user is root
13if [[ "$(whoami)" == 'root' ]]; then 24if [[ "$(whoami)" == 'root' ]]; then
14 # NOTE(pbourke): httpd will not clean up after itself in some cases which 25 # NOTE(pbourke): httpd will not clean up after itself in some cases which