From 414df67f868867d1b95a4e8c0b4d2f4a30923595 Mon Sep 17 00:00:00 2001 From: Juri Hudolejev Date: Thu, 31 Jan 2019 09:31:25 +0200 Subject: [PATCH] Fix Glance NFS mount point ownership Glance NFS mounts are owned by `root` and are not writable by `glance` user. Proposed change sets the `glance_nfs_client.local_path` directory ownership to `glance_system_user_name:glance_system_group_name` so that Glance can write to that. Change-Id: I226827d4f44da098961b16fd4450104d7a367205 Closes-Bug: 1813300 Related-Bug: 1759552 --- tasks/glance_install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index b3b98806..9cd5a4d8 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -47,6 +47,8 @@ file: path: "{{ item.local_path }}" state: directory + owner: "{{ glance_system_user_name }}" + group: "{{ glance_system_group_name }}" mode: "0755" with_items: "{{ glance_nfs_client }}"