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
This commit is contained in:
Martin Magr 2018-10-19 12:11:17 +02:00
parent 635068aad4
commit 332dd89f47
2 changed files with 16 additions and 0 deletions

View File

@ -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:

View File

@ -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