summaryrefslogtreecommitdiff
path: root/docker/nova/nova-conductor/extend_start.sh
blob: 72c9493f5fed742f5d7ca93d8c7d7bbbc5c51f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
    nova-manage db sync --local_cell
    nova-manage db online_data_migrations
    exit 0
fi

if [[ "${!KOLLA_UPGRADE[@]}" ]]; then
    nova-manage db sync --local_cell
    exit 0
fi

if [[ "${!KOLLA_OSM[@]}" ]]; then
    nova-manage db online_data_migrations
    exit 0
fi