diff --git a/docker/swift/swift-base/Dockerfile.j2 b/docker/swift/swift-base/Dockerfile.j2 index bf622fcd4a..6ef3db1241 100644 --- a/docker/swift/swift-base/Dockerfile.j2 +++ b/docker/swift/swift-base/Dockerfile.j2 @@ -53,9 +53,9 @@ ADD swift-base-archive /swift-base-source RUN ln -s swift-base-source/* swift \ && {{ macros.install_pip(swift_base_pip_packages | customizable("pip_packages")) }} \ - && mkdir -p /etc/swift /var/cache/swift \ + && mkdir -p /etc/swift /var/cache/swift /var/lock/swift \ && cp -r /swift/etc/* /etc/swift/ \ - && chown -R swift: /etc/swift /var/cache/swift + && chown -R swift: /etc/swift /var/cache/swift /var/lock/swift {% endif %} COPY swift-rootwrap /var/lib/kolla/venv/bin/swift-rootwrap diff --git a/releasenotes/notes/fix-lock-swift-path-9b743367e4014f92.yaml b/releasenotes/notes/fix-lock-swift-path-9b743367e4014f92.yaml new file mode 100644 index 0000000000..281fdee4c0 --- /dev/null +++ b/releasenotes/notes/fix-lock-swift-path-9b743367e4014f92.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes "Permission denied" issue for swift-recon tool that appears when + swift-recon tool tries to access deafult recon_lock_path