From 0bc8f2a335b28f9aabc796f6ebddaa8424b6fb61 Mon Sep 17 00:00:00 2001 From: Stanislav Dmitriev Date: Mon, 26 Apr 2021 16:06:58 -0400 Subject: [PATCH] Add Swift lock path in Swift containers Swift-recon-cron requires rw access to the lock path specified in in object-server.conf file. Currently it doesn't exist in Swift containers Closes-Bug: #1926203 Change-Id: Id3f824b741a5aa98efc7162fb7d49657e86a2bee (cherry picked from commit ff25b500d23155485dc57d10aed9070a4cba88b4) --- docker/swift/swift-base/Dockerfile.j2 | 4 ++-- releasenotes/notes/fix-lock-swift-path-9b743367e4014f92.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix-lock-swift-path-9b743367e4014f92.yaml 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