diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-08-19 21:54:28 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2016-08-20 17:30:13 +0000 |
| commit | 2b741eb8703fd7886764107b05741c8415751991 (patch) | |
| tree | 7fda10715d1063298ce3b0eec750a87711dab9fa /docker | |
| parent | 755d5172b325fbfebb80df64a63d6faf653c3390 (diff) | |
| download | kolla-2b741eb8703fd7886764107b05741c8415751991.tar.gz kolla-2b741eb8703fd7886764107b05741c8415751991.zip | |
Create the nova instances directory when need during starting
The /var/lib/nova/instances should be create if it do not exist
during starting nova-compute container. Rather than create it
at the bootstrap service stage.
Change-Id: Ibcc5fb8eec0b38cf2b4313f48d1beb3ba83b1e85
Closes-Bug: #1614970
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/nova/nova-compute/extend_start.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docker/nova/nova-compute/extend_start.sh b/docker/nova/nova-compute/extend_start.sh index 76226cd90..a458625ec 100644 --- a/docker/nova/nova-compute/extend_start.sh +++ b/docker/nova/nova-compute/extend_start.sh @@ -1,8 +1,5 @@ #!/bin/bash -# 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 +if [[ ! -d /var/lib/nova/instances ]]; then mkdir -p /var/lib/nova/instances - exit 0 fi |
