From 332dd89f47fdc223165f2564fa28f723769ad411 Mon Sep 17 00:00:00 2001 From: Martin Magr Date: Fri, 19 Oct 2018 12:11:17 +0200 Subject: [PATCH] Ensure correct tmp ownership for Gnocchi Directory /var/lib/gnocchi/tmp is created by gnocchi-upgrade with root ownership. This patch ensures the directory is created first with proper ownership. Closes-Bug: #1799522 Change-Id: Iaf8e13490adffaf4a606730f4758d064af69b2aa --- docker/services/gnocchi-api.yaml | 8 ++++++++ releasenotes/notes/gnocchi-tmp-b5b48708c5dd17df.yaml | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 releasenotes/notes/gnocchi-tmp-b5b48708c5dd17df.yaml diff --git a/docker/services/gnocchi-api.yaml b/docker/services/gnocchi-api.yaml index cb160c7e33..a1ad0e2219 100644 --- a/docker/services/gnocchi-api.yaml +++ b/docker/services/gnocchi-api.yaml @@ -132,6 +132,14 @@ outputs: USER: {get_param: CephClientUserName} owner: gnocchi:gnocchi perm: '0600' + - path: + list_join: + - "/" + - - {get_param: GnocchiFileBasePath} + - "tmp" + owner: gnocchi:gnocchi + perm: '0600' + recurse: true /var/lib/kolla/config_files/gnocchi_db_sync.json: command: str_replace: diff --git a/releasenotes/notes/gnocchi-tmp-b5b48708c5dd17df.yaml b/releasenotes/notes/gnocchi-tmp-b5b48708c5dd17df.yaml new file mode 100644 index 0000000000..98dfb370a3 --- /dev/null +++ b/releasenotes/notes/gnocchi-tmp-b5b48708c5dd17df.yaml @@ -0,0 +1,8 @@ +--- + +fixes: + - | + Directory /var/lib/gnocchi/tmp is created by gnocchi-upgrade with root + ownership. It is now ensured that the directory is created before upgrade + with proper ownership. For details see: + https://bugs.launchpad.net/tripleo/+bug/1799522