From 86feb7916b6a69a7d4076cb3fc59e392ab1b73c1 Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Fri, 2 Aug 2019 21:21:52 +0000 Subject: [PATCH] Fix log directory permissions for functional job After [0] devstack no longer changes the ownership of the whole /opt/stack tree to the stack user unconditionally. So we need to create /opt/stack/logs with the correct owner directly. [0] https://review.opendev.org/203698 Change-Id: I4597c83bfce6267ef93bb8f7b0de62fa3ac94db4 Closes-Bug: 1838811 --- roles/setup_logdir/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/setup_logdir/tasks/main.yaml b/roles/setup_logdir/tasks/main.yaml index 53a5e5ab156..c1ef214a8af 100644 --- a/roles/setup_logdir/tasks/main.yaml +++ b/roles/setup_logdir/tasks/main.yaml @@ -3,6 +3,6 @@ file: path: "{{ logdir }}" state: directory - owner: "{{ ansible_user }}" + owner: stack group: "{{ ansible_user }}" mode: 0775