diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-07-15 03:36:01 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-07-15 03:36:01 +0000 |
| commit | 8bb49e9653f708087f8969f561e44bc9b4c3ec71 (patch) | |
| tree | c7fd3f8d78e1f1625760c082cdd7d199d913c5dd /docker/common/nova-controller/nova-api | |
| parent | cc9d7d2a40ef8ae6cdd394aff983ea0cf519a461 (diff) | |
| parent | 7da0b2a80c093661766f9998760be8844584b0cc (diff) | |
| download | kolla-8bb49e9653f708087f8969f561e44bc9b4c3ec71.tar.gz kolla-8bb49e9653f708087f8969f561e44bc9b4c3ec71.zip | |
Merge "Ansible Nova w/ libvirt support"
Diffstat (limited to 'docker/common/nova-controller/nova-api')
| -rwxr-xr-x | docker/common/nova-controller/nova-api/start.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/common/nova-controller/nova-api/start.sh b/docker/common/nova-controller/nova-api/start.sh index 0737ba0b7..0d7ffca9b 100755 --- a/docker/common/nova-controller/nova-api/start.sh +++ b/docker/common/nova-controller/nova-api/start.sh @@ -10,4 +10,11 @@ source /opt/kolla/kolla-common.sh # Config-internal script exec out of this function, it does not return here. set_configs +# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases +# of the KOLLA_BOOTSTRAP variable being set, including empty. +if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then + su -s /bin/sh -c "nova-manage db sync" nova + exit 0 +fi + exec $CMD $ARGS |
