From f714703cad8240c3688ce4e24c1b173e64c270d1 Mon Sep 17 00:00:00 2001 From: Qiu Yu Date: Mon, 18 Jan 2016 14:07:28 +0800 Subject: [PATCH] Ensure /var/lib/cinder exists for cinder container Change-Id: I52e175a1eb5176828db8ed709f4d19dd0685b9c5 Closes-Bug: #1535189 --- docker/cinder/cinder-base/Dockerfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/cinder/cinder-base/Dockerfile.j2 b/docker/cinder/cinder-base/Dockerfile.j2 index c2e091e527..a679a0b820 100644 --- a/docker/cinder/cinder-base/Dockerfile.j2 +++ b/docker/cinder/cinder-base/Dockerfile.j2 @@ -34,9 +34,9 @@ ADD cinder-base-archive /cinder-base-source RUN ln -s cinder-base-source/* cinder \ && useradd --user-group cinder \ && /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /cinder \ - && mkdir -p /etc/cinder /var/log/cinder /home/cinder \ + && mkdir -p /etc/cinder /var/log/cinder /var/lib/cinder /home/cinder \ && cp -r /cinder/etc/cinder/* /etc/cinder/ \ - && chown -R cinder: /etc/cinder /var/log/cinder /home/cinder + && chown -R cinder: /etc/cinder /var/log/cinder /var/lib/cinder /home/cinder {% endif %}