From 3f85c545983acd5a0a0f277d148bfb8e1c981f75 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Sun, 10 Apr 2016 19:34:29 +0200 Subject: [PATCH] Create /var/cache/swift in source installation Due to lack of /var/cache/swift directory, swift services are unable to access /var/cache/swift/container.recon file. Closes-Bug: 1569182 Change-Id: Ifc4763d40256e43f51728e1dd4b3986c4f0ba0fc --- docker/swift/swift-base/Dockerfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/swift/swift-base/Dockerfile.j2 b/docker/swift/swift-base/Dockerfile.j2 index 639b997bc8..f2924509a0 100644 --- a/docker/swift/swift-base/Dockerfile.j2 +++ b/docker/swift/swift-base/Dockerfile.j2 @@ -33,9 +33,9 @@ ADD swift-base-archive /swift-base-source RUN ln -s swift-base-source/* swift \ && useradd --user-group swift \ && /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /swift \ - && mkdir -p /etc/swift /var/log/swift /home/swift \ + && mkdir -p /etc/swift /var/cache/swift /var/log/swift /home/swift \ && cp -r /swift/etc/* /etc/swift/ \ - && chown -R swift: /etc/swift /var/log/swift /home/swift + && chown -R swift: /etc/swift /var/cache/swift /var/log/swift /home/swift {% endif %}