Browse Source

Merge "Apply Nova rolling upgrade logic"

Zuul 10 months ago
parent
commit
91f5cca186
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      docker/nova/nova-api/extend_start.sh

+ 11
- 0
docker/nova/nova-api/extend_start.sh View File

@@ -9,6 +9,17 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
9 9
     exit 0
10 10
 fi
11 11
 
12
+if [[ "${!KOLLA_UPGRADE[@]}}" ]]; then
13
+    nova-manage db sync
14
+    nova-manage api_db sync
15
+    exit 0
16
+fi
17
+
18
+if [[ "${!KOLLA_OSM[@]}}" ]]; then
19
+    nova-manage db online_data_migrations
20
+    exit 0
21
+fi
22
+
12 23
 # Assume the service runs on top of Apache when user is root
13 24
 if [[ "$(whoami)" == 'root' ]]; then
14 25
     # NOTE(pbourke): httpd will not clean up after itself in some cases which

Loading…
Cancel
Save